From robhyx at gmail.com Fri Aug 1 07:00:01 2008 From: robhyx at gmail.com (Robert Hicks) Date: Fri, 1 Aug 2008 10:00:01 -0400 Subject: [mapserver-users] Getting a vector layer to "fill in" via PostGIS connection Message-ID: I have a vector layer which is a table in my postgres database and I want the MapServer to draw the outlines and also fill in the background with a slighly lighter color. I get all the details of the outlines to come out however the background is completely transparent. Does anyone know how to do this? Here is the layer in my Mapfile: LAYER # name of layer NAME "namespace:layer" GROUP "Group" # what type of data is this? TYPE POLYGON # always returned with interface STATUS ON #TRANSPARENCY 100 CONNECTIONTYPE postgis CONNECTION "user=user dbname=db host=localhost port=5432 password=pass" DATA "the_geom from layer" CLASS STYLE SIZE 20 OUTLINECOLOR 255 0 0 #COLOR 255 0 0 #WIDTH 10 END STYLE SIZE 20 BACKGROUNDCOLOR 0 0 255 END END END THANKS! -------------- next part -------------- An HTML attachment was scrubbed... URL: From gemerson at WelshCo.com Fri Aug 1 07:19:01 2008 From: gemerson at WelshCo.com (Emerson, Gabe) Date: Fri, 1 Aug 2008 09:19:01 -0500 Subject: [mapserver-users] Network / UNC access problems In-Reply-To: <4891D722.8060202@gmail.com> References: <4891D722.8060202@gmail.com> Message-ID: <348277DFCE9FF044B3812A6CF459CD37ED25A4@welshmail.welshco.com.local> Hello everyone, Once again I have an issue that's apparently been solved before, but doesn't work for me. Hopefully this is an ability that Mapserver still retains. I'm trying to access network resources (in an IIS environment) from mapserver. The IT people have set up the web server with a domain account, and given it access to the relevant network drives (it's Intranet only, inside our firewall). They've also set up some virtual folders pointing to the network locations, and put those into the mapserver directory. The web server has no problem accessing the files, I can browse to the data through it (as in "domain.com/aeimagery/minr2c2.ecw". However, Mapserver's CGI isn't able to access the data. I've tried using the standard UNC path: DATA "\\server\aeimagery\minr2c2.ecw" I've also tried using the local shortcuts that IT set up, as in: DATA "../AEImagery/MINr2c2.ecw" And as the full web server path: DATA "D:/inetpub/gis/AEImagery/MINr2c2" I've tried /, \, all lowercase, etc. I've also confirmed that local copies of the aerials and shapefiles work. For aerials I simply get nothing to appear. For shapefiles I get the usual: msDrawMap(): Image handling error. Failed to draw layer named 'Metro_Area'. msSHPOpenFile(): Unable to access file. (\\server\data\research\esri\county) msSHPOpenFile(): Unable to access file. (\\server\data\research\esri\county) Since I'm not in control of the server config, I can't guarantee that everything in IIS is set up correctly. IT tells me that the webserver process is a domain user, and they've seen the prior mailing list posts on this topic. Since I can access the virtual folders that point at the network resources, I assume the server and its processes have the proper access. At this point I'm stumped as to what else is necessary, or what else I can ask IT to test for. Any suggestions would be appreciated! -Gabe Emerson From nils.zierath at uni-bonn.de Fri Aug 1 09:20:22 2008 From: nils.zierath at uni-bonn.de (Nils Zierath) Date: Fri, 01 Aug 2008 18:20:22 +0200 Subject: [mapserver-users] Turn LAYERS within one GROUP on/off independently Message-ID: <489337C6.7040802@uni-bonn.de> Dear list, I wonder if it was possible to order layers hierarchically in a legend AND to mark them as on/off separately via the ka-Map interface. For instance: Borders & Administration => Countries => Regions In my mapfile both "Countries" and "Regions" are assigned GROUP 'Borders & Administration' so I can turn them on/off via the ka-Map interface only in conjunction. I want to be able to check "Borders & Administration" as on/off in the interface and it will turn on all layers, that are organized below it. I also want to be able to check both "Countries" and "Regions" independently on and off. I am using ka-Map 1.0 as frontend for Mapserver 5.02 on Debian Etch. Thanks for any suggestions, Nils From greenkov at gmail.com Fri Aug 1 10:33:38 2008 From: greenkov at gmail.com (Alexander Petkov) Date: Fri, 1 Aug 2008 11:33:38 -0600 Subject: [mapserver-users] Re: GetCoverage request and time-idexed coverage using postgis In-Reply-To: References: Message-ID: I upgraded to 5.2.0 and I am getting the same exception, although formatted differently. This is the relevant snippet from the log file: ================================= [Fri Aug 1 11:33:16 2008].508042 getSymbol(): Symbol definition error. Parsing error near (2000):(line 203) [Fri Aug 1 11:33:16 2008].512132 msDrawRasterLayerLow(da): entering. [Fri Aug 1 11:33:16 2008].512180 msPOSTGISLayerOpen called datastatement: the_geom from da_index [Fri Aug 1 11:33:16 2008].512194 MSPOSTGISLayerOpen -- shared connection not available. [Fri Aug 1 11:33:16 2008].517455 msConnPoolRegister(da_time_idx,dbname=somedbname user=someuser host=somehost,0x898d938) [Fri Aug 1 11:33:16 2008].517492 msPOSTGISLayerFreeItemInfo called [Fri Aug 1 11:33:16 2008].517504 msPOSTGISLayerInitItemInfo called [Fri Aug 1 11:33:16 2008].517567 msPOSTGISLayerWhichShapes called [Fri Aug 1 11:33:16 2008].517589 msPOSTGISLayerRetrievePGVersion(): query = select substring(version() from 12 for (position('on' in version()) - 13)) [Fri Aug 1 11:33:16 2008].518561 msPOSTGISLayerRetrievePGVersion: Version String: 7.4.19 [Fri Aug 1 11:33:16 2008].518571 msPOSTGISLayerRetrievePGVersion(): Found version 7, 4, 19 [Fri Aug 1 11:33:16 2008].518585 msPOSTGISLayerRetrievePK: query = select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = 'da_index' and pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null [Fri Aug 1 11:33:16 2008].520630 msPOSTGISLayerParseData: unique column = location, srid='', geom_column_name = the_geom, table_name=da_index [Fri Aug 1 11:33:16 2008].520743 query_string_0_6:DECLARE mycursor BINARY CURSOR FOR SELECT "date"::text,"location"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),location::text from da_index WHERE (2000-01-06) and (the_geom && setSRID( 'BOX3D(-2050000 -2136000,2536000 752000)'::BOX3D,find_srid('','da_index','the_geom') )) [Fri Aug 1 11:33:16 2008].537924 prepare_database(): Query error. Error declaring cursor: ERROR: argument of AND must be type boolean, not type integer With query string: DECLARE mycursor BINARY CURSOR FOR SELECT "date"::text,"location"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),location::text from da_index WHERE (2000-01-06) and (the_geom && s etSRID( 'BOX3D(-2050000 -2136000,2536000 752000)'::BOX3D,find_srid('','da_index','the_geom') )) [Fri Aug 1 11:33:16 2008].537933 msPOSTGISLayerFreeItemInfo called [Fri Aug 1 11:33:16 2008].537939 msPOSTGISLayerClose datastatement: the_geom from da_index [Fri Aug 1 11:33:16 2008].537944 msPOSTGISLayerClose -- query_result is NULL [Fri Aug 1 11:33:16 2008].538069 msConnPoolRelease(da_time_idx,dbname=somedbname user=someuser host=somehost,0x898d938) [Fri Aug 1 11:33:16 2008].538078 msConnPoolClose(da_time_idx,dbname=somedbname user=someuser host=somehost,0x898d938) [Fri Aug 1 11:33:16 2008].538647 msPOSTGISLayerClose datastatement: the_geom from da_index [Fri Aug 1 11:33:16 2008].538655 msPOSTGISLayerClose -- layerinfo is NULL ================================ WMS GetMap requests work and return the tile/image for the corresponding time stamp. I also tried using a shapefile for the tile index, and GetCoverage requests work. Below is my layer definition, as well as the postgis and shapefile tileindexes: ================================ # Departure from Average Postgis Tile Index: LAYER STATUS ON NAME "da_time_idx" TYPE TILEINDEX DATA "the_geom from da_index" DEBUG 5 METADATA "wms_srs" "EPSG:2613" "wms_extent" "-2050500.000 -2136500.000 2536500.000 752500.000" "wms_title" "TIME INDEX for departure from average images" "wms_title" "TIME INDEX for departure from average images" END CONNECTION "conn params omitted" CONNECTIONTYPE postgis EXTENT -2050500.000 -2136500.000 2536500.000 752500.000 PROJECTION "init=epsg:2163" END END # Departure from Average Tile Index: LAYER STATUS ON NAME "da_shape_idx" TYPE POLYGON DEBUG 5 DATA "da_index.shp" METADATA "wms_srs" "EPSG:2613" "wms_extent" "-2050500.000 -2136500.000 2536500.000 752500.000" "wms_title" "TIME INDEX for departure from average images" "wms_title" "TIME INDEX for departure from average images" END EXTENT -2050500.000 -2136500.000 2536500.000 752500.000 PROJECTION "init=epsg:2163" END END # raster layer LAYER NAME "da" TYPE RASTER STATUS ON DEBUG 5 PROCESSING "SCALE=AUTO" UNITS Meters DUMP TRUE PROJECTION "init=epsg:2163" END METADATA "wms_title" "Departure from Average" "wms_srs" "EPSG:2613" "wms_extent" "-2050500.000 -2136500.000 2536500.000 752500.000" "wms_timeextent" "2000-01-06/2005-12-27" "wms_timedefault" "2005-12-27" "wms_timeitem" "date" #date is a column in postgis table of type timestamp "wcs_label" "Departure From Average WFAS Product" ### required "wcs_name" "da" "wcs_timeitem" "date" #datetime is a column in postgis table of type timestamp "wcs_timeposition" "2000-01-06,2005-12-27" "wcs_rangeset_label" "testlabel" "wcs_rangeset_name" "testname" "wcs_resolution" "1000 1000" "wcs_size" "4587 2889" "wcs_description" "dep from average resolution mosaic" "ows_extent" "-2050500.000 -2136500.000 2536500.000 752500.000" "ows_srs" "EPSG:2613" END ============================= Any ideas as to what I might be doing wrong for using WCS with tile-indexed raster layers? TIA, Alex On Wed, Jul 30, 2008 at 3:32 PM, Alexander Petkov wrote: > Currently I am using Mapserver version 5.0.2 > > I am getting the following error when I issue a GetCoverage request > for a time-indexed coverage, using postgis for the indexing. > ================================================ > > prepare_database(): Query error. Error executing POSTGIS DECLARE (the > actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT > "date"::text,"fullpath"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),fullpath::text > from da_index WHERE (2005-12-27) and (the_geom && setSRID( > 'BOX3D(-2050500 -2136500,2536500 > 752500)'::BOX3D,find_srid('','da_index','the_geom') ))' > > Postgresql reports the error as 'ERROR: argument of AND must be type > boolean, not type integer > ' > > More Help: > > Error with POSTGIS data variable. You specified 'check your .map file'. > Standard ways of specifiying are : > (1) 'geometry_column from geometry_table' > (2) 'geometry_column from (sub query) as foo using unique column name > using SRID=srid#' > > Make sure you put in the 'using unique column name' and 'using > SRID=#' clauses in. > > For more help, please see http://postgis.refractions.net/documentation/ > > Mappostgis.c - version of Jan 23/2004. > > > > > > ================================================== > > In my table, the 'date' field has the date values. I see from the > query above that is missing "date='2005-12-27' in the WHERE clause. > Indeed, when I add it using the psql client, the query works. > > The coverage in question gets listed when I make a WCS GetCapabilities > request. How shoud I go about getting the error above resolved? Should > I try the latest version or am I doing something wrong? Here is the > request in question: > > http://someserver/cgi-bin/mapserv?MAP=some_time_index.map&SERVICE=WCS&REQUEST=GetCoverage&coverage=da&CRS=EPSG:2163&FORMAT=GTiff&TIME=2005-12-27&WIDTH=800&HEIGHT=600 > > Does anyone else who uses postgis for time indexing have GetCoverage > requests working? > > Thanks in advance, > Alex > From susanne.kalliany at tefis.at Fri Aug 1 12:13:31 2008 From: susanne.kalliany at tefis.at (SUSANNE) Date: Fri, 1 Aug 2008 12:13:31 -0700 (PDT) Subject: [MAPSERVER-USERS] Getting a vector layer to "fill in" via PostGIS connection In-Reply-To: References: Message-ID: <18780951.post@talk.nabble.com> "I would remove comment of #color 255 0 0 and do like this: .... CONNECTION "user=user dbname=db host=localhost port=5432 password=pass" DATA "the_geom from layer" CLASS STYLE SIZE 20 OUTLINECOLOR 255 0 0 COLOR 255 0 0 WIDTH 10 END # style END # class Color 255 0 0 is bright red; if you want to have ligther color you have to increase both other colors e.g. 255 100 100 or 255 150 150. I hope I could help, Susanne Kalliany" dnbphysicist wrote: > > I have a vector layer which is a table in my postgres database and I want > the MapServer to draw the outlines and also fill in the background with a > slighly lighter color. I get all the details of the outlines to come out > however the background is completely transparent. Does anyone know how to > do > this? > > Here is the layer in my Mapfile: > > LAYER > # name of layer > NAME "namespace:layer" > GROUP "Group" > > # what type of data is this? > TYPE POLYGON > > # always returned with interface > STATUS ON > > #TRANSPARENCY 100 > > CONNECTIONTYPE postgis > > CONNECTION "user=user dbname=db host=localhost port=5432 > password=pass" > DATA "the_geom from layer" > CLASS > STYLE > SIZE 20 > OUTLINECOLOR 255 0 0 > #COLOR 255 0 0 > #WIDTH 10 > END > STYLE > SIZE 20 > BACKGROUNDCOLOR 0 0 255 > END > END > END > > THANKS! > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Getting-a-vector-layer-to-%22fill-in%22-via-PostGIS-connection-tp18774936p18780951.html Sent from the Mapserver - User mailing list archive at Nabble.com. From MarkVolz at co.lyon.mn.us Fri Aug 1 12:53:38 2008 From: MarkVolz at co.lyon.mn.us (Mark Volz) Date: Fri, 1 Aug 2008 14:53:38 -0500 Subject: [mapserver-users] cartography questions. Message-ID: <3D56274B4A7874468F58FADDBFD0980105F1AFE4@llmhs02.r8nssis.local> Hello, I have a couple cartography questions. First, I noticed if I zoom in to the center of multiple polygons the layers stack over each other. For example If I zoom in to a scale of 1:1000 I will see the township name, parcel number, and section all stacked on top of each other, and therefore difficult to read. Does anyone know if we can buffer labels between different layers? Second, I have had some criticism that the labels appear to be grainy. I am using an outline color to help remedy the situation. Does anyone have any other ideas? Third, does anyone know if we can make the outline color of a text label semi-transparent? Mark Volz GIS Specialist Lyon County, MN (507) 532-8218 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Fri Aug 1 14:40:36 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 01 Aug 2008 16:40:36 -0500 Subject: [mapserver-users] cartography questions. In-Reply-To: <3D56274B4A7874468F58FADDBFD0980105F1AFE4@llmhs02.r8nssis.local> References: <3D56274B4A7874468F58FADDBFD0980105F1AFE4@llmhs02.r8nssis.local> Message-ID: <48933C83.5157.008F.0@dnr.state.mn.us> Hi Mark: >>> On 8/1/2008 at 2:53 PM, in message <3D56274B4A7874468F58FADDBFD0980105F1AFE4 at llmhs02.r8nssis.local>, "Mark Volz" wrote: > Hello, > > I have a couple cartography questions. > > First, I noticed if I zoom in to the center of multiple polygons the layers > stack over each other. For example If I zoom in to a scale of 1:1000 I will > see the township name, parcel number, and section all stacked on top of each > other, and therefore difficult to read. Does anyone know if we can buffer > labels between different layers? That's a GeoMoose issue. One of the problems with stacked layer interfaces is that you loose the ability to do label collision avoidance. > Second, I have had some criticism that the labels appear to be grainy. I am > using an outline color to help remedy the situation. Does anyone have any > other ideas? Some screenshots showing what you mean by grainy would be helpful. This may be the result of the layered image architecture too, but it's tough to say without an example. > > Third, does anyone know if we can make the outline color of a text label > semi-transparent? MapServer 5.2 supports a halo effect for AGG output. I believe you set OUTLINEWIDTH in the label object. The halo is semi-transparent as you move away from the text. > Mark Volz > GIS Specialist > Lyon County, MN > (507) 532-8218 Steve From Bob.Basques at ci.stpaul.mn.us Fri Aug 1 19:25:14 2008 From: Bob.Basques at ci.stpaul.mn.us (Bob Basques) Date: Fri, 01 Aug 2008 21:25:14 -0500 Subject: [mapserver-users] cartography questions. Message-ID: <48937F3A020000A80000C4A7@jeckle> the forthcoming version of geomoose with it's new grouping of layerd functionality will allow for this. the idea would be to group label layers in the gemoose stacking while still maintaining the layer controls. it will also help with performance in some situations too. **************** You can't be late until you show up. *************** ************ You never learn anything by doing it right. ************ *** War doesn't determine who's right. War determines who's left. *** >>> "Steve Lime" 08/01/08 16:52 PM >>> Hi Mark: >>> On 8/1/2008 at 2:53 PM, in message <3D56274B4A7874468F58FADDBFD0980105F1AFE4 at llmhs02.r8nssis.local>, "Mark Volz" wrote: > Hello, > > I have a couple cartography questions. > > First, I noticed if I zoom in to the center of multiple polygons the layers > stack over each other. For example If I zoom in to a scale of 1:1000 I will > see the township name, parcel number, and section all stacked on top of each > other, and therefore difficult to read. Does anyone know if we can buffer > labels between different layers? That's a GeoMoose issue. One of the problems with stacked layer interfaces is that you loose the ability to do label collision avoidance. > Second, I have had some criticism that the labels appear to be grainy. I am > using an outline color to help remedy the situation. Does anyone have any > other ideas? Some screenshots showing what you mean by grainy would be helpful. This may be the result of the layered image architecture too, but it's tough to say without an example. > > Third, does anyone know if we can make the outline color of a text label > semi-transparent? MapServer 5.2 supports a halo effect for AGG output. I believe you set OUTLINEWIDTH in the label object. The halo is semi-transparent as you move away from the text. > Mark Volz > GIS Specialist > Lyon County, MN > (507) 532-8218 Steve _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From bthoen at gisnet.com Sat Aug 2 11:06:37 2008 From: bthoen at gisnet.com (Bill Thoen) Date: Sat, 02 Aug 2008 12:06:37 -0600 Subject: [mapserver-users] MapServer Animation Examples of Pipeline Flow? Message-ID: <4894A22D.4080405@gisnet.com> I've got a little project that requires an "eye-catching" display of flow through a network of gas pipelines. I'm using MapServer 5.0.3 (with AGG) on Fedora Core 9 and I want to stick with open source technology if possible. Are there any examples out there of MapServer showing animation effects along a linear feature (i.e. road, river, pipeline, information flowlines, etc.) that I could look at to get some ideas? The first thought I had was to move colored dots along a pipeline in the direction of flow and use a timer to pace the animation. Each dot would represent the day's load from a source and they would move based on pipe diameter, pressure and other parameters that affect flow. This works, but the down side is that eventually you have a lot of objects to juggle and performance goes to heck. Then I thought of using a series of textures for each pipeline segment and swapping them iteratively to simulate an animating. What won't work is rendering the entire map image each time; that would go from eye-catching to mind-numbing pretty fast. So is there a way with MapServer to display a map base, but allow for objects to be "floated" on top in such away that I don't have to re-render the the entire map each time? (like an AJAX tool for mapserver?) If anyone has any ideas or knows of examples they could point me to, I'd appreciate it. - Bill Thoen -------------- next part -------------- An HTML attachment was scrubbed... URL: From jjschlafley at yahoo.com Sat Aug 2 11:29:33 2008 From: jjschlafley at yahoo.com (J.J. Schlafley) Date: Sat, 2 Aug 2008 11:29:33 -0700 (PDT) Subject: Fw: [mapserver-users] MapServer Animation Examples of Pipeline Flow? Message-ID: <260053.6238.qm@web52304.mail.re2.yahoo.com> Microsoft's Virtual Earth and Google Maps uses a vector layer (VML or SVG) on top of their raster layer (basemap) to show driving directions. ----- Original Message ---- From: Bill Thoen To: mapserver-users at lists.osgeo.org Sent: Saturday, August 2, 2008 2:06:37 PM Subject: [mapserver-users] MapServer Animation Examples of Pipeline Flow? I've got a little project that requires an "eye-catching" display of flow through a network of gas pipelines. I'm using MapServer 5.0.3 (with AGG) on Fedora Core 9 and I want to stick with open source technology if possible. Are there any examples out there of MapServer showing animation effects along a linear feature (i.e. road, river, pipeline, information flowlines, etc.) that I could look at to get some ideas? The first thought I had was to move colored dots along a pipeline in the direction of flow and use a timer to pace the animation. Each dot would represent the day's load from a source and they would move based on pipe diameter, pressure and other parameters that affect flow. This works, but the down side is that eventually you have a lot of objects to juggle and performance goes to heck. Then I thought of using a series of textures for each pipeline segment and swapping them iteratively to simulate an animating. What won't work is rendering the entire map image each time; that would go from eye-catching to mind-numbing pretty fast. So is there a way with MapServer to display a map base, but allow for objects to be "floated" on top in such away that I don't have to re-render the the entire map each time? (like an AJAX tool for mapserver?) If anyone has any ideas or knows of examples they could point me to, I'd appreciate it. - Bill Thoen -------------- next part -------------- An HTML attachment was scrubbed... URL: From crschmidt at metacarta.com Sat Aug 2 11:52:55 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Sat, 2 Aug 2008 14:52:55 -0400 Subject: [mapserver-users] MapServer Animation Examples of Pipeline Flow? In-Reply-To: <4894A22D.4080405@gisnet.com> References: <4894A22D.4080405@gisnet.com> Message-ID: <20080802185255.GA15906@metacarta.com> On Sat, Aug 02, 2008 at 12:06:37PM -0600, Bill Thoen wrote: > What won't work is rendering the entire map image each time; that would > go from eye-catching to mind-numbing pretty fast. So is there a way with > MapServer to display a map base, but allow for objects to be "floated" > on top in such away that I don't have to re-render the the entire map > each time? (like an AJAX tool for mapserver?) "An AJAX Tool for MapServer" is probably best solved by OpenLayers. http://openlayers.org/ The closest thing I can think of to 'flowing' in our examples is: http://openlayers.org/dev/examples/rotate-features.html But I know that others have done things like flight tracking with OpenLayers as well. Regards, -- Christopher Schmidt MetaCarta From bthoen at gisnet.com Sat Aug 2 14:02:46 2008 From: bthoen at gisnet.com (Bill Thoen) Date: Sat, 02 Aug 2008 15:02:46 -0600 Subject: [mapserver-users] Problems with TrueType Symbol and Linestyle after Switching to AGG Message-ID: <4894CB76.2020901@gisnet.com> I just built MapServer 5.0.3 with AGG 2.5 support on my FC9 box and while my maps now look LOTS nicer, I noticed that the TrueType symbols that I use for Fire stations now appear as an open box, and my railroad lines have lost their crossties. When I use the GD driver in the map file OUTPUTFORMAT section, these items still appear correctly. But when I use the AGG driver they don't. Can anyone tell me what's wrong? (I've been searching vain for some comprehensive MapServer-AGG documentation but the only two docs I've found (the Migration_Guide and AGG_Rendering_Specifics) didn't help me. Here's how I've defined the fire stations in my symbol file: SYMBOL NAME 'station' TYPE TRUETYPE FONT 'ers_ops_1' CHARACTER 'Y' ANTIALIAS TRUE FILLED TRUE END And here's how I set up that layer in my map file: LAYER NAME stations TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "FireStations.TAB" LABELITEM "Name" CLASS NAME "Fire Stations" EXPRESSION ([id] ne 6) SYMBOL "station" SIZE 32 COLOR 255 0 0 OUTLINECOLOR 255 255 255 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 POSITION LC SIZE medium END TEMPLATE "/var/www/html/blt/longmont/stations.html" END TOLERANCE 5 HEADER "/var/www/html/blt/longmont/stations_header.html" FOOTER "/var/www/html/blt/longmont/footer.html" PROJECTION "init=epsg:4326" END END The rail lines ares set up like so in the symbol file: SYMBOL NAME 'track' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END SYMBOL NAME "tie" TYPE cartoline LINECAP butt LINEJOIN miter LINEJOINMAXSIZE 3 STYLE 1 10 1 10 END END and in the map file: LAYER NAME railroads GROUP transportation TYPE LINE STATUS ON CONNECTIONTYPE OGR CONNECTION "railroads.TAB" LABELITEM "Name" CLASS NAME "Railroads" STYLE SYMBOL 'track' SIZE 1 COLOR 128 128 128 END STYLE SYMBOL "tie" SIZE 5 COLOR 128 128 128 END END PROJECTION "init=epsg:4326" END END From arnd.wippermann at web.de Sun Aug 3 04:30:05 2008 From: arnd.wippermann at web.de (Arnd Wippermann) Date: Sun, 3 Aug 2008 13:30:05 +0200 Subject: AW: [mapserver-users] MapServer Animation Examples of Pipeline Flow? In-Reply-To: <4894A22D.4080405@gisnet.com> Message-ID: here is another example with animation and OpenLayers http://gis.ibbeck.de/ginfo/apps/Pentominoes/pentominoes.html click 'starten' or 'start' to begin the animation. Arnd Wippermann _____ Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Bill Thoen Gesendet: Samstag, 2. August 2008 20:07 An: mapserver-users at lists.osgeo.org Betreff: [mapserver-users] MapServer Animation Examples of Pipeline Flow? I've got a little project that requires an "eye-catching" display of flow through a network of gas pipelines. I'm using MapServer 5.0.3 (with AGG) on Fedora Core 9 and I want to stick with open source technology if possible. Are there any examples out there of MapServer showing animation effects along a linear feature (i.e. road, river, pipeline, information flowlines, etc.) that I could look at to get some ideas? The first thought I had was to move colored dots along a pipeline in the direction of flow and use a timer to pace the animation. Each dot would represent the day's load from a source and they would move based on pipe diameter, pressure and other parameters that affect flow. This works, but the down side is that eventually you have a lot of objects to juggle and performance goes to heck. Then I thought of using a series of textures for each pipeline segment and swapping them iteratively to simulate an animating. What won't work is rendering the entire map image each time; that would go from eye-catching to mind-numbing pretty fast. So is there a way with MapServer to display a map base, but allow for objects to be "floated" on top in such away that I don't have to re-render the the entire map each time? (like an AJAX tool for mapserver?) If anyone has any ideas or knows of examples they could point me to, I'd appreciate it. - Bill Thoen -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Sun Aug 3 21:53:06 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Sun, 03 Aug 2008 23:53:06 -0500 Subject: [mapserver-users] FOSS4G2008 Code Sprint, Lightning Talks & Demo Sessions Message-ID: <489644E20200008F0001A358@co5.dnr.state.mn.us> Free and Open Source Geospatial Conference 2008 (FOSS4G2008) FOSS4G2008 will be taking place this year in September / October this year in South Africa. FOSS4G is a an annual gathering place for Free and Open Source projects with a geospatial leaning. The conference venue is the Cape Town International Conference Center (CTICC) in the Foreshore area of Cape Town - the beautiful 'mother city' of South Africa. Demo Sessions: ======================= We will be holding a demo theatre during tea breaks and lunch times. Demos are a great way to show off your work to decision makers, GIS professionals and fellow code crunchers. The demos will be restricted to 10 minutes each (including questions and setup time) so they need to be brief and to the point. If you would like to demo your project, something you have achieved with FOSS geospatial, or anything else relevant to a geospatial practitioner audience, you can register by following the instructions provided on the demo wiki page here: http://wiki.osgeo.org/wiki/FOSS4G2008_Demos Lightning Talks: ======================= During the plenary session on Monday 29 July, there will be eight lightning talks of 5 minutes each. Time limits will be strictly adhered to and we are looking for the most entertaining, thought provoking and informative speeches possible. The speeches will be presented to the entire conference. If you are interested in making a lightning speech, or know of any good candidates to give such a speech, please visit the lightning talks wiki page to register your interest here: http://wiki.osgeo.org/wiki/FOSS4G2008_LightningTalks Code Sprint: ======================= We will be holding an all day code sprint on Saturday 4 October - the day following the end of the main conference activities. Given that most FOSS projects are conducted as virtual collaborations over the internet, the code sprint is a rare opportunity for you to get together in person with other developers in your project. The code sprint is also a great opportunity for those who are interested in getting involved in a project to go and meet the developers face to face and get some help in getting started with development. If you are not a developer, but interested in other aspects of project development, (documentation, creating demonstrator implementations of software etc.) the code sprint is an equally good opportunity to collaborate. We will provide a venue, lunch and refreshments, internet connection and flip charts. If you have other special requirements let us know and we will see what we can do. In order to provide the very best experience for you it would be helpful to get an idea of how many people are likely to attend. We have created a Wiki page at: http://wiki.osgeo.org/wiki/FOSS4G2008_CodeSprint On this page you can create a section for your project and list the people planning to attend. The page also provides a space to help you organise your code sprint day by writing up the goals and preparation work needed for your sprint. Contact Info: ======================= The code sprint, lightning talks & demo session organiser is Tim Sutton (tim at linfiniti.com) - if you have any questions or special requirements, please don't hesitate to ask. If you haven't already registered for the conference, we advise doing so as soon as possible to secure your place. Visit the conference registration page at: http://conference.osgeo.org/index.php/foss4g/2008/schedConf/registration From damarmo at gmail.com Mon Aug 4 02:30:01 2008 From: damarmo at gmail.com (David Martinez Morata) Date: Mon, 4 Aug 2008 11:30:01 +0200 Subject: [mapserver-users] GetFeatureInfo in ArcGIS with a wms server. Message-ID: <9771eb540808040230s7bd1bf27l704f2b567bb2eafa@mail.gmail.com> Hello. I create a wms service for some vector (shp) data. Now I need to Request this ( with a simple GetFeatureInfo request) but I have problems to understad some process. I define my Query map object. I put the layer DUMP option in true, and I define two html basic files. I declare the "wms_feature_info_mime_type" "text/html" METADATA But wen i request the layer in arcGIS the server takes this request: http://10.192.160.133/cgi-bin/mapserv.exe?map=/ms4w/apps/Test/WMS_cablage_all_001.map&VERSION=1.1.1&REQUEST=GetFeatureInfo&SRS=EPSG:27582&BBOX=594618.528746939,2429381.90851909,598333.988796546,2432322.52048998&WIDTH=1170&HEIGHT=926&QUERY_LAYERS=ngo9_l2e_01meu_sites&STYLES=&EXCEPTIONS=application/vnd.ogc.se_xml&&INFO_FORMAT=text/html&FEATURE_COUNT=50&X=78&Y=28 I show I have && In INFO_FORMAT parametre (I think that is worng). I understand the parametres But I dont understand the real proces to create the URL. Can you help me. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From srph124 at yahoo.com Mon Aug 4 07:28:03 2008 From: srph124 at yahoo.com (Saka Royban) Date: Mon, 4 Aug 2008 07:28:03 -0700 (PDT) Subject: [mapserver-users] Arabic-Farsi-Hebrew support? Message-ID: <657329.50453.qm@web58201.mail.re3.yahoo.com> Hi all. I'm new to Mapserver. I want to know if Mapserver is able to handle Arabic-Farsi(Persian) and Hebrew correctly (using gettext). In these languages letter join to each other to form a word not like others which letters are separate with no problem. also they are written right to left not left to right. This is an important point for labeling. Searching nabble.com, i found a post some months ago discussing around this problem and associated ticket. That would be my pleasure to know the result if any knows. Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Mon Aug 4 09:15:29 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Mon, 04 Aug 2008 11:15:29 -0500 Subject: [mapserver-users] Arabic-Farsi-Hebrew support? In-Reply-To: <657329.50453.qm@web58201.mail.re3.yahoo.com> References: <657329.50453.qm@web58201.mail.re3.yahoo.com> Message-ID: <48972B21.2050009@swoodbridge.com> Saka Royban wrote: > > Hi all. > I'm new to Mapserver. I want to know if Mapserver is able to handle > Arabic-Farsi(Persian) and Hebrew correctly (using gettext). In these > languages letter join to each other to form a word not like others which > letters are separate with no problem. also they are written right to > left not left to right. This is an important point for labeling. > Searching nabble.com, i found a post some months ago discussing around > this problem and associated ticket. That would be my pleasure to know > the result if any knows. > Thanks in advance Well, I'm not sure about "gettext" part of your question, but with Release 5.2 you can now build with fribidi2 support and render labels with shaping in Arabic-Farsi(Persian) and Hebrew correctly provided you have a truetype font that supports all the unicode shape characters. -Steve W From besse.pb at gmail.com Mon Aug 4 08:27:08 2008 From: besse.pb at gmail.com (Faldor) Date: Mon, 4 Aug 2008 08:27:08 -0700 (PDT) Subject: [MAPSERVER-USERS] Mapserver bug when generating a tiled map with MapFish Message-ID: <18813432.post@talk.nabble.com> Hi all, I use Mapserver with mapfish for the client side to display shapefiles which I generated using ogr2ogr. The problem is when I try to display a tiled layer (mapfish singleTile property set to 'false'). Some tiles are generated by mapserver entirely blank ! After a few researches I think it is due to the fact that those tiles are extended "across" the -180?/+180? line. For exemple, here is the imgext property from one of the calls to MapServer which render a blank tile : imgext=178.59375+-1.40625+271.40625+91.40625 Do you know of a way to fix this ? Regards, Pierre-Beno?t -- View this message in context: http://www.nabble.com/Mapserver-bug-when-generating-a-tiled-map-with-MapFish-tp18813432p18813432.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bill.wordsworth at gmail.com Mon Aug 4 09:28:23 2008 From: bill.wordsworth at gmail.com (Bill Wordsworth) Date: Mon, 4 Aug 2008 12:28:23 -0400 Subject: [MAPSERVER-USERS] How to map attribute data (non-geom) from Oracle (not Spatial)? Message-ID: <1e07a2bd0808040928g4be5dd00v4fe72848387938b3@mail.gmail.com> What is the best way to map attribute data (non-geom) from Oracle (not Spatial) using MapServer? Can I do this? LAYER NAME "states_shapefile" DATA "path/states_shapefile" ... JOIN NAME "oracle" CONNECTIONTYPE ogr CONNECTION "..." TABLE "oracle_states_table" FROM "oracle_name" TO "shapefile_name" TYPE ONE-TO-ONE END # FILTERITEM "" FILTER "governor='Arnold'" END http://mapserver.gis.umn.edu/docs/reference/mapfile/join#example-2-join-from-shp-file-to-postgresql-table If not, what is the best way around? * Spend $$$ for Oracle Spatial * Nightly convert attribute data to shapefile * Nightly convert attribute data to PostGIS Any thoughts on the maintenance cost for each? Cheers, Bill From Tim.Nolte at ipcswirelessinc.com Mon Aug 4 10:15:12 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Mon, 4 Aug 2008 13:15:12 -0400 Subject: [MAPSERVER-USERS] How to map attribute data (non-geom) from Oracle(not Spatial)? In-Reply-To: <1e07a2bd0808040928g4be5dd00v4fe72848387938b3@mail.gmail.com> References: <1e07a2bd0808040928g4be5dd00v4fe72848387938b3@mail.gmail.com> Message-ID: What version of Oracle are you using? If you are using 10g or higher it comes with Oracle Locator free. Oracle Locator is like Oracle Spatial Lite. We are using this for point data and polygons for our MapServer. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com 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: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Bill Wordsworth > Sent: Monday, August 04, 2008 12:28 PM > To: mapserver-users at lists.osgeo.org > Subject: [MAPSERVER-USERS] How to map attribute data > (non-geom) from Oracle(not Spatial)? > > What is the best way to map attribute data (non-geom) from Oracle (not > Spatial) using MapServer? > > Can I do this? > LAYER > NAME "states_shapefile" > DATA "path/states_shapefile" > ... > JOIN > NAME "oracle" > CONNECTIONTYPE ogr > CONNECTION "..." > TABLE "oracle_states_table" > FROM "oracle_name" > TO "shapefile_name" > TYPE ONE-TO-ONE > END > # FILTERITEM "" > FILTER "governor='Arnold'" > END > http://mapserver.gis.umn.edu/docs/reference/mapfile/join#examp > le-2-join-from-shp-file-to-postgresql-table > > If not, what is the best way around? > * Spend $$$ for Oracle Spatial > * Nightly convert attribute data to shapefile > * Nightly convert attribute data to PostGIS > > Any thoughts on the maintenance cost for each? > Cheers, Bill > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From nipapada at gmail.com Mon Aug 4 11:07:17 2008 From: nipapada at gmail.com (=?ISO-8859-7?Q?=CD=DF=EA=EF=F2_=D0=E1=F0=E1=E4=DC=EA=E7=F2?=) Date: Mon, 04 Aug 2008 21:07:17 +0300 Subject: [mapserver-users] Shp file creation. Message-ID: <48974555.9030005@gmail.com> Hello to everyone. I want to ask about something that i have asked before but i could not find a solution. I have measured coordinates of some points in a city and i want to render them with mapserver. I have created a csv file with these values.. LONGITUTE,LATITUDE,DESCRIPTION,ADDRESS 22.561867,39.215857,????????? ?????,null 22.57267,39.212835,"???????????? ?????????,?????? ???????????.",argonautwn 22.57070,39.212690,Caf?-Bar Drops.,argonautwn 22.565973,39.212715,Flocafe,argonautwn 22.565865,39.212754,Reef,argonautwn 22.565830,39.212776,Jam,argonautwn . . . . . . . . . . . . . . . . . . . . . . . . Then i ue a program found here ( http://www.softpedia.com/get/Programming/Other-Programming-Files/CSV-to-Shapefile-Converter.shtml ) to create the .shp, .shx and .dbf files. But as i said before i can get no points on the map. I have some other point data and they work just fine. So i guess the problem isn't in the map file but in the data. Can anyone find the problem? Thank you all for your time! Nikos Papadakis. Univercity of Thessaly. From James.Leveille at mtq.gouv.qc.ca Mon Aug 4 11:08:15 2008 From: James.Leveille at mtq.gouv.qc.ca (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Mon, 4 Aug 2008 14:08:15 -0400 Subject: [mapserver-users] MapServer + Database + WFS In-Reply-To: Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E063A304B@SINFRA0-EXC003.MTQ.MIN.INTRA> Hi Tim, If it's not too late (I'm coming back from vacation), here is a working example with MapServer 5 (on Windows) and Oracle 10g. I'm also using a custom projection. Hope it helps. --- MAP NAME "Prototype" CONFIG PROJ_LIB "D:/mapserver5_orcl/ms4w/proj/nad" PROJECTION "init=epsg:42105" END WEB METADATA "wfs_title" "Prototype" "wfs_onlineresource" "http://server_name/MapServer5_orcl/mapserv.exe?map=D:\project\my_wfs_mapfil e.map" "wfs_srs" "EPSG:42105" # *** Contrary to WMS, I think that the OGC WFS specification doesn't allow a layer (feature type) to be advertized in more than one SRS. "wfs_abstract" "My prototype ..." "wfs_geometry_element_name" "MS_GEOMETRY" END END STATUS ON EXTENT 30000 75000 1710000 2120000 # Custom projection # SHAPEPATH "D:/systemes/dds/donnees/" UNITS METERS # MY LAYER LAYER NAME "layer name" PROJECTION "init=EPSG:42105" # Custom projection END METADATA "wfs_title" "Layer Name" "wfs_name" "Layer Name" "wfs_abstract" "Layer Name" "wfs_srs" "EPSG:42105" # Custom projection "wfs_geometry_element_name" "MS_GEOMETRY" "wfs_version" "1.0.0" "wfs_request_method" "GET" "wfs_connectiontimeout" "600" "wfs_featureid" "ide_segmn_ferrv" "gml_exclude_items" "all" "gml_include_items" "ide_segmn_ferrv" #,num_rtss,authr_respn,indct_sourc_ctq_mtq,topnm,clasf_res_camng" END STATUS ON DUMP TRUE EXTENT 30000 75000 1700000 2120000 # Custom projection CONNECTIONTYPE oraclespatial CONNECTION "user/pw at inst" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geo_segmn_ferrv FROM bgr_segmn_ferrv USING UNIQUE ide_segmn_ferrv SRID 1557057 " TYPE LINE END END ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -----Message d'origine----- De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Nolte, Tim Envoy? : 30 juillet 2008 10:55 ? : mapserver-users at lists.osgeo.org Objet : [mapserver-users] MapServer + Database + WFS Is no one out there using Oracle Spatial, or any other DB, with MapServer and WFS? There is pretty much a huge lack of documentation for serving WFS from MapServer. It would be nice to know if what I'm attempting is even possible or not. Thanks if someone does actually respond. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com 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 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Tim.Nolte at ipcswirelessinc.com Mon Aug 4 11:22:54 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Mon, 4 Aug 2008 14:22:54 -0400 Subject: [mapserver-users] MapServer + Database + WFS In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E063A304B@SINFRA0-EXC003.MTQ.MIN.INTRA> References: <2F86ED212F3E164EB9FBB2E68C67858E063A304B@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: James, Thanks for the info. After a bunch of trial and error I was able to finally able to get WFS working, and our WFS client actually having the objects. One problem that I did run into was with the size of the data. I had around 1800 or so features each with around 15 attributes of data. This proved to take like 20 minutes for the entire amount of data to load. I'm not sure if you have any suggestions with that one. The only thing I found was to break up the data into smaller chunks, while not the most ideal solution it at least helped to reduce some of the load time feel. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com 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: L?veill?, James [mailto:James.Leveille at mtq.gouv.qc.ca] > Sent: Monday, August 04, 2008 2:08 PM > To: Nolte, Tim; mapserver-users at lists.osgeo.org > Subject: RE : [mapserver-users] MapServer + Database + WFS > > Hi Tim, > > If it's not too late (I'm coming back from vacation), here is > a working > example with MapServer 5 (on Windows) and Oracle 10g. > I'm also using a custom projection. > > Hope it helps. > > > --- > MAP > > NAME "Prototype" > CONFIG PROJ_LIB "D:/mapserver5_orcl/ms4w/proj/nad" > > PROJECTION > "init=epsg:42105" > END > WEB > METADATA > "wfs_title" "Prototype" > "wfs_onlineresource" > "http://server_name/MapServer5_orcl/mapserv.exe?map=D:\project > \my_wfs_mapfil > e.map" > "wfs_srs" "EPSG:42105" # *** > Contrary to WMS, > I think that the OGC WFS specification doesn't allow a layer > (feature type) > to be advertized in more than one SRS. > "wfs_abstract" "My prototype ..." > "wfs_geometry_element_name" "MS_GEOMETRY" > END > END > STATUS ON > > EXTENT 30000 75000 1710000 2120000 # > Custom projection > # SHAPEPATH "D:/systemes/dds/donnees/" > UNITS METERS > > # MY LAYER > > LAYER > > NAME "layer name" > PROJECTION > "init=EPSG:42105" # Custom projection > END > METADATA > "wfs_title" "Layer Name" > "wfs_name" "Layer Name" > "wfs_abstract" "Layer Name" > "wfs_srs" "EPSG:42105" # Custom projection > > "wfs_geometry_element_name" "MS_GEOMETRY" > "wfs_version" "1.0.0" > "wfs_request_method" "GET" > "wfs_connectiontimeout" "600" > > "wfs_featureid" "ide_segmn_ferrv" > "gml_exclude_items" "all" > "gml_include_items" "ide_segmn_ferrv" > #,num_rtss,authr_respn,indct_sourc_ctq_mtq,topnm,clasf_res_camng" > END > STATUS ON > DUMP TRUE > > EXTENT 30000 75000 1700000 2120000 # > Custom projection > > CONNECTIONTYPE oraclespatial > CONNECTION "user/pw at inst" > PROCESSING "CLOSE_CONNECTION=DEFER" > DATA "geo_segmn_ferrv FROM > bgr_segmn_ferrv USING UNIQUE > ide_segmn_ferrv SRID 1557057 " > TYPE LINE > > END > > END > > > > > > > > > > > > ______________________________________________________ > JAMES L?VEILL? > Service des syst?mes de Mission > Direction des technologies de l'information > Minist?re des Transports du Qu?bec > 5833, boul. Pierre-Bertrand, 2i?me ?tage > Qu?bec (Qu?bec) G2K 1K7 > T?l?phone: (418) 380-2005 poste 227 > T?l?copieur: (418) 644-6653 > james.leveille at mtq.gouv.qc.ca > > > > > -----Message d'origine----- > De : mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] De la part > de Nolte, Tim > Envoy? : 30 juillet 2008 10:55 > ? : mapserver-users at lists.osgeo.org > Objet : [mapserver-users] MapServer + Database + WFS > > > Is no one out there using Oracle Spatial, or any other DB, > with MapServer > and WFS? There is pretty much a huge lack of documentation > for serving WFS > from MapServer. It would be nice to know if what I'm > attempting is even > possible or not. Thanks if someone does actually respond. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > 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 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From James.Leveille at mtq.gouv.qc.ca Mon Aug 4 11:39:29 2008 From: James.Leveille at mtq.gouv.qc.ca (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Mon, 4 Aug 2008 14:39:29 -0400 Subject: [mapserver-users] MapServer + Database + WFS Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E063A304E@SINFRA0-EXC003.MTQ.MIN.INTRA> Hi Tim, I had the same problem - even a few "timeouts" on the server side (I know, with IIS ...). >From my experience, WFS worked fine with a few features, but it proved to be "more difficult" to use when there were to many of them due 1) to the size of the GML file returned and 2) to the time it takes to read all the information from Oracle. I found no solution to this problem ... ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -----Message d'origine----- De : Nolte, Tim [mailto:Tim.Nolte at ipcswirelessinc.com] Envoy? : 4 ao?t 2008 14:23 ? : L?veill?, James; mapserver-users at lists.osgeo.org Objet : RE: RE : [mapserver-users] MapServer + Database + WFS James, Thanks for the info. After a bunch of trial and error I was able to finally able to get WFS working, and our WFS client actually having the objects. One problem that I did run into was with the size of the data. I had around 1800 or so features each with around 15 attributes of data. This proved to take like 20 minutes for the entire amount of data to load. I'm not sure if you have any suggestions with that one. The only thing I found was to break up the data into smaller chunks, while not the most ideal solution it at least helped to reduce some of the load time feel. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com 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: L?veill?, James [mailto:James.Leveille at mtq.gouv.qc.ca] > Sent: Monday, August 04, 2008 2:08 PM > To: Nolte, Tim; mapserver-users at lists.osgeo.org > Subject: RE : [mapserver-users] MapServer + Database + WFS > > Hi Tim, > > If it's not too late (I'm coming back from vacation), here is a > working example with MapServer 5 (on Windows) and Oracle 10g. > I'm also using a custom projection. > > Hope it helps. > > > --- > MAP > > NAME "Prototype" > CONFIG PROJ_LIB "D:/mapserver5_orcl/ms4w/proj/nad" > > PROJECTION > "init=epsg:42105" > END > WEB > METADATA > "wfs_title" "Prototype" > "wfs_onlineresource" > "http://server_name/MapServer5_orcl/mapserv.exe?map=D:\project > \my_wfs_mapfil > e.map" > "wfs_srs" "EPSG:42105" # *** > Contrary to WMS, > I think that the OGC WFS specification doesn't allow a layer > (feature type) > to be advertized in more than one SRS. > "wfs_abstract" "My prototype ..." > "wfs_geometry_element_name" "MS_GEOMETRY" > END > END > STATUS ON > > EXTENT 30000 75000 1710000 2120000 # > Custom projection > # SHAPEPATH "D:/systemes/dds/donnees/" > UNITS METERS > > # MY LAYER > > LAYER > > NAME "layer name" > PROJECTION > "init=EPSG:42105" # Custom projection > END > METADATA > "wfs_title" "Layer Name" > "wfs_name" "Layer Name" > "wfs_abstract" "Layer Name" > "wfs_srs" "EPSG:42105" # Custom projection > > "wfs_geometry_element_name" "MS_GEOMETRY" > "wfs_version" "1.0.0" > "wfs_request_method" "GET" > "wfs_connectiontimeout" "600" > > "wfs_featureid" "ide_segmn_ferrv" > "gml_exclude_items" "all" > "gml_include_items" "ide_segmn_ferrv" > #,num_rtss,authr_respn,indct_sourc_ctq_mtq,topnm,clasf_res_camng" > END > STATUS ON > DUMP TRUE > > EXTENT 30000 75000 1700000 2120000 # > Custom projection > > CONNECTIONTYPE oraclespatial > CONNECTION "user/pw at inst" > PROCESSING "CLOSE_CONNECTION=DEFER" > DATA "geo_segmn_ferrv FROM > bgr_segmn_ferrv USING UNIQUE > ide_segmn_ferrv SRID 1557057 " > TYPE LINE > > END > > END > > > > > > > > > > > > ______________________________________________________ > JAMES L?VEILL? > Service des syst?mes de Mission > Direction des technologies de l'information > Minist?re des Transports du Qu?bec > 5833, boul. Pierre-Bertrand, 2i?me ?tage > Qu?bec (Qu?bec) G2K 1K7 > T?l?phone: (418) 380-2005 poste 227 > T?l?copieur: (418) 644-6653 > james.leveille at mtq.gouv.qc.ca > > > > > -----Message d'origine----- > De : mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de Nolte, > Tim Envoy? : 30 juillet 2008 10:55 > ? : mapserver-users at lists.osgeo.org > Objet : [mapserver-users] MapServer + Database + WFS > > > Is no one out there using Oracle Spatial, or any other DB, with > MapServer and WFS? There is pretty much a huge lack of documentation > for serving WFS > from MapServer. It would be nice to know if what I'm > attempting is even > possible or not. Thanks if someone does actually respond. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > 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 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From pcreso at pcreso.com Mon Aug 4 11:55:59 2008 From: pcreso at pcreso.com (pcreso at pcreso.com) Date: Mon, 4 Aug 2008 11:55:59 -0700 (PDT) Subject: [mapserver-users] MapServer + Database + WFS In-Reply-To: <2F86ED212F3E164EB9FBB2E68C67858E063A304E@SINFRA0-EXC003.MTQ.MIN.INTRA> Message-ID: <665165.9143.qm@web33207.mail.mud.yahoo.com> Hi all, One approach I'm looking at to manage this is setting up scale dependent zoom layers. Zoomed out, only a significant subset of features, simplified to reduce the vertex count, progressively adding features & reducing the simplify corridor as the map zooms in, to try & send a roughly constant volume of data to the client irrespective of scale. The text version of a vertex list is pretty long, often hundreds of kb for a feature, so reducing the no of vertices & features should make a big difference. I'm also looking at reducing the number of significant digits used to store each vertex, given each digit becomes 1 byte in XML, as the values often provide a far higher precision than is necessary (but I'm not too sure how to do this yet :-) All this is in the pretty early stages of trialling, so any comments or advice appreciated. Cheers, Brent Wood --- On Tue, 8/5/08, L?veill?, James wrote: > From: L?veill?, James > Subject: RE : RE : [mapserver-users] MapServer + Database + WFS > To: "Nolte, Tim" , mapserver-users at lists.osgeo.org > Date: Tuesday, August 5, 2008, 6:39 AM > Hi Tim, > > I had the same problem - even a few "timeouts" on > the server side (I know, > with IIS ...). > > >From my experience, WFS worked fine with a few > features, but it proved to be > "more difficult" to use when there were to many > of them due 1) to the size > of the GML file returned and 2) to the time it takes to > read all the > information from Oracle. > > I found no solution to this problem ... > > > > ______________________________________________________ > JAMES L?VEILL? > Service des syst?mes de Mission > Direction des technologies de l'information > Minist?re des Transports du Qu?bec > 5833, boul. Pierre-Bertrand, 2i?me ?tage > Qu?bec (Qu?bec) G2K 1K7 > T?l?phone: (418) 380-2005 poste 227 > T?l?copieur: (418) 644-6653 > james.leveille at mtq.gouv.qc.ca > > > > > -----Message d'origine----- > De : Nolte, Tim [mailto:Tim.Nolte at ipcswirelessinc.com] > Envoy? : 4 ao?t 2008 14:23 > ? : L?veill?, James; mapserver-users at lists.osgeo.org > Objet : RE: RE : [mapserver-users] MapServer + Database + > WFS > > > James, > > Thanks for the info. After a bunch of trial and error I was > able to finally > able to get WFS working, and our WFS client actually having > the objects. One > problem that I did run into was with the size of the data. > I had around 1800 > or so features each with around 15 attributes of data. This > proved to take > like 20 minutes for the entire amount of data to load. > I'm not sure if you > have any suggestions with that one. The only thing I found > was to break up > the data into smaller chunks, while not the most ideal > solution it at least > helped to reduce some of the load time feel. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > 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: L?veill?, James > [mailto:James.Leveille at mtq.gouv.qc.ca] > > Sent: Monday, August 04, 2008 2:08 PM > > To: Nolte, Tim; mapserver-users at lists.osgeo.org > > Subject: RE : [mapserver-users] MapServer + Database + > WFS > > > > Hi Tim, > > > > If it's not too late (I'm coming back from > vacation), here is a > > working example with MapServer 5 (on Windows) and > Oracle 10g. > > I'm also using a custom projection. > > > > Hope it helps. > > > > > > --- > > MAP > > > > NAME "Prototype" > > CONFIG PROJ_LIB > "D:/mapserver5_orcl/ms4w/proj/nad" > > > > PROJECTION > > "init=epsg:42105" > > END > > WEB > > METADATA > > "wfs_title" > "Prototype" > > "wfs_onlineresource" > > > "http://server_name/MapServer5_orcl/mapserv.exe?map=D:\project > > \my_wfs_mapfil > > e.map" > > "wfs_srs" > "EPSG:42105" # *** > > Contrary to WMS, > > I think that the OGC WFS specification doesn't > allow a layer > > (feature type) > > to be advertized in more than one SRS. > > "wfs_abstract" > "My prototype ..." > > "wfs_geometry_element_name" > "MS_GEOMETRY" > > END > > END > > STATUS ON > > > > EXTENT 30000 75000 1710000 2120000 > # > > Custom projection > > # SHAPEPATH > "D:/systemes/dds/donnees/" > > UNITS METERS > > > > # MY LAYER > > > > LAYER > > > > NAME "layer > name" > > PROJECTION > > "init=EPSG:42105" # Custom projection > > END > > METADATA > > "wfs_title" > "Layer Name" > > "wfs_name" > "Layer Name" > > "wfs_abstract" > "Layer Name" > > "wfs_srs" > "EPSG:42105" # Custom projection > > > > "wfs_geometry_element_name" > "MS_GEOMETRY" > > "wfs_version" > "1.0.0" > > "wfs_request_method" > "GET" > > "wfs_connectiontimeout" > "600" > > > > "wfs_featureid" > "ide_segmn_ferrv" > > "gml_exclude_items" > "all" > > "gml_include_items" > "ide_segmn_ferrv" > > > #,num_rtss,authr_respn,indct_sourc_ctq_mtq,topnm,clasf_res_camng" > > END > > STATUS ON > > DUMP TRUE > > > > EXTENT 30000 75000 1700000 2120000 > # > > Custom projection > > > > CONNECTIONTYPE oraclespatial > > CONNECTION "user/pw at inst" > > PROCESSING > "CLOSE_CONNECTION=DEFER" > > DATA "geo_segmn_ferrv FROM > > bgr_segmn_ferrv USING UNIQUE > > ide_segmn_ferrv SRID 1557057 " > > TYPE LINE > > > > END > > > > END > > > > > > > > > > > > > > > > > > > > > > > > ______________________________________________________ > > JAMES L?VEILL? > > Service des syst?mes de Mission > > Direction des technologies de l'information > > Minist?re des Transports du Qu?bec > > 5833, boul. Pierre-Bertrand, 2i?me ?tage > > Qu?bec (Qu?bec) G2K 1K7 > > T?l?phone: (418) 380-2005 poste 227 > > T?l?copieur: (418) 644-6653 > > james.leveille at mtq.gouv.qc.ca > > > > > > > > > > -----Message d'origine----- > > De : mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] De la > part de Nolte, > > Tim Envoy? : 30 juillet 2008 10:55 > > ? : mapserver-users at lists.osgeo.org > > Objet : [mapserver-users] MapServer + Database + WFS > > > > > > Is no one out there using Oracle Spatial, or any other > DB, with > > MapServer and WFS? There is pretty much a huge lack of > documentation > > for serving WFS > > from MapServer. It would be nice to know if what > I'm > > attempting is even > > possible or not. Thanks if someone does actually > respond. > > > > - Tim > > > > ---- > > Timothy J Nolte - tnolte at ilpcs.com > > 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 > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Mon Aug 4 12:33:56 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 04 Aug 2008 14:33:56 -0500 Subject: [mapserver-users] Problems with TrueType Symbol and Linestyle afterSwitching to AGG In-Reply-To: <4894CB76.2020901@gisnet.com> References: <4894CB76.2020901@gisnet.com> Message-ID: <48971353.5157.008F.0@dnr.state.mn.us> Cartolines are supported using GD only I believe. There's not much benefit to using them with AGG. You'd need a different means of specifying your ties symbol. Of the top of my head a truetype symbol using a | might work well. I bet others on the list might have ideas on that too. As for the other problem, it seems that the AGG code isn't recognizing the same character encoding sequence as GD. We'll have to look into that a bit more and get back with you. I have enough test ttf files to try a few things. Steve >>> On 8/2/2008 at 4:02 PM, in message <4894CB76.2020901 at gisnet.com>, Bill Thoen wrote: > I just built MapServer 5.0.3 with AGG 2.5 support on my FC9 box and > while my maps now look LOTS nicer, I noticed that the TrueType symbols > that I use for Fire stations now appear as an open box, and my railroad > lines have lost their crossties. When I use the GD driver in the map > file OUTPUTFORMAT section, these items still appear correctly. But when > I use the AGG driver they don't. Can anyone tell me what's wrong? (I've > been searching vain for some comprehensive MapServer-AGG documentation > but the only two docs I've found (the Migration_Guide and > AGG_Rendering_Specifics) didn't help me. > > Here's how I've defined the fire stations in my symbol file: > SYMBOL > NAME 'station' > TYPE TRUETYPE > FONT 'ers_ops_1' > CHARACTER 'Y' > ANTIALIAS TRUE > FILLED TRUE > END > > And here's how I set up that layer in my map file: > LAYER > NAME stations > TYPE POINT > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "FireStations.TAB" > LABELITEM "Name" > CLASS > NAME "Fire Stations" > EXPRESSION ([id] ne 6) > SYMBOL "station" > SIZE 32 > COLOR 255 0 0 > OUTLINECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > POSITION LC > SIZE medium > END > TEMPLATE "/var/www/html/blt/longmont/stations.html" > END > TOLERANCE 5 > HEADER "/var/www/html/blt/longmont/stations_header.html" > FOOTER "/var/www/html/blt/longmont/footer.html" > > PROJECTION > "init=epsg:4326" > END > END > > The rail lines ares set up like so in the symbol file: > SYMBOL > NAME 'track' > TYPE ELLIPSE > FILLED TRUE > POINTS 1 1 END > END > > SYMBOL > NAME "tie" > TYPE cartoline > LINECAP butt > LINEJOIN miter > LINEJOINMAXSIZE 3 > STYLE > 1 10 1 10 > END > END > > and in the map file: > LAYER > NAME railroads > GROUP transportation > TYPE LINE > STATUS ON > CONNECTIONTYPE OGR > CONNECTION "railroads.TAB" > LABELITEM "Name" > CLASS > NAME "Railroads" > STYLE > SYMBOL 'track' > SIZE 1 > COLOR 128 128 128 > END > STYLE > SYMBOL "tie" > SIZE 5 > COLOR 128 128 128 > END > END > PROJECTION > "init=epsg:4326" > END > END > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From abe.gillespie.lists at gmail.com Mon Aug 4 13:20:14 2008 From: abe.gillespie.lists at gmail.com (Abram Gillespie) Date: Mon, 4 Aug 2008 16:20:14 -0400 Subject: [mapserver-users] ANN: zigGIS Source Code / T-shirts Message-ID: <283a65ca0808041320r72aef881teb78904d1dd242ba@mail.gmail.com> Hi Everyone, We've got a couple of announcements ... o In an effort to better serve our user base, Obtuse Software is now offering zigGIS t-shirts. Our apparel is infused with space-age technology that enables us to remotely read the needs of our users and implement the features you need most. To take advantage of this cutting edge opportunity, simply buy a t-shirt (or a few) and email us your thoughts. Brilliant! http://www.cafepress.com/obtusesoft o The homepage has been updated with new links. http://www.obtusesoft.com/ Oh, did we mention the source code is now available? http://www.obtusesoft.com/source.aspx Please be kind and mind the EULA. Enjoy! -- Abe Gillespie abe at obtusesoft.com zigGIS Team Obtuse Software, http://www.obtusesoft.com From steve at online-archaeology.co.uk Mon Aug 4 13:56:16 2008 From: steve at online-archaeology.co.uk (Steve White) Date: Mon, 4 Aug 2008 21:56:16 +0100 Subject: [mapserver-users] Shapefile field length problem Message-ID: <002a01c8f674$89b8d490$9d2a7db0$@co.uk> I'm trying to dump some tables out of MS SQL Server 2000 using a vrt file. The sql query includes a text field that could contain a large amount of characters. Here's my VRT file: MyDSN EXEC MySP ID wkbPoint WGS84 I'm using org2ogr to produce a shapefile and it's all working fine. However, when I open the DBF file in Excel I see that the text field has been truncated at exactly 80 characters. I'm guessing that it's doing this by default because no explicit value has been set for the text field length. How can I specify a length for a text (string) field for my shp file when dumping out via ogr2ogr and a vrt file as above? Cheers, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From group.ritesh at gmail.com Tue Aug 5 03:53:05 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Tue, 5 Aug 2008 03:53:05 -0700 (PDT) Subject: [MAPSERVER-USERS] Road Lines with AGG Message-ID: <18828729.post@talk.nabble.com> http://www.nabble.com/file/p18828729/road.png In the map file, I have defined the imagetype and outputformat as: IMAGETYPE AGG OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END My line layers are written with antialias as true. How can I correct the lines with more smoothness while keeping the same sharpness? Thanks, Ritesh Ambastha -- View this message in context: http://www.nabble.com/Road-Lines-with-AGG-tp18828729p18828729.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Tue Aug 5 04:26:27 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 5 Aug 2008 13:26:27 +0200 Subject: [mapserver-users] Shapefile field length problem In-Reply-To: <002a01c8f674$89b8d490$9d2a7db0$@co.uk> References: <002a01c8f674$89b8d490$9d2a7db0$@co.uk> Message-ID: Steve, RFC 21 has already been added in the SVN trunk so you can use the OGR SQL to specify the field length like: ogr2ogr -f "ESRI Shapefile" -sql "select *, CAST(myfield AS character(255)) from mylayer" myfile.shp myfile.vrt for more information see: http://trac.osgeo.org/gdal/wiki/rfc21_ogrsqlcast http://www.gdal.org/ogr/ogr_sql.html Best regards, Tamas 2008/8/4 Steve White : > I'm trying to dump some tables out of MS SQL Server 2000 using a vrt file. > The sql query includes a text field that could contain a large amount of > characters. > > > > Here's my VRT file: > > > > > > > > MyDSN > > EXEC MySP > > ID > > wkbPoint > > WGS84 > > x="Longitude"/> > > > > > > > > I'm using org2ogr to produce a shapefile and it's all working fine. However, > when I open the DBF file in Excel I see that the text field has been > truncated at exactly 80 characters. > > > > I'm guessing that it's doing this by default because no explicit value has > been set for the text field length. > > > > How can I specify a length for a text (string) field for my shp file when > dumping out via ogr2ogr and a vrt file as above? > > > > Cheers, > > > > Steve > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From peter at nexus.dk Tue Aug 5 05:30:07 2008 From: peter at nexus.dk (Peter Falk) Date: Tue, 05 Aug 2008 14:30:07 +0200 Subject: [mapserver-users] zoomRectangle in combination with zoomPoint Message-ID: <489847CF.5020702@nexus.dk> Hi, I'm having some difficulties with zoomRectangle in combination with zoomPoint, when working with both a map and a reference map. The only way I've been able to successfully synchronize the map when clicking on the reference map, is by using max_extent and an absolut zoom-factor: zoomPoint( $this->zoom_factor, $this->clkpoint, $this->map->width, $this->map->height, $this->max_extent, $this->max_extent); Thereby the zoom factor and the click point determine the extent of the map. But when using zoomRectangle it's not possible to do this. Instead one must pass the actual extent as a parameter. When doing this, zoomPoint no longer act correct. Does anyone know how to overcome this problem? -- Regards Peter Falk From Tim.Nolte at ipcswirelessinc.com Tue Aug 5 06:32:01 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Tue, 5 Aug 2008 09:32:01 -0400 Subject: [MAPSERVER-USERS] Road Lines with AGG In-Reply-To: <18828729.post@talk.nabble.com> References: <18828729.post@talk.nabble.com> Message-ID: When you are using AGG for your output do not use antialias true on your layers. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com 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: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Ritesh Ambastha > Sent: Tuesday, August 05, 2008 6:53 AM > To: mapserver-users at lists.osgeo.org > Subject: [MAPSERVER-USERS] Road Lines with AGG > > > http://www.nabble.com/file/p18828729/road.png > > In the map file, I have defined the imagetype and outputformat as: > > IMAGETYPE AGG > > OUTPUTFORMAT > NAME 'AGG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > My line layers are written with antialias as true. > > How can I correct the lines with more smoothness while > keeping the same > sharpness? > > Thanks, > Ritesh Ambastha > -- > View this message in context: > http://www.nabble.com/Road-Lines-with-AGG-tp18828729p18828729.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From bill.wordsworth at gmail.com Tue Aug 5 07:25:04 2008 From: bill.wordsworth at gmail.com (Bill Wordsworth) Date: Tue, 5 Aug 2008 10:25:04 -0400 Subject: [MAPSERVER-USERS] How to map attribute data (non-geom) from Oracle(not Spatial)? In-Reply-To: References: <1e07a2bd0808040928g4be5dd00v4fe72848387938b3@mail.gmail.com> Message-ID: <1e07a2bd0808050725i79bc98edsce08e4511cfd0e75@mail.gmail.com> This is exciting news! I am using Oracle 10g and get Oracle Locator free but how do I map data from Oracle Locator? Are you doing a JOIN+FILTER? Can you share a LAYER snippet from your MAP file? Cheers, Bill On Mon, Aug 4, 2008 at 1:15 PM, Nolte, Tim wrote: > What version of Oracle are you using? If you are using 10g or higher it > comes with Oracle Locator free. Oracle Locator is like Oracle Spatial > Lite. We are using this for point data and polygons for our MapServer. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > 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: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Bill Wordsworth >> Sent: Monday, August 04, 2008 12:28 PM >> To: mapserver-users at lists.osgeo.org >> Subject: [MAPSERVER-USERS] How to map attribute data >> (non-geom) from Oracle(not Spatial)? >> >> What is the best way to map attribute data (non-geom) from Oracle (not >> Spatial) using MapServer? >> >> Can I do this? >> LAYER >> NAME "states_shapefile" >> DATA "path/states_shapefile" >> ... >> JOIN >> NAME "oracle" >> CONNECTIONTYPE ogr >> CONNECTION "..." >> TABLE "oracle_states_table" >> FROM "oracle_name" >> TO "shapefile_name" >> TYPE ONE-TO-ONE >> END >> # FILTERITEM "" >> FILTER "governor='Arnold'" >> END >> http://mapserver.gis.umn.edu/docs/reference/mapfile/join#examp >> le-2-join-from-shp-file-to-postgresql-table >> >> If not, what is the best way around? >> * Spend $$$ for Oracle Spatial >> * Nightly convert attribute data to shapefile >> * Nightly convert attribute data to PostGIS >> >> Any thoughts on the maintenance cost for each? >> Cheers, Bill >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > From srph124 at yahoo.com Tue Aug 5 07:29:36 2008 From: srph124 at yahoo.com (Saka Royban) Date: Tue, 5 Aug 2008 07:29:36 -0700 (PDT) Subject: [mapserver-users] Arabic-Farsi-Hebrew support? In-Reply-To: <48972B21.2050009@swoodbridge.com> Message-ID: <350577.4541.qm@web58203.mail.re3.yahoo.com> Thanks Stephen sorry --- On Mon, 8/4/08, Stephen Woodbridge wrote: From: Stephen Woodbridge Subject: Re: [mapserver-users] Arabic-Farsi-Hebrew support? To: "Saka Royban" Cc: mapserver-users at lists.osgeo.org Date: Monday, August 4, 2008, 9:15 AM Saka Royban wrote: > > Hi all. > I'm new to Mapserver. I want to know if Mapserver is able to handle > Arabic-Farsi(Persian) and Hebrew correctly (using gettext). In these > languages letter join to each other to form a word not like others which > letters are separate with no problem. also they are written right to > left not left to right. This is an important point for labeling. > Searching nabble.com, i found a post some months ago discussing around > this problem and associated ticket. That would be my pleasure to know > the result if any knows. > Thanks in advance Well, I'm not sure about "gettext" part of your question, but with Release 5.2 you can now build with fribidi2 support and render labels with shaping in Arabic-Farsi(Persian) and Hebrew correctly provided you have a truetype font that supports all the unicode shape characters. -Steve W -------------- next part -------------- An HTML attachment was scrubbed... URL: From group.ritesh at gmail.com Tue Aug 5 07:31:55 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Tue, 5 Aug 2008 07:31:55 -0700 (PDT) Subject: [MAPSERVER-USERS] Road Lines with AGG In-Reply-To: References: <18828729.post@talk.nabble.com> Message-ID: <18832405.post@talk.nabble.com> I tried by commenting antialias true. But, still am getting the same sprited lines. I have kept transparency as alpha. Is this creating some problems? Thanks, Ritesh Ambastha Nolte, Tim wrote: > > When you are using AGG for your output do not use antialias true on your > layers. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > 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: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Ritesh Ambastha >> Sent: Tuesday, August 05, 2008 6:53 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [MAPSERVER-USERS] Road Lines with AGG >> >> >> http://www.nabble.com/file/p18828729/road.png >> >> In the map file, I have defined the imagetype and outputformat as: >> >> IMAGETYPE AGG >> >> OUTPUTFORMAT >> NAME 'AGG' >> DRIVER AGG/PNG >> IMAGEMODE RGB >> END >> >> My line layers are written with antialias as true. >> >> How can I correct the lines with more smoothness while >> keeping the same >> sharpness? >> >> Thanks, >> Ritesh Ambastha >> -- >> View this message in context: >> http://www.nabble.com/Road-Lines-with-AGG-tp18828729p18828729.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Road-Lines-with-AGG-tp18828729p18832405.html Sent from the Mapserver - User mailing list archive at Nabble.com. From srph124 at yahoo.com Tue Aug 5 07:33:44 2008 From: srph124 at yahoo.com (Saka Royban) Date: Tue, 5 Aug 2008 07:33:44 -0700 (PDT) Subject: [mapserver-users] Arabic-Farsi-Hebrew support? In-Reply-To: <48972B21.2050009@swoodbridge.com> Message-ID: <965233.28457.qm@web58206.mail.re3.yahoo.com> Thanks Stephen sorry about gettext. I was mensioning this in CartoWeb mailinglist implemented on Mapserver. forgetting to remove it. as i understand, you say i can use mapserever 5.2 and it has support of this by fribidi2. because i use MS4W with no building from scratch, i'm asking this question. Thanks again for your help --- On Mon, 8/4/08, Stephen Woodbridge wrote: From: Stephen Woodbridge Subject: Re: [mapserver-users] Arabic-Farsi-Hebrew support? To: "Saka Royban" Cc: mapserver-users at lists.osgeo.org Date: Monday, August 4, 2008, 9:15 AM Saka Royban wrote: > > Hi all. > I'm new to Mapserver. I want to know if Mapserver is able to handle > Arabic-Farsi(Persian) and Hebrew correctly (using gettext). In these > languages letter join to each other to form a word not like others which > letters are separate with no problem. also they are written right to > left not left to right. This is an important point for labeling. > Searching nabble.com, i found a post some months ago discussing around > this problem and associated ticket. That would be my pleasure to know > the result if any knows. > Thanks in advance Well, I'm not sure about "gettext" part of your question, but with Release 5.2 you can now build with fribidi2 support and render labels with shaping in Arabic-Farsi(Persian) and Hebrew correctly provided you have a truetype font that supports all the unicode shape characters. -Steve W -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Nolte at ipcswirelessinc.com Tue Aug 5 07:38:11 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Tue, 5 Aug 2008 10:38:11 -0400 Subject: [MAPSERVER-USERS] How to map attribute data (non-geom) from Oracle(not Spatial)? In-Reply-To: <1e07a2bd0808050725i79bc98edsce08e4511cfd0e75@mail.gmail.com> References: <1e07a2bd0808040928g4be5dd00v4fe72848387938b3@mail.gmail.com> <1e07a2bd0808050725i79bc98edsce08e4511cfd0e75@mail.gmail.com> Message-ID: Bill, Here is a layer definition I am using for Oracle Spatial(Locator) data. LAYER GROUP "Cell Sites" NAME "On-Air" TYPE POINT STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "username/password at sid" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom FROM (SELECT st.bts_nbr, sgt.geom FROM site_tab st, site_geom_tab sgt WHERE st.site_id = sgt.site_id AND st.site_status_id IN (4,7)) USING SRID 8307" LABELITEM "bts_nbr" METADATA "static_legend" "1" END DUMP true CLASS NAME "On-Air Large Scale" MINSCALE 0 MAXSCALE 1200000 STYLE SYMBOL "circle" COLOR 22 129 17 OUTLINECOLOR 255 255 255 SIZE 12 END LABEL TYPE TRUETYPE FONT "sans" SIZE 7 POSITION CR OFFSET 0 2 ANGLE AUTO BUFFER 3 MINDISTANCE 30 MINFEATURESIZE 10 COLOR 0 0 0 OUTLINECOLOR 245 245 231 SHADOWSIZE 3 3 BACKGROUNDSHADOWSIZE 1 -1 END END CLASS NAME "On-Air Small Scale" MINSCALE 1200000 MAXSCALE 6000000 STYLE SYMBOL "circle" COLOR 22 129 17 OUTLINECOLOR 255 255 255 SIZE 8 END END END The key here is that you need to have MapServer compiled with Oracle Spatial support. And you can see from my data line that that I do standard Oracle SQL statements for building my spatial results. I'm not using any shapefiles in this instance. The spatial data is actually stored right in the database table. There are tools to import shapefiles into Oracle. If your data is points you can build insert statements to populated your geometry columns. You're probably going to want to do some reading up on Oracle spatial. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com 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: Bill Wordsworth [mailto:bill.wordsworth at gmail.com] > Sent: Tuesday, August 05, 2008 10:25 AM > To: Nolte, Tim; mapserver-users at lists.osgeo.org > Subject: Re: [MAPSERVER-USERS] How to map attribute data > (non-geom) from Oracle(not Spatial)? > > This is exciting news! I am using Oracle 10g and get Oracle Locator > free but how do I map data from Oracle Locator? Are you doing a > JOIN+FILTER? Can you share a LAYER snippet from your MAP file? > Cheers, Bill From woodbri at swoodbridge.com Tue Aug 5 08:49:14 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Tue, 05 Aug 2008 10:49:14 -0500 Subject: [mapserver-users] Arabic-Farsi-Hebrew support? In-Reply-To: <965233.28457.qm@web58206.mail.re3.yahoo.com> References: <965233.28457.qm@web58206.mail.re3.yahoo.com> Message-ID: <4898767A.8030501@swoodbridge.com> Saka, You probably need to check on the MS4W list to be sure, but I did file a bug for this support and I think the ticket was closed so it should be supported, but you will probably need one of the most recent ones and I'm not sure if the change has been released yet. Check with MS4W for the status on this or read the release notes which are sure to mention it. -Steve W Saka Royban wrote: > > Thanks Stephen > sorry about gettext. I was mensioning this in CartoWeb mailinglist > implemented on Mapserver. forgetting to remove it. > as i understand, you say i can use mapserever 5.2 and it has support of > this by fribidi2. because i use MS4W with no building from scratch, i'm > asking this question. > Thanks again for your help > > --- On *Mon, 8/4/08, Stephen Woodbridge //* wrote: > > From: Stephen Woodbridge > Subject: Re: [mapserver-users] Arabic-Farsi-Hebrew support? > To: "Saka Royban" > Cc: mapserver-users at lists.osgeo.org > Date: Monday, August 4, 2008, 9:15 AM > > Saka Royban wrote: > > > > Hi all. > > I'm new to Mapserver. I want to know if Mapserver is able to handle > > Arabic-Farsi(Persian) and Hebrew correctly (using gettext). In these > > languages letter join to each other to form a word not like others which > > letters are separate with no problem. also they are written right to > > left not left to right. This is an important point for labeling. > > Searching nabble.com, i found a post some months ago discussing around > > this problem and associated ticket. That would be my pleasure to know > > the result if any knows. > > Thanks in advance > > Well, I'm not sure about "gettext" part of your question, but > with > Release 5.2 you can now build with fribidi2 support and render labels > with shaping in Arabic-Farsi(Persian) and Hebrew correctly provided you > have a truetype font that supports all the unicode shape characters. > > -Steve W > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From dmorissette at mapgears.com Tue Aug 5 08:03:47 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Tue, 05 Aug 2008 11:03:47 -0400 Subject: [mapserver-users] 5.2.0 and 5.02 differences and previous OGR problems post In-Reply-To: <238310.29592.qm@web23001.mail.ird.yahoo.com> References: <238310.29592.qm@web23001.mail.ird.yahoo.com> Message-ID: <48986BD3.3040206@mapgears.com> Derek Bain wrote: > Hi I found the 5.2 windows binary udate using google. I installed it and > now the ms_debug output shows > > [Fri Jul 25 11:19:15 2008].437000 msWFSDispatch(): WFS server error. > Incomplete WFS request: SERVICE parameter missing Sounds like the server is receiving a WMS or WFS request in which the SERVICE parameter is missing. The SERVICE parameter is mandatory for most OGC Web Services (except old versions like WMS 1.0.0 if I remember correctly). MapServer did not enforce that rule before and started doing it in 5.2... that's why you didn't see this error before. The fix should be to include the SERVICE=... parameter in your URLs. Daniel -- Daniel Morissette http://www.mapgears.com/ From nerkeilenemon at gmail.com Tue Aug 5 08:50:43 2008 From: nerkeilenemon at gmail.com (tommyr) Date: Tue, 5 Aug 2008 08:50:43 -0700 (PDT) Subject: [MAPSERVER-USERS] Problem with SymbolObj In-Reply-To: <7b2d12b90806252357i840a9d4rfa00609c7bd9e165@mail.gmail.com> References: <7b2d12b90806252357i840a9d4rfa00609c7bd9e165@mail.gmail.com> Message-ID: <18834013.post@talk.nabble.com> Can someone help me please ? :) -- View this message in context: http://www.nabble.com/Problem-with-SymbolObj-tp18127647p18834013.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Tue Aug 5 09:43:26 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 05 Aug 2008 11:43:26 -0500 Subject: [MAPSERVER-USERS] Problem with SymbolObj In-Reply-To: <18834013.post@talk.nabble.com> References: <7b2d12b90806252357i840a9d4rfa00609c7bd9e165@mail.gmail.com> <18834013.post@talk.nabble.com> Message-ID: <48983CDE.5157.008F.0@dnr.state.mn.us> The original question was: > Hello everyone, > > I've got a problem with PHP Mapscript. When I create a new symbol for a map, a symbol that I can find back with $map->getSymbolObjectById() > method, then i CAN'T delete it. There is no method to delete or remove a symbol added in a map (with ms_newSymbolObj().) How can I delete that > symbol ? Is there a method to do it ? Or a trick ? > > Thank you, > > Tommy Hopefully one of the PHP/MapScript devs can chime in (should include PHP/MapScript in the subject!). I know in Swig/MapScript includes a removeSymbol method for a symbolSetObj but it seems that PHP/MapScript doesn't implement those methods. So, for the moment you can't delete a symbol in PHP. Steve >>> On 8/5/2008 at 10:50 AM, in message <18834013.post at talk.nabble.com>, tommyr wrote: > Can someone help me please ? :) From k_karo at web.de Tue Aug 5 12:36:35 2008 From: k_karo at web.de (k_karo at web.de) Date: Tue, 05 Aug 2008 21:36:35 +0200 Subject: [mapserver-users] legend Message-ID: <1277072989@web.de> Hello, The wms connect to a remote wms and include a wms layer. But the cascading wms doesn?t deliver a legend image. What I am doing wrong? Did I forget something? Below is the mapfile. Thanks for any help! Regards MAP NAME Test STATUS ON SIZE 500 500 IMAGETYPE PNG IMAGECOLOR 230 230 230 SHAPEPATH "C:/ms4w/Apache/htdocs/files/data/" SYMBOLSET "symbols/symbols.sym" FONTSET "fonts/fonts.list" UNITS METERS EXTENT 4484076 5512613 4759784 5750701 RESOLUTION 96 PROJECTION 'init=epsg:31468' END ####################### LEGEND ######################## LEGEND STATUS ON KEYSIZE 36 20 KEYSPACING 10 7 LABEL TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 10 ANTIALIAS TRUE END TEMPLATE "./legend_template.html" END ################## START WEB #################### WEB TEMPLATE "./template.html" IMAGEPATH "C:/ms4w/Apache/htdocs/tmp/" IMAGEURL "/tmp/" METADATA "wms_server_version" "1.1.1" "map" "/ms4w/Apache/htdocs/files/mapdatei6.map" "ows_schemas_location" "http://schemas.opengis.net" "wms_title" "Testkarte" "wms_onlineresource" "http://141.30.230.229/cgi-bin/mapserv6.exe? map=C:/ms4w/Apache/htdocs/files/mapdatei6.map" "wms_srs" "EPSG:31467 EPSG:31468 EPSG:31469 EPSG:25833 EPSG:4326" "WMS_FEATURE_INFO_MIME_TYPE" 'text/html' wms_fees" "none" END END LAYER NAME Verfuegbarkeit TYPE RASTER STATUS ON CONNECTIONTYPE WMS CONNECTION "http://www.umwelt.sachsen.de/de/wu/umwelt/lfug/lfug- internet/infosysteme/wmsconnector/com.esri.wms.Esrimap/wms_hwsk_intensitaet?" PROJECTION 'init=epsg:31468' END METADATA "wms_name" "2" "wms_title" "Verfuegbarkeit im Internet" "wms_abstract" "Verfuegbarkeit im Internet" "wms_srs" "EPSG:31468" "wms_server_version" "1.1.1" "wms_format" "image/png" "WMS_FEATURE_INFO_MIME_TYPE" 'text/html' END END END ######### END MAP ######## ________________________________________________________________________ Schon geh?rt? Bei WEB.DE gibt' s viele kostenlose Spiele: http://games.entertainment.web.de/de/entertainment/games/free/index.html From bill.wordsworth at gmail.com Tue Aug 5 13:01:55 2008 From: bill.wordsworth at gmail.com (Bill Wordsworth) Date: Tue, 5 Aug 2008 16:01:55 -0400 Subject: [MAPSERVER-USERS] How to map attribute data (non-geom) from Oracle(not Spatial)? In-Reply-To: References: <1e07a2bd0808040928g4be5dd00v4fe72848387938b3@mail.gmail.com> <1e07a2bd0808050725i79bc98edsce08e4511cfd0e75@mail.gmail.com> Message-ID: <1e07a2bd0808051301p389a7e80h3149874f0218cb58@mail.gmail.com> Tim, I didn't know you could do "geom from..." without Oracle Spatial, so this is great! This is my current compilation: MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF 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=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG I don't see any Oracle support. Could you shed some light on how to enable that? And how do you insert geom into Oracle Locator without Oracle Spatial- what tools? So as I understand, Oracle Spatial allows geoprocessing type queries (buffer, nearest, shortest) while Oracle Locator doesn't allow any thing that but does display geom (point, line, polygon, (raster)). Correct?? I just want to take a shapefile, insert it and then display its filtered set. Cheers, Bill On Tue, Aug 5, 2008 at 10:38 AM, Nolte, Tim wrote: > Bill, > > Here is a layer definition I am using for Oracle Spatial(Locator) data. > > LAYER > GROUP "Cell Sites" > NAME "On-Air" > TYPE POINT > STATUS ON > CONNECTIONTYPE oraclespatial > CONNECTION "username/password at sid" > PROCESSING "CLOSE_CONNECTION=DEFER" > DATA "geom FROM (SELECT st.bts_nbr, sgt.geom FROM site_tab st, > site_geom_tab sgt WHERE st.site_id = sgt.site_id AND st.site_status_id > IN (4,7)) USING SRID 8307" > LABELITEM "bts_nbr" > METADATA > "static_legend" "1" > END > DUMP true > CLASS > NAME "On-Air Large Scale" > MINSCALE 0 > MAXSCALE 1200000 > STYLE > SYMBOL "circle" > COLOR 22 129 17 > OUTLINECOLOR 255 255 255 > SIZE 12 > END > LABEL > TYPE TRUETYPE > FONT "sans" > SIZE 7 > POSITION CR > OFFSET 0 2 > ANGLE AUTO > BUFFER 3 > MINDISTANCE 30 > MINFEATURESIZE 10 > COLOR 0 0 0 > OUTLINECOLOR 245 245 231 > SHADOWSIZE 3 3 > BACKGROUNDSHADOWSIZE 1 -1 > END > END > CLASS > NAME "On-Air Small Scale" > MINSCALE 1200000 > MAXSCALE 6000000 > STYLE > SYMBOL "circle" > COLOR 22 129 17 > OUTLINECOLOR 255 255 255 > SIZE 8 > END > END > END > > The key here is that you need to have MapServer compiled with Oracle > Spatial support. And you can see from my data line that that I do > standard Oracle SQL statements for building my spatial results. I'm not > using any shapefiles in this instance. The spatial data is actually > stored right in the database table. There are tools to import shapefiles > into Oracle. If your data is points you can build insert statements to > populated your geometry columns. You're probably going to want to do > some reading up on Oracle spatial. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > 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: Bill Wordsworth [mailto:bill.wordsworth at gmail.com] >> Sent: Tuesday, August 05, 2008 10:25 AM >> To: Nolte, Tim; mapserver-users at lists.osgeo.org >> Subject: Re: [MAPSERVER-USERS] How to map attribute data >> (non-geom) from Oracle(not Spatial)? >> >> This is exciting news! I am using Oracle 10g and get Oracle Locator >> free but how do I map data from Oracle Locator? Are you doing a >> JOIN+FILTER? Can you share a LAYER snippet from your MAP file? >> Cheers, Bill > From jkapalczynski at ci.maple-grove.mn.us Tue Aug 5 12:47:44 2008 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 5 Aug 2008 14:47:44 -0500 Subject: [mapserver-users] Labeling Message-ID: Don't know if I have to correct location. I have been successful labeling street centerlines using the ANGLE FOLLOW in the .map File This is being performed on a Shapefile Line feature I also have a Polygon Feature that has a field that I am trying to label....once again I need the text to follow the polygon As you can see from the image the road names a following properly, but the labels for the polygons are not following... I tried the ANGLE FOLLOW on the Polygon and It will not draw.. I tried ANGLE [Angle] with Angle being a field name that holds Degree values (ex 270) does the field have to be numeric? Is there some other syntax that I have to put in the map file that will force the text to follow the Polygon? THANKS STREET MAP FILE LAYER # Maple Grove Streets Name NAME Streets_Labels DATA './GEOCODED_CENTERLINES2.shp' STATUS DEFAULT TYPE annotation MAXSCALE 6000 MINSCALE 100 LABELITEM 'STREET_NAM' LABELCACHE ON CLASS COLOR -1 -1 -1 LABEL TYPE TRUETYPE FONT vera_sans ANGLE FOLLOW POSITION AUTO MAXSIZE 10 SIZE 8 MINSIZE 8 ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 192 BUFFER 2 END END END # Maple Grove Streets Name PARCELS MAP FILE THAT DOES NOT WORK LAYER # Maple Grove Parcels NAME Parcel_Labels DATA './parcels.shp' STATUS DEFAULT TYPE annotation MAXSCALE 2500 MINSCALE 100 LABELITEM 'TextString' ANGLE [Angle] POSITION AUTO PARTIALS FALSE LABELCACHE ON CLASS COLOR -1 -1 -1 LABEL TYPE TRUETYPE FONT vera_sans MAXSIZE 8 SIZE 8 MINSIZE 2 #ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 128 BUFFER 2 END END END # Maple Grove Parcels -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 46637 bytes Desc: image001.jpg URL: From jkapalczynski at ci.maple-grove.mn.us Tue Aug 5 13:34:05 2008 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Tue, 5 Aug 2008 15:34:05 -0500 Subject: [mapserver-users] RE: Labeling In-Reply-To: References: Message-ID: What I am trying to do is use annotation from a Geodatabase. From what I hear GeoMoose / Map Server will not read it. I converted the Annotation Feature Class to a Point. Then created a Polygon from the Annotation Feature Classes, pointing to the Point Feature class for the Attributes (label field, degree field) I then read the Polygons into GeoMoose and label on the field and Angle the text by "Angle' Field. The ANGLE call to Map Server dosent seem to work in this case Any thoughts? From: Jay Kapalczynski Sent: Tuesday, August 05, 2008 2:48 PM To: 'mapserver-users at lists.osgeo.org' Subject: Labeling Don't know if I have to correct location. I have been successful labeling street centerlines using the ANGLE FOLLOW in the .map File This is being performed on a Shapefile Line feature I also have a Polygon Feature that has a field that I am trying to label....once again I need the text to follow the polygon As you can see from the image the road names a following properly, but the labels for the polygons are not following... I tried the ANGLE FOLLOW on the Polygon and It will not draw.. I tried ANGLE [Angle] with Angle being a field name that holds Degree values (ex 270) does the field have to be numeric? Is there some other syntax that I have to put in the map file that will force the text to follow the Polygon? THANKS STREET MAP FILE LAYER # Maple Grove Streets Name NAME Streets_Labels DATA './GEOCODED_CENTERLINES2.shp' STATUS DEFAULT TYPE annotation MAXSCALE 6000 MINSCALE 100 LABELITEM 'STREET_NAM' LABELCACHE ON CLASS COLOR -1 -1 -1 LABEL TYPE TRUETYPE FONT vera_sans ANGLE FOLLOW POSITION AUTO MAXSIZE 10 SIZE 8 MINSIZE 8 ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 192 BUFFER 2 END END END # Maple Grove Streets Name PARCELS MAP FILE THAT DOES NOT WORK LAYER # Maple Grove Parcels NAME Parcel_Labels DATA './parcels.shp' STATUS DEFAULT TYPE annotation MAXSCALE 2500 MINSCALE 100 LABELITEM 'TextString' ANGLE [Angle] POSITION AUTO PARTIALS FALSE LABELCACHE ON CLASS COLOR -1 -1 -1 LABEL TYPE TRUETYPE FONT vera_sans MAXSIZE 8 SIZE 8 MINSIZE 2 #ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 128 BUFFER 2 END END END # Maple Grove Parcels -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 46637 bytes Desc: image001.jpg URL: From kreshna_iceheart at yahoo.com Wed Aug 6 00:10:02 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Wed, 6 Aug 2008 00:10:02 -0700 (PDT) Subject: [mapserver-users] Still cannot display postGIS layers using ms4w (MapServer 5.0.2 on WinXP). Message-ID: <433537.87355.qm@web56102.mail.re3.yahoo.com> Help. Somebody please help. Somebody. Anybody. :-( I am using postgreSQL 8.2.5 for Windows with postGIS. The database was installed using Windows .msi installation package. I am also using ms4w 2.2.7 that comes with MapServer 5.0.2. All installed on Windows XP Service Pack 2. The MapServer does support postGIS. When I executed mapserv -v, I got the following: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE In the postgreSQL database, I have created a database named test_mapserv. I also created a schema named rencana, and a table named kawasanbencana. The name of the geometry column is the_geom. I have created a spatial index (kawasanbencanaspix) on the geometry column. I also use lowercase to write the 'from' statement. The problem is: MapServer always gives the "..Query error. Error executing POSTGIS DECLARE.." error message, no matter what I do. And I have tried everything ad nauseam. I have tried specifying the DATA line without USING UNIQUE ... USING SRID line. I have tried specifying the DATA line with USING UNIQUE ...USING SRID. I have tried using double apostrophe (") and single apostrophe ('). It doesn't matter. Everything I have tried has failed, and I still get the error message no matter what I did. My mapfiles are attached in this mail. Each reflect my futile attempt, and all of them generated the error message. My first attempt: ================= This is my first attempt. I have both the mapfile and the error message attached on this mail. CONNECTIONTYPE postgis CONNECTION 'host=localhost user=rtrw password=123456 port=5432 dbname=test_mapserver' DATA 'the_geom from rencana.kawasanbencana' And I got the following error message: msDrawMap(): Image handling error. Failed to draw layer named 'kawasanbencana'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from rencana.kawasanbencana WHERE () and (the_geom && setSRID( 'BOX3D(528635.525378392 9074209,609092.162121608 9134520)'::BOX3D,find_srid('','rencana.kawasanbencana','the_geom') ))' Postgresql reports the error as 'ERROR: syntax error at or near ")" LINE 1: ...DR'),gid::text from rencana.kawasanbencana WHERE () and (the... ^ ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. My second attempt: ================== I tried adding USING UNIQUE to my DATA line. There is something odd with my spatial table though: whenever I view the data contents with pgAdmin, I can always see the oid column. However, I cannot find the oid column when viewing the table's column definition. I attached the screenshots accordingly. The question is: does my table have oid column or not? And does it have something to do with the error? Nonethless, here's my lines: CONNECTIONTYPE postgis CONNECTION 'host=localhost user=rtrw password=123456 port=5432 dbname=test_mapserver' DATA 'the_geom from rencana.kawasanbencana using unique oid' And I still get the same error message as above. The difference is that the error message now says 'oid' instead of 'gid'. For instance, "(the_geom)),'NDR'),gid" becomes "(the_geom)),'NDR'),oid", but everything else remains the same. My third attempt: ================= Like I said in my second attempt, I'm not sure whether my table has oid column or not. Thus, in my third attempt I used the gid column instead, especially since the gid column is my primary key column anyway. This is my lines: CONNECTIONTYPE postgis CONNECTION 'host=localhost user=rtrw password=123456 port=5432 dbname=test_mapserver' DATA 'the_geom from rencana.kawasanbencana using unique gid' And I got exactly the same error message as my first attempt. My fourth attempt: ================== In my fourth attempt, I used the gid column for my unique id, and I am using SRID=1. Here is the lines: CONNECTIONTYPE postgis CONNECTION 'host=localhost user=rtrw password=123456 port=5432 dbname=test_mapserver' DATA 'the_geom from rencana.kawasanbencana using unique gid using SRID=1' Well I still got the error message. This time, the error message is slightly different. Instead of getting "::BOX3D,find_srid", I got "::BOX3D,1". Here is the complete error message: msDrawMap(): Image handling error. Failed to draw layer named 'kawasanbencana'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from rencana.kawasanbencana WHERE () and (the_geom && setSRID( 'BOX3D(528635.525378392 9074209,609092.162121608 9134520)'::BOX3D,1) )' Postgresql reports the error as 'ERROR: syntax error at or near ")" LINE 1: ...DR'),gid::text from rencana.kawasanbencana WHERE () and (the... ^ ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. My fifth attempt: ================= Now I had been pretty much desperate, I just wrote using SRID=#, closed my eyes, and hoped for the best. Here's the lines: CONNECTIONTYPE postgis CONNECTION 'host=localhost user=rtrw password=123456 port=5432 dbname=test_mapserver' DATA 'the_geom from rencana.kawasanbencana using unique gid using SRID=#' I still get an error message. This time, the error message is different altogether. Here's the message: msDrawMap(): Image handling error. Failed to draw layer named 'kawasanbencana'. msPOSTGISLayerParseData(): Query error. Error parsing POSTGIS data variable: You specified 'using SRID=#' but didnt have any numbers! More Help: Error with POSTGIS data variable. You specified 'the_geom from rencana.kawasanbencana using unique gid using SRID=#'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. I'm pretty much desperate. Could somebody please tell what's wrong on my mapfile? Or maybe ms4w just cannot display postGIS data? Do I need to install postGIS and MapServer on Linux, in order to get them work together? Please help. :-( Thanks, -Kresh -------------- next part -------------- A non-text attachment was scrubbed... Name: test_mapserv_01.map Type: application/octet-stream Size: 1005 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_mapserv_01_error.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_mapserv_02.map Type: application/octet-stream Size: 1022 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_mapserv_02_error.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: oid_does_not_exist.jpg Type: image/jpeg Size: 36853 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: but_oid_exists_when_viewing_data.jpg Type: image/jpeg Size: 73514 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_mapserv_03.map Type: application/octet-stream Size: 1022 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_mapserv_03_error.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_mapserv_04.map Type: application/octet-stream Size: 1035 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_mapserv_04_error.txt URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_mapserv_05.map Type: application/octet-stream Size: 1035 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: test_mapserv_05_error.txt URL: From vtammineni at roulacglobal.com Wed Aug 6 02:17:55 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 6 Aug 2008 14:47:55 +0530 Subject: [mapserver-users] Still cannot display postGIS layers using ms4w (MapServer 5.0.2 on WinXP). In-Reply-To: <433537.87355.qm@web56102.mail.re3.yahoo.com> References: <433537.87355.qm@web56102.mail.re3.yahoo.com> Message-ID: <001201c8f7a5$50e55350$f2aff9f0$@com> Hi, Is Your localhost is working fine? If it is... do like below .only table name. For example " the_geom from India " .India is my table name. I hope you will get some idea. LAYER NAME "kawasanbencana" TYPE POLYGON CONNECTIONTYPE postgis CONNECTION 'host=localhost user=rtrw password=123456 port=5432 dbname=test_mapserver' DATA 'the_geom from kawasanbencana' FILTER "" STATUS DEFAULT TRANSPARENCY 100 CLASS NAME "kawasanbencana" STYLE SYMBOL 0 SIZE 10 OUTLINECOLOR 0 0 0 COLOR 229 210 191 END END END END Thanks and Regards Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of kreshna_iceheart at yahoo.com Sent: Wednesday, August 06, 2008 12:40 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Still cannot display postGIS layers using ms4w (MapServer 5.0.2 on WinXP). Help. Somebody please help. Somebody. Anybody. :-( I am using postgreSQL 8.2.5 for Windows with postGIS. The database was installed using Windows .msi installation package. I am also using ms4w 2.2.7 that comes with MapServer 5.0.2. All installed on Windows XP Service Pack 2. The MapServer does support postGIS. When I executed mapserv -v, I got the following: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE In the postgreSQL database, I have created a database named test_mapserv. I also created a schema named rencana, and a table named kawasanbencana. The name of the geometry column is the_geom. I have created a spatial index (kawasanbencanaspix) on the geometry column. I also use lowercase to write the 'from' statement. The problem is: MapServer always gives the "..Query error. Error executing POSTGIS DECLARE.." error message, no matter what I do. And I have tried everything ad nauseam. I have tried specifying the DATA line without USING UNIQUE ... USING SRID line. I have tried specifying the DATA line with USING UNIQUE ...USING SRID. I have tried using double apostrophe (") and single apostrophe ('). It doesn't matter. Everything I have tried has failed, and I still get the error message no matter what I did. My mapfiles are attached in this mail. Each reflect my futile attempt, and all of them generated the error message. My first attempt: ================= This is my first attempt. I have both the mapfile and the error message attached on this mail. CONNECTIONTYPE postgis CONNECTION 'host=localhost user=rtrw password=123456 port=5432 dbname=test_mapserver' DATA 'the_geom from rencana.kawasanbencana' And I got the following error message: msDrawMap(): Image handling error. Failed to draw layer named 'kawasanbencana'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from rencana.kawasanbencana WHERE () and (the_geom && setSRID( 'BOX3D(528635.525378392 9074209,609092.162121608 9134520)'::BOX3D,find_srid('','rencana.kawasanbencana','the_geom') ))' Postgresql reports the error as 'ERROR: syntax error at or near ")" LINE 1: ...DR'),gid::text from rencana.kawasanbencana WHERE () and (the... ^ ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. My second attempt: ================== I tried adding USING UNIQUE to my DATA line. There is something odd with my spatial table though: whenever I view the data contents with pgAdmin, I can always see the oid column. However, I cannot find the oid column when viewing the table's column definition. I attached the screenshots accordingly. The question is: does my table have oid column or not? And does it have something to do with the error? Nonethless, here's my lines: CONNECTIONTYPE postgis CONNECTION 'host=localhost user=rtrw password=123456 port=5432 dbname=test_mapserver' DATA 'the_geom from rencana.kawasanbencana using unique oid' And I still get the same error message as above. The difference is that the error message now says 'oid' instead of 'gid'. For instance, "(the_geom)),'NDR'),gid" becomes "(the_geom)),'NDR'),oid", but everything else remains the same. My third attempt: ================= Like I said in my second attempt, I'm not sure whether my table has oid column or not. Thus, in my third attempt I used the gid column instead, especially since the gid column is my primary key column anyway. This is my lines: CONNECTIONTYPE postgis CONNECTION 'host=localhost user=rtrw password=123456 port=5432 dbname=test_mapserver' DATA 'the_geom from rencana.kawasanbencana using unique gid' And I got exactly the same error message as my first attempt. My fourth attempt: ================== In my fourth attempt, I used the gid column for my unique id, and I am using SRID=1. Here is the lines: CONNECTIONTYPE postgis CONNECTION 'host=localhost user=rtrw password=123456 port=5432 dbname=test_mapserver' DATA 'the_geom from rencana.kawasanbencana using unique gid using SRID=1' Well I still got the error message. This time, the error message is slightly different. Instead of getting "::BOX3D,find_srid", I got "::BOX3D,1". Here is the complete error message: msDrawMap(): Image handling error. Failed to draw layer named 'kawasanbencana'. prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from rencana.kawasanbencana WHERE () and (the_geom && setSRID( 'BOX3D(528635.525378392 9074209,609092.162121608 9134520)'::BOX3D,1) )' Postgresql reports the error as 'ERROR: syntax error at or near ")" LINE 1: ...DR'),gid::text from rencana.kawasanbencana WHERE () and (the... ^ ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. My fifth attempt: ================= Now I had been pretty much desperate, I just wrote using SRID=#, closed my eyes, and hoped for the best. Here's the lines: CONNECTIONTYPE postgis CONNECTION 'host=localhost user=rtrw password=123456 port=5432 dbname=test_mapserver' DATA 'the_geom from rencana.kawasanbencana using unique gid using SRID=#' I still get an error message. This time, the error message is different altogether. Here's the message: msDrawMap(): Image handling error. Failed to draw layer named 'kawasanbencana'. msPOSTGISLayerParseData(): Query error. Error parsing POSTGIS data variable: You specified 'using SRID=#' but didnt have any numbers! More Help: Error with POSTGIS data variable. You specified 'the_geom from rencana.kawasanbencana using unique gid using SRID=#'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. I'm pretty much desperate. Could somebody please tell what's wrong on my mapfile? Or maybe ms4w just cannot display postGIS data? Do I need to install postGIS and MapServer on Linux, in order to get them work together? Please help. :-( Thanks, -Kresh From kreshna_iceheart at yahoo.com Wed Aug 6 02:20:12 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Wed, 6 Aug 2008 02:20:12 -0700 (PDT) Subject: [mapserver-users] Still cannot display postGIS layers using ms4w(MapServer 5.0.2 on WinXP). In-Reply-To: <1E81D4CBCE2144B9B301EF3C32B7331E@kusum> Message-ID: <554151.21637.qm@web56101.mail.re3.yahoo.com> I am an idiot. Well I don't have a database named postgis on the first place (only template_postgis), but I tried to apply your first DATA line to my own database (test_mapserv). Then I realized: your file don't have FILTER "" clause. At the same time, someone from postGIS mailing list told me that an empty FILTER clause will just confuse postGIS. So I remove it from my mapfile and suddenly everything works! Thanks, -Kresh --- On Wed, 8/6/08, Kusum wrote: > From: Kusum > Subject: Re: [mapserver-users] Still cannot display postGIS layers using ms4w(MapServer 5.0.2 on WinXP). > To: kreshna_iceheart at yahoo.com > Date: Wednesday, August 6, 2008, 3:18 AM > Try this format :- > LAYER > NAME "route" > STATUS ON > TYPE line > CONNECTIONTYPE postgis > CONNECTION "user=postgres dbname=postgis > host=localhost port=5432 > password=postgres" > DATA "the_geom from ind_road" > #DATA "the_geom from (SELECT the_geom, gid from > shortest_path_as_geometry('hr_road', 1, 50)) as > route using unique gid using > srid=-1" > #DATA "the_geom from (SELECT the_geom from > routing_results) as thing using > unique gid using srid=-1" > #DATA "the_geom from (SELECT gid, the_geom from > routing_results) as foo > using unique gid using srid=-1" > > TEMPLATE "t" > PROJECTION > "proj=latlong" > "ellps=WGS84" > "datum=WGS84" > END > > -------------------------------------------------- > From: > Sent: Wednesday, August 06, 2008 12:40 PM > To: > Subject: [mapserver-users] Still cannot display postGIS > layers using > ms4w(MapServer 5.0.2 on WinXP). > > > Help. Somebody please help. Somebody. Anybody. :-( > > > > I am using postgreSQL 8.2.5 for Windows with postGIS. > The database was > > installed using Windows .msi installation package. I > am also using ms4w > > 2.2.7 that comes with MapServer 5.0.2. All installed > on Windows XP Service > > Pack 2. > > > > The MapServer does support postGIS. When I executed > mapserv -v, I got the > > following: > > MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP > > OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ > SUPPORTS=AGG > > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT > > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER > > SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS > SUPPORTS=GEOS > > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > > > In the postgreSQL database, I have created a database > named test_mapserv. > > I also created a schema named rencana, and a table > named kawasanbencana. > > The name of the geometry column is the_geom. > > I have created a spatial index (kawasanbencanaspix) on > the geometry > > column. I also use lowercase to write the > 'from' statement. > > > > The problem is: MapServer always gives the > "..Query error. Error executing > > POSTGIS DECLARE.." error message, no matter what > I do. And I have tried > > everything ad nauseam. > > > > I have tried specifying the DATA line without USING > UNIQUE ... USING SRID > > line. I have tried specifying the DATA line with USING > UNIQUE ...USING > > SRID. I have tried using double apostrophe (") > and single apostrophe ('). > > It doesn't matter. Everything I have tried has > failed, and I still get the > > error message no matter what I did. > > > > My mapfiles are attached in this mail. Each reflect my > futile attempt, and > > all of them generated the error message. > > > > > > My first attempt: > > ================= > > > > This is my first attempt. I have both the mapfile and > the error message > > attached on this mail. > > CONNECTIONTYPE postgis > > CONNECTION 'host=localhost user=rtrw > password=123456 port=5432 > > dbname=test_mapserver' > > DATA 'the_geom from rencana.kawasanbencana' > > > > And I got the following error message: > > msDrawMap(): Image handling error. Failed to draw > layer named > > 'kawasanbencana'. prepare_database(): Query > error. Error executing POSTGIS > > DECLARE (the actual query) statement: 'DECLARE > mycursor BINARY CURSOR FOR > > SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > from > > rencana.kawasanbencana WHERE () and (the_geom > && setSRID( > > 'BOX3D(528635.525378392 9074209,609092.162121608 > > > 9134520)'::BOX3D,find_srid('','rencana.kawasanbencana','the_geom') > ))' > > Postgresql reports the error as 'ERROR: syntax > error at or near ")" LINE > > 1: ...DR'),gid::text from rencana.kawasanbencana > WHERE () and (the... ^ ' > > More Help: Error with POSTGIS data variable. You > specified 'check your > > .map file'. Standard ways of specifiying are : (1) > 'geometry_column from > > geometry_table' (2) 'geometry_column from (sub > query) as foo using unique > > column name using SRID=srid#' Make sure you put in > the 'using unique > > column name' and 'using SRID=#' clauses > in. For more help, please see > > http://postgis.refractions.net/documentation/ > Mappostgis.c - version of > > Jan 23/2004. > > > > > > My second attempt: > > ================== > > > > I tried adding USING UNIQUE to my DATA line. There is > something odd with > > my spatial table though: whenever I view the data > contents with pgAdmin, I > > can always see the oid column. However, I cannot find > the oid column when > > viewing the table's column definition. I attached > the screenshots > > accordingly. The question is: does my table have oid > column or not? And > > does it have something to do with the error? > > > > Nonethless, here's my lines: > > CONNECTIONTYPE postgis > > CONNECTION 'host=localhost user=rtrw > password=123456 port=5432 > > dbname=test_mapserver' > > DATA 'the_geom from rencana.kawasanbencana > using unique oid' > > > > > > And I still get the same error message as above. The > difference is that > > the error message now says 'oid' instead of > 'gid'. For instance, > > "(the_geom)),'NDR'),gid" becomes > "(the_geom)),'NDR'),oid", but everything > > else remains the same. > > > > > > My third attempt: > > ================= > > > > Like I said in my second attempt, I'm not sure > whether my table has oid > > column or not. Thus, in my third attempt I used the > gid column instead, > > especially since the gid column is my primary key > column anyway. This is > > my lines: > > CONNECTIONTYPE postgis > > CONNECTION 'host=localhost user=rtrw > password=123456 port=5432 > > dbname=test_mapserver' > > DATA 'the_geom from rencana.kawasanbencana > using unique gid' > > > > And I got exactly the same error message as my first > attempt. > > > > > > My fourth attempt: > > ================== > > > > In my fourth attempt, I used the gid column for my > unique id, and I am > > using SRID=1. Here is the lines: > > CONNECTIONTYPE postgis > > CONNECTION 'host=localhost user=rtrw > password=123456 port=5432 > > dbname=test_mapserver' > > DATA 'the_geom from rencana.kawasanbencana > using unique gid using > > SRID=1' > > > > Well I still got the error message. This time, the > error message is > > slightly different. Instead of getting > "::BOX3D,find_srid", I got > > "::BOX3D,1". > > > > Here is the complete error message: > > msDrawMap(): Image handling error. Failed to draw > layer named > > 'kawasanbencana'. prepare_database(): Query > error. Error executing POSTGIS > > DECLARE (the actual query) statement: 'DECLARE > mycursor BINARY CURSOR FOR > > SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > from > > rencana.kawasanbencana WHERE () and (the_geom > && setSRID( > > 'BOX3D(528635.525378392 9074209,609092.162121608 > 9134520)'::BOX3D,1) )' > > Postgresql reports the error as 'ERROR: syntax > error at or near ")" LINE > > 1: ...DR'),gid::text from rencana.kawasanbencana > WHERE () and (the... ^ ' > > More Help: Error with POSTGIS data variable. You > specified 'check your > > .map file'. Standard ways of specifiying are : (1) > 'geometry_column from > > geometry_table' (2) 'geometry_column from (sub > query) as foo using unique > > column name using SRID=srid#' Make sure you put in > the 'using unique > > column name' and 'using SRID=#' clauses > in. For more help, please see > > http://postgis.refractions.net/documentation/ > > Mappostgis.c - version of Jan 23/2004. > > > > > > My fifth attempt: > > ================= > > > > Now I had been pretty much desperate, I just wrote > using SRID=#, closed my > > eyes, and hoped for the best. Here's the lines: > > CONNECTIONTYPE postgis > > CONNECTION 'host=localhost user=rtrw > password=123456 port=5432 > > dbname=test_mapserver' > > DATA 'the_geom from rencana.kawasanbencana > using unique gid using > > SRID=#' > > > > I still get an error message. This time, the error > message is different > > altogether. Here's the message: > > msDrawMap(): Image handling error. Failed to draw > layer named > > 'kawasanbencana'. msPOSTGISLayerParseData(): > Query error. Error parsing > > POSTGIS data variable: You specified 'using > SRID=#' but didnt have any > > numbers! More Help: Error with POSTGIS data variable. > You specified > > 'the_geom from rencana.kawasanbencana using unique > gid using SRID=#'. > > Standard ways of specifiying are : (1) > 'geometry_column from > > geometry_table' (2) 'geometry_column from (sub > query) as foo using unique > > column name using SRID=srid#' Make sure you put in > the 'using unique > > column name' and 'using SRID=#' clauses > in. For more help, please see > > http://postgis.refractions.net/documentation/ > Mappostgis.c - version of > > Jan 23/2004. > > > > > > I'm pretty much desperate. Could somebody please > tell what's wrong on my > > mapfile? Or maybe ms4w just cannot display postGIS > data? Do I need to > > install postGIS and MapServer on Linux, in order to > get them work > > together? Please help. :-( > > > > > > Thanks, > > -Kresh > > > > > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From fcampos at efacec.pt Wed Aug 6 02:43:29 2008 From: fcampos at efacec.pt (FCampos) Date: Wed, 6 Aug 2008 02:43:29 -0700 (PDT) Subject: [MAPSERVER-USERS] mapserver does not show oracle layer Message-ID: <18847632.post@talk.nabble.com> Hi, i?m having troubles shwoing a oracle layer in mapserver. in open layers i?ve: map = new OpenLayers.Map( 'map' , { scales: [ 4000000,3000000,2000000,1000000, 500000,200000, 100000, 50000,20000,10000 ], maxExtent: new OpenLayers.Bounds(-18,34,4,45), numZoomLevels: 10 } ); var basemap = new OpenLayers.Layer.WMS.Untiled( "MS 4.10", "http://172.18.210.67:8080/cgi-bin/mapserv.exe?", { map: '/ms4w/apps/wmssrvrefer/config.map', layers: 'border', format: 'png', 'transparent': 'on'}, { projection:"EPSG:4326" } ); map.addLayers([basemap]); map.setCenter(new OpenLayers.LonLat(-8, 39.5), 0); In mapfile: EXTENT -9 36 -6 42 projection "init=epsg:4326" end web IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" metadata wms_title "test" wms_srs "EPSG:4326" end end ## this show the layer ! layer name major_roads_small_4 group border type line projection "init=epsg:4326" end status on data railways.shp class style color 0 0 0 width 1 antialias true end end end ## this layer does not show !! ################################# layer name road_a group border type line projection "init=epsg:4326" end connectiontype oraclespatial connection "uui/pwdmydb" data "geom_73 from caop_regiao using srid 4326" class style color 185 175 155 width 3 antialias true end end end I test with shp2img and it shows the shapelayer, but not the oracle layer. http://www.nabble.com/file/p18847632/test.png What?s wrong ? -- View this message in context: http://www.nabble.com/mapserver-does-not-show-oracle-layer-tp18847632p18847632.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bartvde at osgis.nl Wed Aug 6 02:51:51 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Wed, 6 Aug 2008 11:51:51 +0200 (CEST) Subject: [MAPSERVER-USERS] mapserver does not show oracle layer In-Reply-To: <18847632.post@talk.nabble.com> References: <18847632.post@talk.nabble.com> Message-ID: <10940.145.50.39.11.1218016311.squirrel@webmail.hostingdiscounter.nl> What do you get if you use shp2img with debug info? shp2img -all_debug 10 Best regards, Bart > > Hi, > i??m having troubles shwoing a oracle layer in mapserver. > > in open layers i??ve: > map = new OpenLayers.Map( 'map' , > { > scales: [ 4000000,3000000,2000000,1000000, 500000,200000, > 100000, 50000,20000,10000 ], > maxExtent: new OpenLayers.Bounds(-18,34,4,45), > numZoomLevels: 10 > } > ); > > var basemap = new OpenLayers.Layer.WMS.Untiled( "MS 4.10", > "http://172.18.210.67:8080/cgi-bin/mapserv.exe?", > { > map: '/ms4w/apps/wmssrvrefer/config.map', > layers: 'border', format: 'png', 'transparent': 'on'}, > { projection:"EPSG:4326" } ); > map.addLayers([basemap]); > map.setCenter(new OpenLayers.LonLat(-8, 39.5), 0); > > > In mapfile: > > EXTENT -9 36 -6 42 > > projection > "init=epsg:4326" > end > > > web > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > metadata > wms_title "test" > wms_srs "EPSG:4326" > end > end > > ## this show the layer ! > layer > name major_roads_small_4 > group border > type line > projection > "init=epsg:4326" > end > status on > data railways.shp > class > style > color 0 0 0 > width 1 > antialias true > end > end > end > > ## > > > this layer does not show !! > > ################################# > layer > name road_a > group border > type line > > projection > "init=epsg:4326" > end > > connectiontype oraclespatial > connection "uui/pwdmydb" > data "geom_73 from caop_regiao using srid 4326" > > class > style > color 185 175 155 > width 3 > antialias true > end > end > > end > > > I test with shp2img and it shows the shapelayer, but not the oracle layer. > http://www.nabble.com/file/p18847632/test.png > What??s wrong ? > -- > View this message in context: > http://www.nabble.com/mapserver-does-not-show-oracle-layer-tp18847632p18847632.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From fcampos at efacec.pt Wed Aug 6 02:58:18 2008 From: fcampos at efacec.pt (FCampos) Date: Wed, 6 Aug 2008 02:58:18 -0700 (PDT) Subject: [MAPSERVER-USERS] mapserver does not show oracle layer In-Reply-To: <10940.145.50.39.11.1218016311.squirrel@webmail.hostingdiscounter.nl> References: <18847632.post@talk.nabble.com> <10940.145.50.39.11.1218016311.squirrel@webmail.hostingdiscounter.nl> Message-ID: <18847865.post@talk.nabble.com> That?s strange because does not appear nothing about oracle layer. C:\ms4w\apps\wmssrvrefer>shp2img -m config.map -o test.png -all_debug 10 msLoadMap(): 0.031s msDrawMap(): Layer 0 (major_roads_small_4), 0.000s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.015s msSaveImage() total time: 0.047s msFreeMap(): freeing map at 0148B288. shp2img total time: 0.109s but the connection is good because i see in the log apache, when i make a wms request. it does not give any oracle error [Wed Aug 06 10:57:18 2008] [error] [client 172.18.202.178] msDrawMap(): Layer 1 (road_a), 0.938s\r, referer: http://127.0.0.1/justtests/maps/openlayes/ -- View this message in context: http://www.nabble.com/mapserver-does-not-show-oracle-layer-tp18847632p18847865.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pkrishnamohan at gmail.com Wed Aug 6 03:47:06 2008 From: pkrishnamohan at gmail.com (krishna mohan) Date: Wed, 6 Aug 2008 03:47:06 -0700 (PDT) Subject: [MAPSERVER-USERS] Displaying the shape files using the map server Message-ID: <18848672.post@talk.nabble.com> Hi, I am very new to map server. I have installed map server and want to display the shape files using map server on internet explorer. I also have a post gis database from which I would like to display. Can some one please help me how to do that. Krishna Mohan -- View this message in context: http://www.nabble.com/Displaying-the-shape-files-using-the-map-server-tp18848672p18848672.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vtammineni at roulacglobal.com Wed Aug 6 03:54:57 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 6 Aug 2008 16:24:57 +0530 Subject: [MAPSERVER-USERS] Displaying the shape files using the map server In-Reply-To: <18848672.post@talk.nabble.com> References: <18848672.post@talk.nabble.com> Message-ID: <001c01c8f7b2$df67f2b0$9e37d810$@com> Hi, Which programming language you are using .let me know. Thanks and regards Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of krishna mohan Sent: Wednesday, August 06, 2008 4:17 PM To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] Displaying the shape files using the map server Hi, I am very new to map server. I have installed map server and want to display the shape files using map server on internet explorer. I also have a post gis database from which I would like to display. Can some one please help me how to do that. Krishna Mohan -- View this message in context: http://www.nabble.com/Displaying-the-shape-files-using-the-map-server-tp1884 8672p18848672.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From fcampos at efacec.pt Wed Aug 6 03:53:10 2008 From: fcampos at efacec.pt (FCampos) Date: Wed, 6 Aug 2008 03:53:10 -0700 (PDT) Subject: [MAPSERVER-USERS] Displaying the shape files using the map server In-Reply-To: <18848672.post@talk.nabble.com> References: <18848672.post@talk.nabble.com> Message-ID: <18848747.post@talk.nabble.com> check http://mapserver.gis.umn.edu/docs krishna mohan wrote: > > Hi, > > I am very new to map server. > I have installed map server and want to display the shape files using map > server on internet explorer. I also have a post gis database from which I > would like to display. Can some one please help me how to do that. > > Krishna Mohan > -- View this message in context: http://www.nabble.com/Displaying-the-shape-files-using-the-map-server-tp18848672p18848747.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pkrishnamohan at gmail.com Wed Aug 6 03:54:18 2008 From: pkrishnamohan at gmail.com (Krishna Mohan) Date: Wed, 6 Aug 2008 16:24:18 +0530 Subject: [MAPSERVER-USERS] Displaying the shape files using the map server In-Reply-To: <001c01c8f7b2$df67f2b0$9e37d810$@com> References: <18848672.post@talk.nabble.com> <001c01c8f7b2$df67f2b0$9e37d810$@com> Message-ID: Hi, Thanks for the quick reply. I am not using any programming language. I just want to display the shape file on a web browser using the mapserver. Is it possible, Krishna Mohan -----Original Message----- From: Venkat Rao Tammineni [mailto:vtammineni at roulacglobal.com] Sent: Wednesday, August 06, 2008 4:25 PM To: 'krishna mohan'; mapserver-users at lists.osgeo.org Subject: RE: [MAPSERVER-USERS] Displaying the shape files using the map server Hi, Which programming language you are using .let me know. Thanks and regards Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of krishna mohan Sent: Wednesday, August 06, 2008 4:17 PM To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] Displaying the shape files using the map server Hi, I am very new to map server. I have installed map server and want to display the shape files using map server on internet explorer. I also have a post gis database from which I would like to display. Can some one please help me how to do that. Krishna Mohan -- View this message in context: http://www.nabble.com/Displaying-the-shape-files-using-the-map-server-tp1884 8672p18848672.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From pkrishnamohan at gmail.com Wed Aug 6 03:56:22 2008 From: pkrishnamohan at gmail.com (krishna mohan) Date: Wed, 6 Aug 2008 03:56:22 -0700 (PDT) Subject: [MAPSERVER-USERS] Displaying the shape files using the map server In-Reply-To: <18848747.post@talk.nabble.com> References: <18848672.post@talk.nabble.com> <18848747.post@talk.nabble.com> Message-ID: <18848797.post@talk.nabble.com> Hi, I have gone through that. But I could not figure out where to keep the .map files. Krishna Mohan FCampos wrote: > > check http://mapserver.gis.umn.edu/docs > > > krishna mohan wrote: >> >> Hi, >> >> I am very new to map server. >> I have installed map server and want to display the shape files using map >> server on internet explorer. I also have a post gis database from which I >> would like to display. Can some one please help me how to do that. >> >> Krishna Mohan >> > > -- View this message in context: http://www.nabble.com/Displaying-the-shape-files-using-the-map-server-tp18848672p18848797.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vtammineni at roulacglobal.com Wed Aug 6 04:16:39 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Wed, 6 Aug 2008 16:46:39 +0530 Subject: [MAPSERVER-USERS] Displaying the shape files using the map server In-Reply-To: References: <18848672.post@talk.nabble.com> <001c01c8f7b2$df67f2b0$9e37d810$@com> Message-ID: <002801c8f7b5$e7a23e10$b6e6ba30$@com> Hi, This is PHP with mapserver. Please have look once. http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample Thanks and Regards Venkat -----Original Message----- From: Krishna Mohan [mailto:pkrishnamohan at gmail.com] Sent: Wednesday, August 06, 2008 4:24 PM To: 'Venkat Rao Tammineni'; mapserver-users at lists.osgeo.org Subject: RE: [MAPSERVER-USERS] Displaying the shape files using the map server Hi, Thanks for the quick reply. I am not using any programming language. I just want to display the shape file on a web browser using the mapserver. Is it possible, Krishna Mohan -----Original Message----- From: Venkat Rao Tammineni [mailto:vtammineni at roulacglobal.com] Sent: Wednesday, August 06, 2008 4:25 PM To: 'krishna mohan'; mapserver-users at lists.osgeo.org Subject: RE: [MAPSERVER-USERS] Displaying the shape files using the map server Hi, Which programming language you are using .let me know. Thanks and regards Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of krishna mohan Sent: Wednesday, August 06, 2008 4:17 PM To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] Displaying the shape files using the map server Hi, I am very new to map server. I have installed map server and want to display the shape files using map server on internet explorer. I also have a post gis database from which I would like to display. Can some one please help me how to do that. Krishna Mohan -- View this message in context: http://www.nabble.com/Displaying-the-shape-files-using-the-map-server-tp1884 8672p18848672.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Tim.Nolte at ipcswirelessinc.com Wed Aug 6 04:58:39 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Wed, 6 Aug 2008 07:58:39 -0400 Subject: [MAPSERVER-USERS] mapserver does not show oracle layer In-Reply-To: <18847865.post@talk.nabble.com> References: <18847632.post@talk.nabble.com><10940.145.50.39.11.1218016311.squirrel@webmail.hostingdiscounter.nl> <18847865.post@talk.nabble.com> Message-ID: Are you certain that you have Oracle client installed and MapServer compile against it? ---- Timothy J Nolte - tnolte at ilpcs.com 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: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of FCampos > Sent: Wednesday, August 06, 2008 5:58 AM > To: mapserver-users at lists.osgeo.org > Subject: Re: [MAPSERVER-USERS] mapserver does not show oracle layer > > > That?s strange because does not appear nothing about oracle layer. > > C:\ms4w\apps\wmssrvrefer>shp2img -m config.map -o test.png > -all_debug 10 > msLoadMap(): 0.031s > msDrawMap(): Layer 0 (major_roads_small_4), 0.000s > msDrawMap(): Drawing Label Cache, 0.000s > msDrawMap() total time: 0.015s > msSaveImage() total time: 0.047s > msFreeMap(): freeing map at 0148B288. > shp2img total time: 0.109s > > > > but the connection is good because i see in the log apache, > when i make a > wms request. > it does not give any oracle error > [Wed Aug 06 10:57:18 2008] [error] [client 172.18.202.178] > msDrawMap(): > Layer 1 (road_a), 0.938s\r, referer: > http://127.0.0.1/justtests/maps/openlayes/ > > -- > View this message in context: > http://www.nabble.com/mapserver-does-not-show-oracle-layer-tp1 8847632p18847865.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From fcampos at efacec.pt Wed Aug 6 05:09:36 2008 From: fcampos at efacec.pt (FCampos) Date: Wed, 6 Aug 2008 05:09:36 -0700 (PDT) Subject: [MAPSERVER-USERS] mapserver does not show oracle layer In-Reply-To: References: <18847632.post@talk.nabble.com> <10940.145.50.39.11.1218016311.squirrel@webmail.hostingdiscounter.nl> <18847865.post@talk.nabble.com> Message-ID: <18849791.post@talk.nabble.com> Yes. Mapserver, I?ve got: MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIE NT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUP PORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT= OGR INPUT=GDAL INPUT=SHAPEFILE Oracle: instantclient 11.1 with a tnsnames.ora definition. If i put a bad sql, it gives a oci error, so it?s compiled. msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error parsing OracleSpatial DATA variable. Must be:'geometry_column FROM table_name [USING UNIQUE SRID srid# FUNCTION]' or ... -- View this message in context: http://www.nabble.com/mapserver-does-not-show-oracle-layer-tp18847632p18849791.html Sent from the Mapserver - User mailing list archive at Nabble.com. From John.Westwood at port.ac.uk Wed Aug 6 04:57:58 2008 From: John.Westwood at port.ac.uk (John Westwood) Date: Wed, 06 Aug 2008 12:57:58 +0100 Subject: [mapserver-users] msDrawRaster(): Image handling error with sles / opensuse Message-ID: <48999FD6.FEDC.0053.0@port.ac.uk> Hi, I have successfully compiled MapServer 5.2 on both Debian Etch and SUSE = Linux Enterprise Server (SLES) 10 SP2 . Everything works fine on Debian, = but on SUSE I receive the following error when trying to display any = raster based layers: msDrawMap(): Image handling error. Failed to draw layer named '......'.; = msDrawRaster(): Image handling error. Unrecognized or unsupported image = format; drawEPP(): Image handling error. EPPL7 support is not available. I realise that the EPPL7 reference in the error message is a red herring. = My raster layers are in geotiff format and the output format is png. = Vector layers render fine as pngs. I am using MapServer as a WMS server. I = compiled with agg, gd and gdal. I don't understand why it's not working! = Please help! Many thanks, John W. Great Britain Historical GIS Project. From peter at nexus.dk Wed Aug 6 05:22:00 2008 From: peter at nexus.dk (Peter Falk) Date: Wed, 06 Aug 2008 14:22:00 +0200 Subject: [mapserver-users] GPS to GIS Message-ID: <48999768.9010704@nexus.dk> Hi, I have a table of GPS-coordinates that I want to use as POI. I've tried to find an algoritm to convert GPS-coordinates to GIS-coordinates but without luck. It would be a great help if anyone could tell me how to do this translation. Thanks! Regards Peter Falk From besse.pb at gmail.com Wed Aug 6 05:28:36 2008 From: besse.pb at gmail.com (Pierre-Benoit Besse) Date: Wed, 6 Aug 2008 14:28:36 +0200 Subject: [MAPSERVER-USERS] Mapserver bug when generating a tiled map with MapFish In-Reply-To: <18813432.post@talk.nabble.com> References: <18813432.post@talk.nabble.com> Message-ID: Isn't there anyone to help me with this ? 2008/8/4 Faldor > > Hi all, > > I use Mapserver with mapfish for the client side to display shapefiles > which > I generated using ogr2ogr. > > The problem is when I try to display a tiled layer (mapfish singleTile > property set to 'false'). Some tiles are generated by mapserver entirely > blank ! > > After a few researches I think it is due to the fact that those tiles are > extended "across" the -180?/+180? line. > For exemple, here is the imgext property from one of the calls to MapServer > which render a blank tile : > imgext=178.59375+-1.40625+271.40625+91.40625 > > Do you know of a way to fix this ? > > Regards, > > Pierre-Beno?t > -- > View this message in context: > http://www.nabble.com/Mapserver-bug-when-generating-a-tiled-map-with-MapFish-tp18813432p18813432.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Nolte at ipcswirelessinc.com Wed Aug 6 05:30:49 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Wed, 6 Aug 2008 08:30:49 -0400 Subject: [MAPSERVER-USERS] mapserver does not show oracle layer In-Reply-To: <18849791.post@talk.nabble.com> References: <18847632.post@talk.nabble.com><10940.145.50.39.11.1218016311.squirrel@webmail.hostingdiscounter.nl><18847865.post@talk.nabble.com> <18849791.post@talk.nabble.com> Message-ID: Well, I have no problems. I'm running the same version of MapServer 5.2, however I think I'm only running IC 10.2. What I have in my map file is; LAYER GROUP "Switch Boundaries" NAME "Kentwood" TYPE POLYGON STATUS OFF CONNECTIONTYPE oraclespatial CONNECTION "username/password at SID" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom FROM (SELECT swt.switch_descr, sgt.geom FROM ms_switch_vw swt, switch_geom_tab sgt WHERE swt.switch_id = sgt.switch_id AND swt.switch_id = 5) USING SRID 8307" LABELITEM "switch_descr" METADATA "static_legend" "1" END DUMP true TRANSPARENCY 100 CLASS MINSCALE 5200000 MAXSCALE 41000000 STYLE SYMBOL "circle" OUTLINECOLOR 80 80 80 SIZE 1 END END CLASS MINSCALE 0 MAXSCALE 5200000 STYLE SYMBOL "circle" OUTLINECOLOR 80 80 80 SIZE 2 END END END I have many layers like this that work without a problem. ---- Timothy J Nolte - tnolte at ilpcs.com 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: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of FCampos > Sent: Wednesday, August 06, 2008 8:10 AM > To: mapserver-users at lists.osgeo.org > Subject: RE: [MAPSERVER-USERS] mapserver does not show oracle layer > > > Yes. > > Mapserver, I?ve got: > MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF > OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=ICO > NV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIE > NT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI > SUPPORTS=THREADS > SUP > PORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS > INPUT=ORACLESPATIAL > INPUT= > OGR INPUT=GDAL INPUT=SHAPEFILE > > Oracle: > instantclient 11.1 with a tnsnames.ora definition. > > If i put a bad sql, it gives a oci error, so it?s compiled. > > msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error parsing > OracleSpatial DATA variable. Must be:'geometry_column FROM > table_name [USING > UNIQUE SRID srid# FUNCTION]' or ... > -- > View this message in context: > http://www.nabble.com/mapserver-does-not-show-oracle-layer-tp1 > 8847632p18849791.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From ramses2k at gmx.de Wed Aug 6 05:23:19 2008 From: ramses2k at gmx.de (ramses2k) Date: Wed, 6 Aug 2008 14:23:19 +0200 Subject: [mapserver-users] mapserver+postgres Message-ID: <002801c8f7bf$8f747f50$0902a8c0@diebels> Hi All, I'm new to mapserver, and tried out some examples (itasca, gmap, p.mapper, openlayers). I want to build a mapping application, where I can query points on mouseclick, that are located in a postgres/postGis Database. So far the examples I tried out only deal with shapefiles. Do you have an example for me to start out for? regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhevenor at rogers.com Wed Aug 6 05:41:26 2008 From: jhevenor at rogers.com (Josh Hevenor) Date: Wed, 06 Aug 2008 08:41:26 -0400 Subject: [MAPSERVER-USERS] mapserver does not show oracle layer Message-ID: <48999BF6.9090808@rogers.com> Hi there, With my oracle spatial layers I use connection "uui/pwdmydb at dbname", where the dbname is setup on your server using the oracle clients 'Net Manager'. Hope this helps, Josh Hevenor From fcampos at efacec.pt Wed Aug 6 05:48:22 2008 From: fcampos at efacec.pt (FCampos) Date: Wed, 6 Aug 2008 05:48:22 -0700 (PDT) Subject: [MAPSERVER-USERS] mapserver does not show oracle layer In-Reply-To: References: <18847632.post@talk.nabble.com> <10940.145.50.39.11.1218016311.squirrel@webmail.hostingdiscounter.nl> <18847865.post@talk.nabble.com> <18849791.post@talk.nabble.com> Message-ID: <18850449.post@talk.nabble.com> hi, how do you check the rigth srid in the oracle ? -- View this message in context: http://www.nabble.com/mapserver-does-not-show-oracle-layer-tp18847632p18850449.html Sent from the Mapserver - User mailing list archive at Nabble.com. From fcampos at efacec.pt Wed Aug 6 05:57:48 2008 From: fcampos at efacec.pt (FCampos) Date: Wed, 6 Aug 2008 05:57:48 -0700 (PDT) Subject: [MAPSERVER-USERS] mapserver does not show oracle layer In-Reply-To: <48999BF6.9090808@rogers.com> References: <18847632.post@talk.nabble.com> <48999BF6.9090808@rogers.com> Message-ID: <18850640.post@talk.nabble.com> yes, that what i do ! Josh Hevenor-2 wrote: > > Hi there, > With my oracle spatial layers I use > > connection "uui/pwdmydb at dbname", where the dbname is setup on your server > using the oracle clients 'Net Manager'. > Hope this helps, > > Josh Hevenor > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/mapserver-does-not-show-oracle-layer-tp18847632p18850640.html Sent from the Mapserver - User mailing list archive at Nabble.com. From cnieman at dmsolutions.ca Wed Aug 6 05:52:03 2008 From: cnieman at dmsolutions.ca (Christy Nieman) Date: Wed, 06 Aug 2008 08:52:03 -0400 Subject: [mapserver-users] GPS to GIS In-Reply-To: <20080806122202.A93E7E01B38@lists.osgeo.org> References: <20080806122202.A93E7E01B38@lists.osgeo.org> Message-ID: <48999E73.9010708@dmsolutions.ca> I've used GPSBabel (http://www.gpsbabel.org) to download data from my GPS and get them into more usable formats. It can also convert between formats. I'm not sure what you mean by converting between GPS and GIS coordinates. If you have a delimited table of coordinates you should be able to import it into a GIS to create, for example, a shapefile. > > ------------------------------------------------------------------------ > > Subject: > [mapserver-users] GPS to GIS > From: > Peter Falk > Date: > Wed, 06 Aug 2008 14:22:00 +0200 > To: > mapserver-users at lists.osgeo.org > > To: > mapserver-users at lists.osgeo.org > > > Hi, > > I have a table of GPS-coordinates that I want to use as POI. I've > tried to find an algoritm to convert GPS-coordinates to > GIS-coordinates but without luck. > > It would be a great help if anyone could tell me how to do this > translation. Thanks! > > Regards > Peter Falk > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From johan.hallgren at logica.com Wed Aug 6 06:14:13 2008 From: johan.hallgren at logica.com (Hallgren, Johan) Date: Wed, 6 Aug 2008 15:14:13 +0200 Subject: [mapserver-users] Build for ArcSDE 92 Message-ID: ... sorry:) Hello As I can see the build for ArcSDE 9.2 doesn't work as expected. The problem is that pe.lib, sde.lib and sg.lib does not include SDE version number anymore and the following line nmake.opt does not work. SDE_LIB = $(SDE_DIR)\lib\pe$(SDE_VERSION).lib \ $(SDE_DIR)\lib\sde$(SDE_VERSION).lib \ $(SDE_DIR)\lib\sg$(SDE_VERSION).lib I changed the version to 9.3 and and I changed the lines to SDE_LIB = $(SDE_DIR)\lib\pe.lib \ $(SDE_DIR)\lib\sde.lib \ $(SDE_DIR)\lib\sg.lib that solved the problem. /Johan Johan Hallgren Logica Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.hallgren at logica.com http://www.logica.se ________________________________ From: Hallgren, Johan Sent: den 6 augusti 2008 14:54 To: mapserver-users at lists.osgeo.org Subject: Build for ArcSDE 92 Hello As I can see the build for ArcSDE 9.2 doesn't work as expected. The problem is that pe.lib, sde.lib and sg.lib does not include SDRE version numer anymore and the following line does not work. SDE_LIB = $(SDE_DIR)\lib\pe$(SDE_VERSION).lib \ $(SDE_DIR)\lib\sde$(SDE_VERSION).lib \ $(SDE_DIR)\lib\sg$(SDE_VERSION).lib Johan Hallgren Logica Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.hallgren at logica.com http://www.logica.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From johan.hallgren at logica.com Wed Aug 6 05:54:02 2008 From: johan.hallgren at logica.com (Hallgren, Johan) Date: Wed, 6 Aug 2008 14:54:02 +0200 Subject: [mapserver-users] Build for ArcSDE 92 Message-ID: Hello As I can see the build for ArcSDE 9.2 doesn't work as expected. The problem is that pe.lib, sde.lib and sg.lib does not include SDRE version numer anymore and the following line does not work. SDE_LIB = $(SDE_DIR)\lib\pe$(SDE_VERSION).lib \ $(SDE_DIR)\lib\sde$(SDE_VERSION).lib \ $(SDE_DIR)\lib\sg$(SDE_VERSION).lib Johan Hallgren Logica Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.hallgren at logica.com http://www.logica.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.Westwood at port.ac.uk Wed Aug 6 06:54:32 2008 From: John.Westwood at port.ac.uk (John Westwood) Date: Wed, 06 Aug 2008 14:54:32 +0100 Subject: [mapserver-users] msDrawRaster(): Image handling error with sles /opensuse In-Reply-To: <48999FD6.FEDC.0053.0@port.ac.uk> References: <48999FD6.FEDC.0053.0@port.ac.uk> Message-ID: <4899BB28.FEDC.0053.0@port.ac.uk> Okay, I did a mapserv -v at the command line and it returned the following supported inputs: INPUT=TIFF INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Typing gdalinfo --formats at the command line returns: GTiff (rw+): GeoTIFF amongst many other supported formats. So it should work, but it doesn't. Any ideas? Thanks John W. >>> On 06/08/2008 at 12:57, in message <48999FD6.FEDC.0053.0 at port.ac.uk>, "John Westwood" wrote: > Hi, > > I have successfully compiled MapServer 5.2 on both Debian Etch and SUSE = > Linux Enterprise Server (SLES) 10 SP2 . Everything works fine on Debian, = > but on SUSE I receive the following error when trying to display any = > raster based layers: > > msDrawMap(): Image handling error. Failed to draw layer named '......'.; = > msDrawRaster(): Image handling error. Unrecognized or unsupported image = > format; drawEPP(): Image handling error. EPPL7 support is not available. > > I realise that the EPPL7 reference in the error message is a red herring. = > My raster layers are in geotiff format and the output format is png. = > Vector layers render fine as pngs. I am using MapServer as a WMS server. I = > compiled with agg, gd and gdal. I don't understand why it's not working! = > Please help! > > Many thanks, > > John W. > > Great Britain Historical GIS Project. > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From peter at nexus.dk Wed Aug 6 06:57:44 2008 From: peter at nexus.dk (Peter Falk) Date: Wed, 06 Aug 2008 15:57:44 +0200 Subject: [mapserver-users] GPS to GIS In-Reply-To: <48999E73.9010708@dmsolutions.ca> References: <20080806122202.A93E7E01B38@lists.osgeo.org> <48999E73.9010708@dmsolutions.ca> Message-ID: <4899ADD8.9060301@nexus.dk> Thanks for your reply. My intension was to convert CPS-coords to GIS-coords on the fly and for that purpose I needed a piece of scripting (an algorithm). But if GPSBabel can convert data between these formats, I'll go for that. Christy Nieman skrev: > I've used GPSBabel (http://www.gpsbabel.org) to download data from my > GPS and get them into more usable formats. It can also convert > between formats. > > I'm not sure what you mean by converting between GPS and GIS > coordinates. If you have a delimited table of coordinates you should > be able to import it into a GIS to create, for example, a shapefile. >> >> ------------------------------------------------------------------------ >> >> Subject: >> [mapserver-users] GPS to GIS >> From: >> Peter Falk >> Date: >> Wed, 06 Aug 2008 14:22:00 +0200 >> To: >> mapserver-users at lists.osgeo.org >> >> To: >> mapserver-users at lists.osgeo.org >> >> >> Hi, >> >> I have a table of GPS-coordinates that I want to use as POI. I've >> tried to find an algoritm to convert GPS-coordinates to >> GIS-coordinates but without luck. >> >> It would be a great help if anyone could tell me how to do this >> translation. Thanks! >> >> Regards >> Peter Falk >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Med venlig hilsen Peter Falk Nexus Kommunikation ?stre Messegade 2 2650 Hvidovre 36 77 00 46 www.nexus.dk From nipapada at gmail.com Wed Aug 6 07:24:00 2008 From: nipapada at gmail.com (=?ISO-8859-7?Q?=CD=DF=EA=EF=F2_=D0=E1=F0=E1=E4=DC=EA=E7=F2?=) Date: Wed, 06 Aug 2008 17:24:00 +0300 Subject: [mapserver-users] Shp file creation. In-Reply-To: <007c01c8f65e$0d6d3a40$9600a8c0@ATULDRAVID> References: <48974555.9030005@gmail.com> <007c01c8f65e$0d6d3a40$9600a8c0@ATULDRAVID> Message-ID: <4899B400.60103@gmail.com> O/H Atul Dravid ??????: > Have you tried going through shapelib documentation ? > > Regards, > Atul Dravid > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ????? > ?apad???? > Sent: Monday, August 04, 2008 11:37 PM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Shp file creation. > > Hello to everyone. > I want to ask about something that i have asked before > but i could not find a solution. > I have measured coordinates of some points in a city and i want > to render them with mapserver. > I have created a csv file with these values.. > > LONGITUTE,LATITUDE,DESCRIPTION,ADDRESS > 22.561867,39.215857,????????? ?????,null > 22.57267,39.212835,"???????????? ?????????,?????? ???????????.",argonautwn > 22.57070,39.212690,Caf?-Bar Drops.,argonautwn > 22.565973,39.212715,Flocafe,argonautwn > 22.565865,39.212754,Reef,argonautwn > 22.565830,39.212776,Jam,argonautwn > > . . . . . . . . > . . . . . . . . > . . . . . . . . > > > > Then i use a program found here ( > http://www.softpedia.com/get/Programming/Other-Programming-Files/CSV-to-Shap > efile-Converter.shtml > ) > to create the .shp, .shx and .dbf files. > But as i said before i can get no points on the map. > I have some other point data and they work just fine. > So i guess the problem isn't in the map file but in the data. > > Can anyone find the problem? > > Thank you all for your time! > Nikos Papadakis. > Univercity of Thessaly. > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > I used shapelib and particulary the shpcreate tool to create an empty shape file and then shpadd to add entriew in it. But in this way i will have to enter all data manually! Is there any other way to generate it with a more automated way? Aldo,theese tools don't produce the required .dbf file. Only .shp and .shx files appear. From boolean10001 at yahoo.com Wed Aug 6 07:27:42 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Wed, 6 Aug 2008 07:27:42 -0700 (PDT) Subject: [mapserver-users] Still cannot display postGIS layers using ms4w(MapServer 5.0.2 on WinXP). In-Reply-To: <554151.21637.qm@web56101.mail.re3.yahoo.com> Message-ID: <528352.9212.qm@web38208.mail.mud.yahoo.com> It seems that if you specify an empty filter like FILTER "", Mapserver take it instead to ignore it. That means Mapserver construct a SQL statement with the WHERE clause empty (without conditionants). IC Carlos Ruiz --- On Wed, 8/6/08, kreshna_iceheart at yahoo.com wrote: From: kreshna_iceheart at yahoo.com Subject: Re: [mapserver-users] Still cannot display postGIS layers using ms4w(MapServer 5.0.2 on WinXP). To: "Kusum" Cc: mapserver-users at lists.osgeo.org Date: Wednesday, August 6, 2008, 4:20 AM I am an idiot. Well I don't have a database named postgis on the first place (only template_postgis), but I tried to apply your first DATA line to my own database (test_mapserv). Then I realized: your file don't have FILTER "" clause. At the same time, someone from postGIS mailing list told me that an empty FILTER clause will just confuse postGIS. So I remove it from my mapfile and suddenly everything works! Thanks, -Kresh --- On Wed, 8/6/08, Kusum wrote: > From: Kusum > Subject: Re: [mapserver-users] Still cannot display postGIS layers using ms4w(MapServer 5.0.2 on WinXP). > To: kreshna_iceheart at yahoo.com > Date: Wednesday, August 6, 2008, 3:18 AM > Try this format :- > LAYER > NAME "route" > STATUS ON > TYPE line > CONNECTIONTYPE postgis > CONNECTION "user=postgres dbname=postgis > host=localhost port=5432 > password=postgres" > DATA "the_geom from ind_road" > #DATA "the_geom from (SELECT the_geom, gid from > shortest_path_as_geometry('hr_road', 1, 50)) as > route using unique gid using > srid=-1" > #DATA "the_geom from (SELECT the_geom from > routing_results) as thing using > unique gid using srid=-1" > #DATA "the_geom from (SELECT gid, the_geom from > routing_results) as foo > using unique gid using srid=-1" > > TEMPLATE "t" > PROJECTION > "proj=latlong" > "ellps=WGS84" > "datum=WGS84" > END > > -------------------------------------------------- > From: > Sent: Wednesday, August 06, 2008 12:40 PM > To: > Subject: [mapserver-users] Still cannot display postGIS > layers using > ms4w(MapServer 5.0.2 on WinXP). > > > Help. Somebody please help. Somebody. Anybody. :-( > > > > I am using postgreSQL 8.2.5 for Windows with postGIS. > The database was > > installed using Windows .msi installation package. I > am also using ms4w > > 2.2.7 that comes with MapServer 5.0.2. All installed > on Windows XP Service > > Pack 2. > > > > The MapServer does support postGIS. When I executed > mapserv -v, I got the > > following: > > MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG > OUTPUT=JPEG OUTPUT=WBMP > > OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ > SUPPORTS=AGG > > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT > > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT > SUPPORTS=WCS_SERVER > > SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS > SUPPORTS=GEOS > > INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > > > In the postgreSQL database, I have created a database > named test_mapserv. > > I also created a schema named rencana, and a table > named kawasanbencana. > > The name of the geometry column is the_geom. > > I have created a spatial index (kawasanbencanaspix) on > the geometry > > column. I also use lowercase to write the > 'from' statement. > > > > The problem is: MapServer always gives the > "..Query error. Error executing > > POSTGIS DECLARE.." error message, no matter what > I do. And I have tried > > everything ad nauseam. > > > > I have tried specifying the DATA line without USING > UNIQUE ... USING SRID > > line. I have tried specifying the DATA line with USING > UNIQUE ...USING > > SRID. I have tried using double apostrophe (") > and single apostrophe ('). > > It doesn't matter. Everything I have tried has > failed, and I still get the > > error message no matter what I did. > > > > My mapfiles are attached in this mail. Each reflect my > futile attempt, and > > all of them generated the error message. > > > > > > My first attempt: > > ================= > > > > This is my first attempt. I have both the mapfile and > the error message > > attached on this mail. > > CONNECTIONTYPE postgis > > CONNECTION 'host=localhost user=rtrw > password=123456 port=5432 > > dbname=test_mapserver' > > DATA 'the_geom from rencana.kawasanbencana' > > > > And I got the following error message: > > msDrawMap(): Image handling error. Failed to draw > layer named > > 'kawasanbencana'. prepare_database(): Query > error. Error executing POSTGIS > > DECLARE (the actual query) statement: 'DECLARE > mycursor BINARY CURSOR FOR > > SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > from > > rencana.kawasanbencana WHERE () and (the_geom > && setSRID( > > 'BOX3D(528635.525378392 9074209,609092.162121608 > > > 9134520)'::BOX3D,find_srid('','rencana.kawasanbencana','the_geom') > ))' > > Postgresql reports the error as 'ERROR: syntax > error at or near ")" LINE > > 1: ...DR'),gid::text from rencana.kawasanbencana > WHERE () and (the... ^ ' > > More Help: Error with POSTGIS data variable. You > specified 'check your > > .map file'. Standard ways of specifiying are : (1) > 'geometry_column from > > geometry_table' (2) 'geometry_column from (sub > query) as foo using unique > > column name using SRID=srid#' Make sure you put in > the 'using unique > > column name' and 'using SRID=#' clauses > in. For more help, please see > > http://postgis.refractions.net/documentation/ > Mappostgis.c - version of > > Jan 23/2004. > > > > > > My second attempt: > > ================== > > > > I tried adding USING UNIQUE to my DATA line. There is > something odd with > > my spatial table though: whenever I view the data > contents with pgAdmin, I > > can always see the oid column. However, I cannot find > the oid column when > > viewing the table's column definition. I attached > the screenshots > > accordingly. The question is: does my table have oid > column or not? And > > does it have something to do with the error? > > > > Nonethless, here's my lines: > > CONNECTIONTYPE postgis > > CONNECTION 'host=localhost user=rtrw > password=123456 port=5432 > > dbname=test_mapserver' > > DATA 'the_geom from rencana.kawasanbencana > using unique oid' > > > > > > And I still get the same error message as above. The > difference is that > > the error message now says 'oid' instead of > 'gid'. For instance, > > "(the_geom)),'NDR'),gid" becomes > "(the_geom)),'NDR'),oid", but everything > > else remains the same. > > > > > > My third attempt: > > ================= > > > > Like I said in my second attempt, I'm not sure > whether my table has oid > > column or not. Thus, in my third attempt I used the > gid column instead, > > especially since the gid column is my primary key > column anyway. This is > > my lines: > > CONNECTIONTYPE postgis > > CONNECTION 'host=localhost user=rtrw > password=123456 port=5432 > > dbname=test_mapserver' > > DATA 'the_geom from rencana.kawasanbencana > using unique gid' > > > > And I got exactly the same error message as my first > attempt. > > > > > > My fourth attempt: > > ================== > > > > In my fourth attempt, I used the gid column for my > unique id, and I am > > using SRID=1. Here is the lines: > > CONNECTIONTYPE postgis > > CONNECTION 'host=localhost user=rtrw > password=123456 port=5432 > > dbname=test_mapserver' > > DATA 'the_geom from rencana.kawasanbencana > using unique gid using > > SRID=1' > > > > Well I still got the error message. This time, the > error message is > > slightly different. Instead of getting > "::BOX3D,find_srid", I got > > "::BOX3D,1". > > > > Here is the complete error message: > > msDrawMap(): Image handling error. Failed to draw > layer named > > 'kawasanbencana'. prepare_database(): Query > error. Error executing POSTGIS > > DECLARE (the actual query) statement: 'DECLARE > mycursor BINARY CURSOR FOR > > SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text > from > > rencana.kawasanbencana WHERE () and (the_geom > && setSRID( > > 'BOX3D(528635.525378392 9074209,609092.162121608 > 9134520)'::BOX3D,1) )' > > Postgresql reports the error as 'ERROR: syntax > error at or near ")" LINE > > 1: ...DR'),gid::text from rencana.kawasanbencana > WHERE () and (the... ^ ' > > More Help: Error with POSTGIS data variable. You > specified 'check your > > .map file'. Standard ways of specifiying are : (1) > 'geometry_column from > > geometry_table' (2) 'geometry_column from (sub > query) as foo using unique > > column name using SRID=srid#' Make sure you put in > the 'using unique > > column name' and 'using SRID=#' clauses > in. For more help, please see > > http://postgis.refractions.net/documentation/ > > Mappostgis.c - version of Jan 23/2004. > > > > > > My fifth attempt: > > ================= > > > > Now I had been pretty much desperate, I just wrote > using SRID=#, closed my > > eyes, and hoped for the best. Here's the lines: > > CONNECTIONTYPE postgis > > CONNECTION 'host=localhost user=rtrw > password=123456 port=5432 > > dbname=test_mapserver' > > DATA 'the_geom from rencana.kawasanbencana > using unique gid using > > SRID=#' > > > > I still get an error message. This time, the error > message is different > > altogether. Here's the message: > > msDrawMap(): Image handling error. Failed to draw > layer named > > 'kawasanbencana'. msPOSTGISLayerParseData(): > Query error. Error parsing > > POSTGIS data variable: You specified 'using > SRID=#' but didnt have any > > numbers! More Help: Error with POSTGIS data variable. > You specified > > 'the_geom from rencana.kawasanbencana using unique > gid using SRID=#'. > > Standard ways of specifiying are : (1) > 'geometry_column from > > geometry_table' (2) 'geometry_column from (sub > query) as foo using unique > > column name using SRID=srid#' Make sure you put in > the 'using unique > > column name' and 'using SRID=#' clauses > in. For more help, please see > > http://postgis.refractions.net/documentation/ > Mappostgis.c - version of > > Jan 23/2004. > > > > > > I'm pretty much desperate. Could somebody please > tell what's wrong on my > > mapfile? Or maybe ms4w just cannot display postGIS > data? Do I need to > > install postGIS and MapServer on Linux, in order to > get them work > > together? Please help. :-( > > > > > > Thanks, > > -Kresh > > > > > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Wed Aug 6 07:28:19 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 06 Aug 2008 10:28:19 -0400 Subject: [MAPSERVER-USERS] Mapserver bug when generating a tiled map with MapFish In-Reply-To: References: <18813432.post@talk.nabble.com> Message-ID: <4899B503.8030709@mapgears.com> Pierre-Benoit, Unfortunately for you, MapServer has no automated way to deal with wrapping coordinates at the date line. If all your data is in the [-180,180] range and you request a map for the [180,270] range then MapServer doesn't find anything to render and returns a blank map. You could possibly make a copy of all your data in the [180,540] range by adding +360 to all longitude values. I don't know of any tool that does that out of the box, but it should be easy to modify ogr2ogr to do that for you if you are fluent in C/C++. Another option might be to look at modifying the MapFish scripts to handle the wrapping of coordinates at the +/-180 line and request maps from MapServer with the correct extents. Finally, we could possibly try to handle the wrapping in MapServer... you could file a enhancement ticket about that. The addition sounds simple at first, but I fear that it may be more involved than it seems. Daniel Pierre-Benoit Besse wrote: > Isn't there anyone to help me with this ? > > 2008/8/4 Faldor > > > > Hi all, > > I use Mapserver with mapfish for the client side to display > shapefiles which > I generated using ogr2ogr. > > The problem is when I try to display a tiled layer (mapfish singleTile > property set to 'false'). Some tiles are generated by mapserver entirely > blank ! > > After a few researches I think it is due to the fact that those > tiles are > extended "across" the -180?/+180? line. > For exemple, here is the imgext property from one of the calls to > MapServer > which render a blank tile : > imgext=178.59375+-1.40625+271.40625+91.40625 > > Do you know of a way to fix this ? > > Regards, > > Pierre-Beno?t > -- > View this message in context: > http://www.nabble.com/Mapserver-bug-when-generating-a-tiled-map-with-MapFish-tp18813432p18813432.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From David.Fawcett at state.mn.us Wed Aug 6 07:15:11 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Wed, 6 Aug 2008 09:15:11 -0500 Subject: [mapserver-users] GPS to GIS In-Reply-To: <4899ADD8.9060301@nexus.dk> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBF6A@s-sp22.pca.state.mn.us> I think that the way that you phrased your questions was a little confusing. 'GPS coordinates' and 'GIS coordinates' are really the same thing. It sounds more like you want to convert the format that the coordinates are stored in from the one used by your GPS to one that works in a GIS or with MapServer. I hacked up a python function to read .gpx files. I will send it to you off-list. You could then use it in conjunction with the OGR python module to write a shape file. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Peter Falk Sent: Wednesday, August 06, 2008 8:58 AM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] GPS to GIS Thanks for your reply. My intension was to convert CPS-coords to GIS-coords on the fly and for that purpose I needed a piece of scripting (an algorithm). But if GPSBabel can convert data between these formats, I'll go for that. Christy Nieman skrev: > I've used GPSBabel (http://www.gpsbabel.org) to download data from my > GPS and get them into more usable formats. It can also convert > between formats. > > I'm not sure what you mean by converting between GPS and GIS > coordinates. If you have a delimited table of coordinates you should > be able to import it into a GIS to create, for example, a shapefile. >> >> --------------------------------------------------------------------- >> --- >> >> Subject: >> [mapserver-users] GPS to GIS >> From: >> Peter Falk >> Date: >> Wed, 06 Aug 2008 14:22:00 +0200 >> To: >> mapserver-users at lists.osgeo.org >> >> To: >> mapserver-users at lists.osgeo.org >> >> >> Hi, >> >> I have a table of GPS-coordinates that I want to use as POI. I've >> tried to find an algoritm to convert GPS-coordinates to >> GIS-coordinates but without luck. >> >> It would be a great help if anyone could tell me how to do this >> translation. Thanks! >> >> Regards >> Peter Falk >> >> --------------------------------------------------------------------- >> --- >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Med venlig hilsen Peter Falk Nexus Kommunikation ?stre Messegade 2 2650 Hvidovre 36 77 00 46 www.nexus.dk _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From boolean10001 at yahoo.com Wed Aug 6 07:33:37 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Wed, 6 Aug 2008 07:33:37 -0700 (PDT) Subject: [mapserver-users] mapserver+postgres In-Reply-To: <002801c8f7bf$8f747f50$0902a8c0@diebels> Message-ID: <207386.52252.qm@web38204.mail.mud.yahoo.com> You will need three tags within the LAYER one: CONNECTION "host=a port=b dbname=c user=d password=e" CONNECTION TYPE POSTGIS DATA "the_geom FROM your_table_name" IC Carlos Ruiz? --- On Wed, 8/6/08, ramses2k wrote: From: ramses2k Subject: [mapserver-users] mapserver+postgres To: mapserver-users at lists.osgeo.org Date: Wednesday, August 6, 2008, 7:23 AM Hi All, ? I'm new to mapserver, and tried out some examples (itasca, gmap, p.mapper, openlayers). I want to build a mapping?application, where I can query points on mouseclick, that are located in a postgres/postGis Database. So far the examples I tried out only deal with shapefiles. Do you have an example for me to?start out?for? ? regards_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From besse.pb at gmail.com Wed Aug 6 07:26:32 2008 From: besse.pb at gmail.com (Pierre-Benoit Besse) Date: Wed, 6 Aug 2008 16:26:32 +0200 Subject: [MAPSERVER-USERS] Mapserver bug when generating a tiled map with MapFish In-Reply-To: <5ec103de0808060544j1e7c30c5qea0b5a5e01d90dd@mail.gmail.com> References: <18813432.post@talk.nabble.com> <5ec103de0808060544j1e7c30c5qea0b5a5e01d90dd@mail.gmail.com> Message-ID: Unfortunately there is no connection to internet on the platform I develop on. All is done localy. I will try to be more precise. I am trying to display a shapefile representing the whole world (it's a shapefile from Global Insight plus if it helps). I use mapfish without 'singleTile: true' so the layer is generated by tiles. There is no problem in the beggining when the map is zoomed to max extent. The problem occurs when I begin zooming in and trying to display America/Asia. One of the "colums" of tiles is drawn across the -180?/+180? longitude line, and those tiles are generated entirely blank (white, not even transparent). When I get the properties of the image (right-click on the blank tile -> Properties) and I search in the "Location" of the image I can find : mapext=179.296875+44.296875+*225.703125* +90.703125&imgext=179.296875+44.296875+*225.703125*+90.703125 So I guess the problem comes from that, MapServer doesn't recognise longitude greater than 180 or lower than -180. If I'm right I would appreciate any hint on how to handle this... Otherwise it may be a mapfish issue, maybe mapfish should always generate tiles with borders right on -180 / +180. This is the case at the beggining, lef tile has mapext=90+0+180+90 and right tile has mapext=-180+0+-90+90. But whenever I begin zooming in it goes awry, the border of tiles is no longer right on -180/+180 and some tiles are generated white by MapServer. If someone needs more informations I'm ready to give it. Best regards, PB 2008/8/6 Eric Lemoine > On Wed, Aug 6, 2008 at 2:28 PM, Pierre-Benoit Besse > wrote: > > Isn't there anyone to help me with this ? > > > > 2008/8/4 Faldor > >> > >> Hi all, > >> > >> I use Mapserver with mapfish for the client side to display shapefiles > >> which > >> I generated using ogr2ogr. > >> > >> The problem is when I try to display a tiled layer (mapfish singleTile > >> property set to 'false'). Some tiles are generated by mapserver entirely > >> blank ! > >> > >> After a few researches I think it is due to the fact that those tiles > are > >> extended "across" the -180?/+180? line. > >> For exemple, here is the imgext property from one of the calls to > >> MapServer > >> which render a blank tile : > >> imgext=178.59375+-1.40625+271.40625+91.40625 > >> > >> Do you know of a way to fix this ? > > This is not enough information for anyone to help you. Could you > provide a link or a web page to help people see what's going on? > > -- > Eric > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gemerson at WelshCo.com Wed Aug 6 07:42:10 2008 From: gemerson at WelshCo.com (Emerson, Gabe) Date: Wed, 6 Aug 2008 09:42:10 -0500 Subject: [mapserver-users] Network / UNC access problems In-Reply-To: <348277DFCE9FF044B3812A6CF459CD37ED25A4@welshmail.welshco.com.local> References: <4891D722.8060202@gmail.com> <348277DFCE9FF044B3812A6CF459CD37ED25A4@welshmail.welshco.com.local> Message-ID: <348277DFCE9FF044B3812A6CF459CD37ED2BF1@welshmail.welshco.com.local> On further review with the IT department, it turns out our IIS server wasn't set up quite as expected. The anonymous web user had access to .html and .txt files, but not other file types, and only through http paths (not UNC). If it's of any interest, I was able to use some resources in mapserver by specifying the full http:// path to the file. This worked for the template, and DrawRaster seems like it would have worked if not for an unrelated problem, but DrawSHP wanted to append the http path onto the local web directory path. Once IT got the permissions sorted out, everything works. Thanks to the people who responded with suggestions. -Gabe -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Emerson, Gabe Sent: Friday, August 01, 2008 9:19 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Network / UNC access problems Hello everyone, Once again I have an issue that's apparently been solved before, but doesn't work for me. Hopefully this is an ability that Mapserver still retains. I'm trying to access network resources (in an IIS environment) from mapserver. The IT people have set up the web server with a domain account, and given it access to the relevant network drives (it's Intranet only, inside our firewall). They've also set up some virtual folders pointing to the network locations, and put those into the mapserver directory. The web server has no problem accessing the files, I can browse to the data through it (as in "domain.com/aeimagery/minr2c2.ecw". However, Mapserver's CGI isn't able to access the data. I've tried using the standard UNC path: DATA "\\server\aeimagery\minr2c2.ecw" I've also tried using the local shortcuts that IT set up, as in: DATA "../AEImagery/MINr2c2.ecw" And as the full web server path: DATA "D:/inetpub/gis/AEImagery/MINr2c2" I've tried /, \, all lowercase, etc. I've also confirmed that local copies of the aerials and shapefiles work. For aerials I simply get nothing to appear. For shapefiles I get the usual: msDrawMap(): Image handling error. Failed to draw layer named 'Metro_Area'. msSHPOpenFile(): Unable to access file. (\\server\data\research\esri\county) msSHPOpenFile(): Unable to access file. (\\server\data\research\esri\county) Since I'm not in control of the server config, I can't guarantee that everything in IIS is set up correctly. IT tells me that the webserver process is a domain user, and they've seen the prior mailing list posts on this topic. Since I can access the virtual folders that point at the network resources, I assume the server and its processes have the proper access. At this point I'm stumped as to what else is necessary, or what else I can ask IT to test for. Any suggestions would be appreciated! -Gabe Emerson _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Wed Aug 6 07:41:40 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 06 Aug 2008 09:41:40 -0500 Subject: [mapserver-users] RE: Labeling Message-ID: <489971D40200008F0001A57D@co5.dnr.state.mn.us> >From your example I can see that your "ANGLE" parameter is in the wrong object it should be in the label object to rotate the text. As is you should be throwing parsing errors. the item storing the angle need not be numeric although the values must represent numbers upon conversion. Steve >>> Jay Kapalczynski 08/06/08 2:15 AM >>> What I am trying to do is use annotation from a Geodatabase. From what I hear GeoMoose / Map Server will not read it. I converted the Annotation Feature Class to a Point. Then created a Polygon from the Annotation Feature Classes, pointing to the Point Feature class for the Attributes (label field, degree field) I then read the Polygons into GeoMoose and label on the field and Angle the text by "Angle' Field. The ANGLE call to Map Server dosent seem to work in this case Any thoughts? From: Jay Kapalczynski Sent: Tuesday, August 05, 2008 2:48 PM To: 'mapserver-users at lists.osgeo.org' Subject: Labeling Don't know if I have to correct location. I have been successful labeling street centerlines using the ANGLE FOLLOW in the .map File This is being performed on a Shapefile Line feature I also have a Polygon Feature that has a field that I am trying to label....once again I need the text to follow the polygon As you can see from the image the road names a following properly, but the labels for the polygons are not following... I tried the ANGLE FOLLOW on the Polygon and It will not draw.. I tried ANGLE [Angle] with Angle being a field name that holds Degree values (ex 270) does the field have to be numeric? Is there some other syntax that I have to put in the map file that will force the text to follow the Polygon? THANKS STREET MAP FILE LAYER # Maple Grove Streets Name NAME Streets_Labels DATA './GEOCODED_CENTERLINES2.shp' STATUS DEFAULT TYPE annotation MAXSCALE 6000 MINSCALE 100 LABELITEM 'STREET_NAM' LABELCACHE ON CLASS COLOR -1 -1 -1 LABEL TYPE TRUETYPE FONT vera_sans ANGLE FOLLOW POSITION AUTO MAXSIZE 10 SIZE 8 MINSIZE 8 ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 192 BUFFER 2 END END END # Maple Grove Streets Name PARCELS MAP FILE THAT DOES NOT WORK LAYER # Maple Grove Parcels NAME Parcel_Labels DATA './parcels.shp' STATUS DEFAULT TYPE annotation MAXSCALE 2500 MINSCALE 100 LABELITEM 'TextString' ANGLE [Angle] POSITION AUTO PARTIALS FALSE LABELCACHE ON CLASS COLOR -1 -1 -1 LABEL TYPE TRUETYPE FONT vera_sans MAXSIZE 8 SIZE 8 MINSIZE 2 #ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 128 BUFFER 2 END END END # Maple Grove Parcels From jkapalczynski at ci.maple-grove.mn.us Wed Aug 6 07:46:01 2008 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Wed, 6 Aug 2008 09:46:01 -0500 Subject: [mapserver-users] RE: Labeling In-Reply-To: <489971D40200008F0001A57D@co5.dnr.state.mn.us> References: <489971D40200008F0001A57D@co5.dnr.state.mn.us> Message-ID: That was it....moved the lines inside the LABEL CLASS.... Credit due to the GeoMoose Forum...(Dan) But I do thank you all for your help...it is very appreciated. Especially for Green coders like myself... Thanks again Steve for your response CLASS LABEL PUT LINES HERE END END -----Original Message----- From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] Sent: Wednesday, August 06, 2008 9:42 AM To: Jay Kapalczynski; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] RE: Labeling >From your example I can see that your "ANGLE" parameter is in the wrong object it should be in the label object to rotate the text. As is you should be throwing parsing errors. the item storing the angle need not be numeric although the values must represent numbers upon conversion. Steve >>> Jay Kapalczynski 08/06/08 2:15 AM >>> What I am trying to do is use annotation from a Geodatabase. From what I hear GeoMoose / Map Server will not read it. I converted the Annotation Feature Class to a Point. Then created a Polygon from the Annotation Feature Classes, pointing to the Point Feature class for the Attributes (label field, degree field) I then read the Polygons into GeoMoose and label on the field and Angle the text by "Angle' Field. The ANGLE call to Map Server dosent seem to work in this case Any thoughts? From: Jay Kapalczynski Sent: Tuesday, August 05, 2008 2:48 PM To: 'mapserver-users at lists.osgeo.org' Subject: Labeling Don't know if I have to correct location. I have been successful labeling street centerlines using the ANGLE FOLLOW in the .map File This is being performed on a Shapefile Line feature I also have a Polygon Feature that has a field that I am trying to label....once again I need the text to follow the polygon As you can see from the image the road names a following properly, but the labels for the polygons are not following... I tried the ANGLE FOLLOW on the Polygon and It will not draw.. I tried ANGLE [Angle] with Angle being a field name that holds Degree values (ex 270) does the field have to be numeric? Is there some other syntax that I have to put in the map file that will force the text to follow the Polygon? THANKS STREET MAP FILE LAYER # Maple Grove Streets Name NAME Streets_Labels DATA './GEOCODED_CENTERLINES2.shp' STATUS DEFAULT TYPE annotation MAXSCALE 6000 MINSCALE 100 LABELITEM 'STREET_NAM' LABELCACHE ON CLASS COLOR -1 -1 -1 LABEL TYPE TRUETYPE FONT vera_sans ANGLE FOLLOW POSITION AUTO MAXSIZE 10 SIZE 8 MINSIZE 8 ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 192 BUFFER 2 END END END # Maple Grove Streets Name PARCELS MAP FILE THAT DOES NOT WORK LAYER # Maple Grove Parcels NAME Parcel_Labels DATA './parcels.shp' STATUS DEFAULT TYPE annotation MAXSCALE 2500 MINSCALE 100 LABELITEM 'TextString' ANGLE [Angle] POSITION AUTO PARTIALS FALSE LABELCACHE ON CLASS COLOR -1 -1 -1 LABEL TYPE TRUETYPE FONT vera_sans MAXSIZE 8 SIZE 8 MINSIZE 2 #ANTIALIAS TRUE COLOR 0 0 0 OUTLINECOLOR 255 255 128 BUFFER 2 END END END # Maple Grove Parcels -------------- next part -------------- An HTML attachment was scrubbed... URL: From group.ritesh at gmail.com Wed Aug 6 08:01:28 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Wed, 6 Aug 2008 08:01:28 -0700 (PDT) Subject: [MAPSERVER-USERS] Road Lines with AGG In-Reply-To: References: <18828729.post@talk.nabble.com> Message-ID: <18853113.post@talk.nabble.com> Still looking for a solution :( -Ritesh Nolte, Tim wrote: > > When you are using AGG for your output do not use antialias true on your > layers. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > 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: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Ritesh Ambastha >> Sent: Tuesday, August 05, 2008 6:53 AM >> To: mapserver-users at lists.osgeo.org >> Subject: [MAPSERVER-USERS] Road Lines with AGG >> >> >> http://www.nabble.com/file/p18828729/road.png >> >> In the map file, I have defined the imagetype and outputformat as: >> >> IMAGETYPE AGG >> >> OUTPUTFORMAT >> NAME 'AGG' >> DRIVER AGG/PNG >> IMAGEMODE RGB >> END >> >> My line layers are written with antialias as true. >> >> How can I correct the lines with more smoothness while >> keeping the same >> sharpness? >> >> Thanks, >> Ritesh Ambastha >> -- >> View this message in context: >> http://www.nabble.com/Road-Lines-with-AGG-tp18828729p18828729.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Road-Lines-with-AGG-tp18828729p18853113.html Sent from the Mapserver - User mailing list archive at Nabble.com. From fcampos at efacec.pt Wed Aug 6 08:33:15 2008 From: fcampos at efacec.pt (FCampos) Date: Wed, 6 Aug 2008 08:33:15 -0700 (PDT) Subject: [MAPSERVER-USERS] mapserver does not show oracle layer In-Reply-To: References: <18847632.post@talk.nabble.com> <10940.145.50.39.11.1218016311.squirrel@webmail.hostingdiscounter.nl> <18847865.post@talk.nabble.com> Message-ID: <18853796.post@talk.nabble.com> i export the layer to shape and , and made ogrinfo and i?ve got: Geometry: Line String Feature Count: 5801 Extent: (-113613.582981, -286361.190557) - (108654.660386, 258019.490810) Layer SRS WKT: (unknown) What?s the Layer SRS WKT: (unknown) -- View this message in context: http://www.nabble.com/mapserver-does-not-show-oracle-layer-tp18847632p18853796.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at pobox.com Wed Aug 6 08:35:08 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 06 Aug 2008 11:35:08 -0400 Subject: [mapserver-users] msDrawRaster(): Image handling error with sles /opensuse In-Reply-To: <4899BB28.FEDC.0053.0@port.ac.uk> References: <48999FD6.FEDC.0053.0@port.ac.uk> <4899BB28.FEDC.0053.0@port.ac.uk> Message-ID: <4899C4AC.2070001@pobox.com> John, My suggestion would be to carefully review the paths you are using, and the permissions of the server. You may find it helpful to test from the commandline to isolate cgi permissions issues, and so that you can see immediate debugging information. Best regards, John Westwood wrote: > Okay, > > I did a mapserv -v at the command line and it returned the following supported inputs: > > INPUT=TIFF INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Typing gdalinfo --formats at the command line returns: > > GTiff (rw+): GeoTIFF > > amongst many other supported formats. > > So it should work, but it doesn't. Any ideas? > > Thanks > > John W. > > >>>> On 06/08/2008 at 12:57, in message <48999FD6.FEDC.0053.0 at port.ac.uk>, "John > Westwood" wrote: >> Hi, >> >> I have successfully compiled MapServer 5.2 on both Debian Etch and SUSE = >> Linux Enterprise Server (SLES) 10 SP2 . Everything works fine on Debian, = >> but on SUSE I receive the following error when trying to display any = >> raster based layers: >> >> msDrawMap(): Image handling error. Failed to draw layer named '......'.; = >> msDrawRaster(): Image handling error. Unrecognized or unsupported image = >> format; drawEPP(): Image handling error. EPPL7 support is not available. >> >> I realise that the EPPL7 reference in the error message is a red herring. = >> My raster layers are in geotiff format and the output format is png. = >> Vector layers render fine as pngs. I am using MapServer as a WMS server. I = >> compiled with agg, gd and gdal. I don't understand why it's not working! = >> Please help! >> >> Many thanks, >> >> John W. >> >> Great Britain Historical GIS Project. >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------+-------------------------------------- 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 woklist at kyngchaos.com Wed Aug 6 08:51:05 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 6 Aug 2008 10:51:05 -0500 Subject: [mapserver-users] MapServer Version 5.2.0 Source Released In-Reply-To: <9171C131-1715-4397-A951-AA2D228BD092@kyngchaos.com> References: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> <9171C131-1715-4397-A951-AA2D228BD092@kyngchaos.com> Message-ID: <3653AB14-6F02-4F21-B5EF-AB51D141FCCC@kyngchaos.com> On Jul 20, 2008, at 3:30 PM, William Kyngesburye wrote: > My OSX build is finally ready (lots of distractions this week). > > I added a couple things: > > - instructions for compiling other mapscripts that are not included > in the installer. > "are now included" took me a while to notice ;) > - a build script (separate download) to compile my framework > version. Also supports compiling universal and 64bits (for > Leopard). It should work on Panther. Defaults to using my other > frameworks and binaries, only GD is required as an external compile. ----- William Kyngesburye http://www.kyngchaos.com/ "This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?" - The Ruler of the Universe From woklist at kyngchaos.com Wed Aug 6 08:55:56 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Wed, 6 Aug 2008 10:55:56 -0500 Subject: [mapserver-users] MapServer Version 5.2.0 Source Released In-Reply-To: <3653AB14-6F02-4F21-B5EF-AB51D141FCCC@kyngchaos.com> References: <487E5F5F0200008F00019B76@co5.dnr.state.mn.us> <9171C131-1715-4397-A951-AA2D228BD092@kyngchaos.com> <3653AB14-6F02-4F21-B5EF-AB51D141FCCC@kyngchaos.com> Message-ID: <2300F0EB-A737-4613-A3FC-1CA1358E24DB@kyngchaos.com> On Aug 6, 2008, at 10:51 AM, William Kyngesburye wrote: > On Jul 20, 2008, at 3:30 PM, William Kyngesburye wrote: > >> My OSX build is finally ready (lots of distractions this week). >> >> I added a couple things: >> >> - instructions for compiling other mapscripts that are not included >> in the installer. >> > "are now included" > > took me a while to notice ;) > Scratch that, misread my own writing. Where's my coffee!? ----- William Kyngesburye http://www.kyngchaos.com/ "I ache, therefore I am. Or in my case - I am, therefore I ache." - Marvin From fcampos at efacec.pt Wed Aug 6 09:03:11 2008 From: fcampos at efacec.pt (FCampos) Date: Wed, 6 Aug 2008 09:03:11 -0700 (PDT) Subject: [MAPSERVER-USERS] Layer SRS WKT: (unknown) Message-ID: <18854439.post@talk.nabble.com> I?ve got a shape that in ogrinfo gives me: Layer SRS WKT: (unknown) What can i do to put this shape ok ? -- View this message in context: http://www.nabble.com/Layer-SRS-WKT%3A-%28unknown%29-tp18854439p18854439.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nipapada at gmail.com Wed Aug 6 09:05:06 2008 From: nipapada at gmail.com (=?ISO-8859-7?Q?=CD=DF=EA=EF=F2_=D0=E1=F0=E1=E4=DC=EA=E7=F2?=) Date: Wed, 06 Aug 2008 19:05:06 +0300 Subject: [mapserver-users] Shp file creation Message-ID: <4899CBB2.7070507@gmail.com> I used shapelib and particulary the shpcreate tool to create an empty shape file and then shpadd to add entriew in it. But in this way i will have to enter all data manually! Is there any other way to generate it with a more automated way? Aldo,theese tools don't produce the required .dbf file. Only .shp and .shx files appear. -------------- next part -------------- An embedded message was scrubbed... From: =?ISO-8859-7?Q?=CD=DF=EA=EF=F2_=D0=E1=F0=E1=E4=DC=EA=E7=F2?= Subject: Re: [mapserver-users] Shp file creation. Date: Wed, 06 Aug 2008 17:24:00 +0300 Size: 2719 URL: From jvanulde at nrcan.gc.ca Wed Aug 6 09:03:19 2008 From: jvanulde at nrcan.gc.ca (Van Ulden, Joost) Date: Wed, 6 Aug 2008 12:03:19 -0400 Subject: [mapserver-users] Image quality when cascading getMap (v5.2) Message-ID: <93DDA33D80985E47B134F2B953C56B7CD74630@s0-ott-x4.nrn.nrcan.gc.ca> Hi all, I am wondering if anyone else has come across this issue; cascaded getmap returns poor quality images. Please see attached. Both images are generated using the same layer/sld/service. I am using the AGG/PNG driver. Has anything changed in v5.2 that we should know about? Any ideas on where to look? Thank you in advance, _________________________________ Joost van Ulden Natural Resources Canada / Ressources Naturelles Canada 625 Robson Street / 625 rue Robson Vancouver, B.C. / Vancouver (C.B.) V6B 5J3 tel/t?l: 604.666.7525 fax/t?l?copieur: 604.666.1124 email / courriel: jvanulde at nrcan.gc.ca -------------- next part -------------- A non-text attachment was scrubbed... Name: getmap_cascaded.png Type: image/x-png Size: 68565 bytes Desc: getmap_cascaded.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: getmap_not_ cascaded.png Type: image/x-png Size: 105093 bytes Desc: getmap_not_ cascaded.png URL: From warmerdam at pobox.com Wed Aug 6 09:15:10 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 06 Aug 2008 12:15:10 -0400 Subject: [MAPSERVER-USERS] Layer SRS WKT: (unknown) In-Reply-To: <18854439.post@talk.nabble.com> References: <18854439.post@talk.nabble.com> Message-ID: <4899CE0E.40607@pobox.com> FCampos wrote: > I?ve got a shape that in ogrinfo gives me: > > Layer SRS WKT: (unknown) > > > What can i do to put this shape ok ? FCampos, First, MapServer does not normally use the coordinate system information from shapefiles (or any other format). Instead you are normally expected to redefine the coordinate system in the .map file using a PROJECTION block. So I doubt you really need to do anything to the shapefile. However, if you do want to, for some reason, the coordinate system definition is just an ascii .prj file associated with the shapefile with a normal ESRI projection engine string (roughly like OGC Well Known Text). Just copy from some other source. If you have more specific needs I can provide more 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 jvanulde at nrcan.gc.ca Wed Aug 6 09:27:47 2008 From: jvanulde at nrcan.gc.ca (Van Ulden, Joost) Date: Wed, 6 Aug 2008 12:27:47 -0400 Subject: [mapserver-users] SLD parameter not cascaded (v5.2) Message-ID: <93DDA33D80985E47B134F2B953C56B7CD74631@s0-ott-x4.nrn.nrcan.gc.ca> Can someone verify that SLD parameters are not supposed to be passed on to a cascaded service. For example, I am requesting a cascaded layer with an SLD parameter as follows: ...&SLD=http://somerul/8321daf4-fb37-44d8-876b-d7860c4eda14.xml&RULE=DefaultStyle... ...the SLD does not get applied. On the other hand if I request the layer using the SLD parameter directly to the service (i.e. not through the cascading service) the SLD gets applied. Thanks again, _________________________________ Joost van Ulden Natural Resources Canada / Ressources Naturelles Canada 625 Robson Street / 625 rue Robson Vancouver, B.C. / Vancouver (C.B.) V6B 5J3 tel/t?l: 604.666.7525 fax/t?l?copieur: 604.666.1124 email / courriel: jvanulde at nrcan.gc.ca From Laurent.Saez at developpement-durable.gouv.fr Wed Aug 6 10:05:04 2008 From: Laurent.Saez at developpement-durable.gouv.fr (=?UTF-8?Q?=22SAEZ_Laurent_=2D_CETE_M=C3=A9diterr=2E=2FDI=2FETER=22?=) Date: Wed, 06 Aug 2008 19:05:04 +0200 Subject: [mapserver-users] WMS filter with PropertyIsLike/matchCase doesn't work Message-ID: <4899D9C0.9080707@developpement-durable.gouv.fr> Hi list, I have to make WMS and WFS CaseInsensitive requests. In this example I use a TAB file and I search a city with its name. I have a city called milla. In the TAB file the data is : Milla I have tried WMS request with filter/PropertyIsEqualTo/matchCase and it works fine ! http://localhost/cgi-bin/mapserv.exe?map=C:\mapfiles\casse_couche_locale.i2.map&&LAYERS=c_COMMUNE&SLD_BODY=%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3Ec_COMMUNE%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CFilter%3E%3CPropertyIsEqualTo%20matchCase=%22false%22%3E%3CPropertyName%3ENOM_COM%3C%2FPropertyName%3E%3CLiteral%3Emillas%3C%2FLiteral%3E%3C%2FPropertyIsEqualTo%3E%3C%2FFilter%3E%3CPolygonSymbolizer%3E%3CFill%3E%3CGraphicFill%3E%3CGraphic%3E%3CMark%3E%3CWellKnownName%3Ecross%3C%2FWellKnownName%3E%3CFill%3E%3CCssParameter%20name%3D%22fill%22%3E%23A5F38D%3C%2FCssParameter%3E%3C%2FFill%3E%3C%2FMark%3E%3CSize%3E8.0%3C%2FSize%3E%3C%2FGraphic%3E%3C%2FGraphicFill%3E%3C%2FFill%3E%3CStroke%3E%3CCssParameter%20name%3D%22stroke%22%3E%23A5F38D%3C%2FCssParameter%3E%3CCssParameter%20name%3D%22stroke-width%22%3E2.0%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FPolygonSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E&ISBASELAYER=false&TRANSPARENT=true&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A27582&BBOX=626217.0624999995,1746065.9749999996,627776.0875000004,1747105.3250000002&WIDTH=900&HEIGHT=600 But I need to use matchCase with PropertyIsLike. I have tried but I've nothing returned ! http://localhost/cgi-bin/mapserv.exe?map=C:\mapfiles\casse_couche_locale.i2.map&&LAYERS=c_COMMUNE&SLD_BODY=%3CStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3Ec_COMMUNE%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CFilter%3E%3CPropertyIsLike%20wildCard%3D%22*%22%20singleChar%3D%22%23%22%20escapeChar%3D%22!%22%20escape%3D%22!%22%20matchCase%3D%22false%22%3E%3CPropertyName%3ENOM_COM%3C%2FPropertyName%3E%3CLiteral%3E*milla*%3C%2FLiteral%3E%3C%2FPropertyIsLike%3E%3C%2FFilter%3E%3CPolygonSymbolizer%3E%3CFill%3E%3CGraphicFill%3E%3CGraphic%3E%3CMark%3E%3CWellKnownName%3Ecross%3C%2FWellKnownName%3E%3CFill%3E%3CCssParameter%20name%3D%22fill%22%3E%23A5F38D%3C%2FCssParameter%3E%3C%2FFill%3E%3C%2FMark%3E%3CSize%3E8.0%3C%2FSize%3E%3C%2FGraphic%3E%3C%2FGraphicFill%3E%3C%2FFill%3E%3CStroke%3E%3CCssParameter%20name%3D%22stroke%22%3E%23A5F38D%3C%2FCssParameter%3E%3CCssParameter%20name%3D%22stroke-width%22%3E2.0%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FPolygonSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E&ISBASELAYER=false&TRANSPARENT=true&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A27582&BBOX=626217.0624999995,1746065.9749999996,627776.0875000004,1747105.3250000002&WIDTH=900&HEIGHT=600 Is it normal ? Regards Laurent From Tim.Nolte at ipcswirelessinc.com Wed Aug 6 11:33:59 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Wed, 6 Aug 2008 14:33:59 -0400 Subject: [MAPSERVER-USERS] Road Lines with AGG In-Reply-To: <18853113.post@talk.nabble.com> References: <18828729.post@talk.nabble.com> <18853113.post@talk.nabble.com> Message-ID: Here is what I have used for PNG in the OUTPUFORMAT: # ================================================== # Image Output Definition # ================================================== OUTPUTFORMAT NAME png DRIVER "AGG/PNG" MIMETYPE "image/png" EXTENSION "png" IMAGEMODE RGB FORMATOPTION INTERLACE=ON FORMATOPTION QUALITY=90 END This has worked for me. Also, here is an example of a road layer: # ================================================== # Layer: US Small Scale Secondary Highways and Major Roads # ================================================== LAYER NAME "US Small Scale Secondary Highways and Major Roads" GROUP "Secondary Highways" STATUS ON TILEINDEX "us_streets/indexes/hwy_merge_index" TILEITEM "location" TYPE LINE SIZEUNITS PIXELS CLASSITEM "NCLASS" TEMPLATE "../mapserver/cgi-query-templates/ushwy.html" HEADER "../mapserver/cgi-query-templates/usshwy_mroad-header.html" FOOTER "../mapserver/cgi-query-templates/footer.html" TOLERANCE 5 TOLERANCEUNITS PIXELS # -------------------------------------------------- # Class: US Small Scale Secondary Highways and Major Roads, Scale 10 # -------------------------------------------------- CLASS #NAME "County Highways" EXPRESSION "A30" MINSCALE 1000000 MAXSCALE 3000000 STYLE SYMBOL "circle" COLOR 223 214 113 SIZE 1 END END # -------------------------------------------------- # Class: US Small Scale Secondary Highways and Major Roads, Scale 9 # -------------------------------------------------- CLASS #NAME "County Highways" EXPRESSION "A30" MINSCALE 500000 MAXSCALE 1000000 STYLE SYMBOL "circle" COLOR 192 192 91 SIZE 3 END STYLE SYMBOL "circle" COLOR 252 252 151 SIZE 1 END END END ---- Timothy J Nolte - tnolte at ilpcs.com 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: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Ritesh Ambastha > Sent: Wednesday, August 06, 2008 11:01 AM > To: mapserver-users at lists.osgeo.org > Subject: RE: [MAPSERVER-USERS] Road Lines with AGG > > > Still looking for a solution :( > > -Ritesh > > Nolte, Tim wrote: > > > > When you are using AGG for your output do not use antialias > true on your > > layers. > > > > - Tim > > > > ---- > > Timothy J Nolte - tnolte at ilpcs.com > > 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: mapserver-users-bounces at lists.osgeo.org > >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > >> Ritesh Ambastha > >> Sent: Tuesday, August 05, 2008 6:53 AM > >> To: mapserver-users at lists.osgeo.org > >> Subject: [MAPSERVER-USERS] Road Lines with AGG > >> > >> > >> http://www.nabble.com/file/p18828729/road.png > >> > >> In the map file, I have defined the imagetype and outputformat as: > >> > >> IMAGETYPE AGG > >> > >> OUTPUTFORMAT > >> NAME 'AGG' > >> DRIVER AGG/PNG > >> IMAGEMODE RGB > >> END > >> > >> My line layers are written with antialias as true. > >> > >> How can I correct the lines with more smoothness while > >> keeping the same > >> sharpness? > >> > >> Thanks, > >> Ritesh Ambastha > >> -- > >> View this message in context: > >> http://www.nabble.com/Road-Lines-with-AGG-tp18828729p18828729.html > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > >> _______________________________________________ > >> mapserver-users mailing list > >> mapserver-users at lists.osgeo.org > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > >> > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > > -- > View this message in context: > http://www.nabble.com/Road-Lines-with-AGG-tp18828729p18853113.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From bill.wordsworth at gmail.com Wed Aug 6 11:47:25 2008 From: bill.wordsworth at gmail.com (Bill Wordsworth) Date: Wed, 6 Aug 2008 14:47:25 -0400 Subject: [MAPSERVER-USERS] How to map attribute data (non-geom) from Oracle(not Spatial)? In-Reply-To: <1e07a2bd0808051301p389a7e80h3149874f0218cb58@mail.gmail.com> References: <1e07a2bd0808040928g4be5dd00v4fe72848387938b3@mail.gmail.com> <1e07a2bd0808050725i79bc98edsce08e4511cfd0e75@mail.gmail.com> <1e07a2bd0808051301p389a7e80h3149874f0218cb58@mail.gmail.com> Message-ID: <1e07a2bd0808061147v678f2419oc967e873e5021262@mail.gmail.com> http://www.oracle.com/technology/products/spatial/spatial_locator_features.html Shapefile Converter > SQL*Loader > MapServer Query? Is that all it takes? On Tue, Aug 5, 2008 at 4:01 PM, Bill Wordsworth wrote: > Tim, > I didn't know you could do "geom from..." without Oracle Spatial, so > this is great! > > This is my current compilation: > MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SWF 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=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > DEBUG=MSDEBUG > > I don't see any Oracle support. Could you shed some light on how to > enable that? And how do you insert geom into Oracle Locator without > Oracle Spatial- what tools? > > So as I understand, Oracle Spatial allows geoprocessing type queries > (buffer, nearest, shortest) while Oracle Locator doesn't allow any > thing that but does display geom (point, line, polygon, (raster)). > Correct?? I just want to take a shapefile, insert it and then display > its filtered set. > Cheers, Bill > > On Tue, Aug 5, 2008 at 10:38 AM, Nolte, Tim > wrote: >> Bill, >> >> Here is a layer definition I am using for Oracle Spatial(Locator) data. >> >> LAYER >> GROUP "Cell Sites" >> NAME "On-Air" >> TYPE POINT >> STATUS ON >> CONNECTIONTYPE oraclespatial >> CONNECTION "username/password at sid" >> PROCESSING "CLOSE_CONNECTION=DEFER" >> DATA "geom FROM (SELECT st.bts_nbr, sgt.geom FROM site_tab st, >> site_geom_tab sgt WHERE st.site_id = sgt.site_id AND st.site_status_id >> IN (4,7)) USING SRID 8307" >> LABELITEM "bts_nbr" >> METADATA >> "static_legend" "1" >> END >> DUMP true >> CLASS >> NAME "On-Air Large Scale" >> MINSCALE 0 >> MAXSCALE 1200000 >> STYLE >> SYMBOL "circle" >> COLOR 22 129 17 >> OUTLINECOLOR 255 255 255 >> SIZE 12 >> END >> LABEL >> TYPE TRUETYPE >> FONT "sans" >> SIZE 7 >> POSITION CR >> OFFSET 0 2 >> ANGLE AUTO >> BUFFER 3 >> MINDISTANCE 30 >> MINFEATURESIZE 10 >> COLOR 0 0 0 >> OUTLINECOLOR 245 245 231 >> SHADOWSIZE 3 3 >> BACKGROUNDSHADOWSIZE 1 -1 >> END >> END >> CLASS >> NAME "On-Air Small Scale" >> MINSCALE 1200000 >> MAXSCALE 6000000 >> STYLE >> SYMBOL "circle" >> COLOR 22 129 17 >> OUTLINECOLOR 255 255 255 >> SIZE 8 >> END >> END >> END >> >> The key here is that you need to have MapServer compiled with Oracle >> Spatial support. And you can see from my data line that that I do >> standard Oracle SQL statements for building my spatial results. I'm not >> using any shapefiles in this instance. The spatial data is actually >> stored right in the database table. There are tools to import shapefiles >> into Oracle. If your data is points you can build insert statements to >> populated your geometry columns. You're probably going to want to do >> some reading up on Oracle spatial. >> >> - Tim >> >> ---- >> Timothy J Nolte - tnolte at ilpcs.com >> 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: Bill Wordsworth [mailto:bill.wordsworth at gmail.com] >>> Sent: Tuesday, August 05, 2008 10:25 AM >>> To: Nolte, Tim; mapserver-users at lists.osgeo.org >>> Subject: Re: [MAPSERVER-USERS] How to map attribute data >>> (non-geom) from Oracle(not Spatial)? >>> >>> This is exciting news! I am using Oracle 10g and get Oracle Locator >>> free but how do I map data from Oracle Locator? Are you doing a >>> JOIN+FILTER? Can you share a LAYER snippet from your MAP file? >>> Cheers, Bill >> > From ritesh.linux at gmail.com Wed Aug 6 11:50:03 2008 From: ritesh.linux at gmail.com (riteshambastha) Date: Wed, 6 Aug 2008 11:50:03 -0700 (PDT) Subject: [MAPSERVER-USERS] Road Lines with AGG In-Reply-To: References: <18828729.post@talk.nabble.com> <18853113.post@talk.nabble.com> Message-ID: <18857318.post@talk.nabble.com> Hey Tim, Thanks for the code snippets :) But, whenever i use mimetype "image/png", i get an error while seeding the tiles. Any clues? Regards, Ritesh Nolte, Tim wrote: > > Here is what I have used for PNG in the OUTPUFORMAT: > > # ================================================== > # Image Output Definition > # ================================================== > OUTPUTFORMAT > NAME png > DRIVER "AGG/PNG" > MIMETYPE "image/png" > EXTENSION "png" > IMAGEMODE RGB > FORMATOPTION INTERLACE=ON > FORMATOPTION QUALITY=90 > END > > This has worked for me. Also, here is an example of a road layer: > > # ================================================== > # Layer: US Small Scale Secondary Highways and Major Roads > # ================================================== > LAYER > NAME "US Small Scale Secondary Highways and Major Roads" > GROUP "Secondary Highways" > STATUS ON > TILEINDEX "us_streets/indexes/hwy_merge_index" > TILEITEM "location" > TYPE LINE > SIZEUNITS PIXELS > CLASSITEM "NCLASS" > TEMPLATE "../mapserver/cgi-query-templates/ushwy.html" > HEADER "../mapserver/cgi-query-templates/usshwy_mroad-header.html" > FOOTER "../mapserver/cgi-query-templates/footer.html" > TOLERANCE 5 > TOLERANCEUNITS PIXELS > # -------------------------------------------------- > # Class: US Small Scale Secondary Highways and Major Roads, Scale 10 > # -------------------------------------------------- > CLASS > #NAME "County Highways" > EXPRESSION "A30" > MINSCALE 1000000 > MAXSCALE 3000000 > STYLE > SYMBOL "circle" > COLOR 223 214 113 > SIZE 1 > END > END > # -------------------------------------------------- > # Class: US Small Scale Secondary Highways and Major Roads, Scale 9 > # -------------------------------------------------- > CLASS > #NAME "County Highways" > EXPRESSION "A30" > MINSCALE 500000 > MAXSCALE 1000000 > STYLE > SYMBOL "circle" > COLOR 192 192 91 > SIZE 3 > END > STYLE > SYMBOL "circle" > COLOR 252 252 151 > SIZE 1 > END > END > END > > ---- > Timothy J Nolte - tnolte at ilpcs.com > 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: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Ritesh Ambastha >> Sent: Wednesday, August 06, 2008 11:01 AM >> To: mapserver-users at lists.osgeo.org >> Subject: RE: [MAPSERVER-USERS] Road Lines with AGG >> >> >> Still looking for a solution :( >> >> -Ritesh >> >> Nolte, Tim wrote: >> > >> > When you are using AGG for your output do not use antialias >> true on your >> > layers. >> > >> > - Tim >> > >> > ---- >> > Timothy J Nolte - tnolte at ilpcs.com >> > 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: mapserver-users-bounces at lists.osgeo.org >> >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> >> Ritesh Ambastha >> >> Sent: Tuesday, August 05, 2008 6:53 AM >> >> To: mapserver-users at lists.osgeo.org >> >> Subject: [MAPSERVER-USERS] Road Lines with AGG >> >> >> >> >> >> http://www.nabble.com/file/p18828729/road.png >> >> >> >> In the map file, I have defined the imagetype and outputformat as: >> >> >> >> IMAGETYPE AGG >> >> >> >> OUTPUTFORMAT >> >> NAME 'AGG' >> >> DRIVER AGG/PNG >> >> IMAGEMODE RGB >> >> END >> >> >> >> My line layers are written with antialias as true. >> >> >> >> How can I correct the lines with more smoothness while >> >> keeping the same >> >> sharpness? >> >> >> >> Thanks, >> >> Ritesh Ambastha >> >> -- >> >> View this message in context: >> >> http://www.nabble.com/Road-Lines-with-AGG-tp18828729p18828729.html >> >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Road-Lines-with-AGG-tp18828729p18853113.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Road-Lines-with-AGG-tp18828729p18857318.html Sent from the Mapserver - User mailing list archive at Nabble.com. From boolean10001 at yahoo.com Wed Aug 6 11:53:55 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Wed, 6 Aug 2008 11:53:55 -0700 (PDT) Subject: [mapserver-users] About labeling Message-ID: <9570.4986.qm@web38201.mail.mud.yahoo.com> I have a layer wich contains the street names, and i want to display it. Then, system crashes saying that CGI / FastCGI detected a problem and it must close. The error signature throws this: szAppName : php-cgi.exe???? szAppVer : 5.2.5.5???? szModName : libmap.dll???? szModVer : 0.0.0.0???? offset : 0002fded???? So, i was wondering why ... and then, i noticed this: I'm showing an embeded scalebar, so i need to call the drawLabelCache method to render it. $img = $map->draw(); $map->embedScalebar($img); $map->drawLabelCache($img); Then, my street names layer looks like this: LAYER ??? NAME "streetnames" ??? CONNECTION "..." ??? CONNECTIONTYPE POSTGIS ??? DATA "the_geom from streetnames" ??? STATUS OFF ??? TYPE POINT ??? TRANSPARENCY 100 ??? LABELITEM "textstring" ??? CLASS ??? ??? LABEL ??? ??? ??? FONT "arial" ??? ??? ??? TYPE TRUETYPE ??? ??? ??? COLOR 255 128 0 ??? ??? ??? OUTLINECOLOR 255 255 255 ??? ??? ??? SIZE 5 ??? ??? ??? ANGLE [text_angle] ??? ??? ??? PARTIALS FALSE ??? ??? END ??? END ??? MINSCALE 0 ??? MAXSCALE 10000 END Then I added within the LAYER section the tag LABELCACHE OFF, and it works just fine. Without seeing source code I figure that maybe the LabelCache pointers are to few, isn't ? Or someone know what else could be happening ? IC Carlos Ruiz? -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric.c2c at gmail.com Wed Aug 6 12:01:50 2008 From: eric.c2c at gmail.com (Eric Lemoine) Date: Wed, 6 Aug 2008 21:01:50 +0200 Subject: [MAPSERVER-USERS] Mapserver bug when generating a tiled map with MapFish In-Reply-To: References: <18813432.post@talk.nabble.com> <5ec103de0808060544j1e7c30c5qea0b5a5e01d90dd@mail.gmail.com> Message-ID: <5ec103de0808061201u70e3a16dy427d350148aa1e1c@mail.gmail.com> Hi. Do you have maxExtent set in your map options? OpenLayers shouldn't request tiles outside the max extent. If it does it's a bug in OpenLayers. Another guestion: what layer type do you use? Layer.MapServer or Layer.WMS? If you use the former, make mapserver work as a WMS server and try using Layer.WMS to see if that fixes the problem. Again the ideal would be some example so that we con easily reproduce your problem. Eric 2008/8/6, Pierre-Benoit Besse : > Unfortunately there is no connection to internet on the platform I develop > on. All is done localy. > > I will try to be more precise. > I am trying to display a shapefile representing the whole world (it's a > shapefile from Global Insight plus if it helps). I use mapfish without > 'singleTile: true' so the layer is generated by tiles. > > There is no problem in the beggining when the map is zoomed to max extent. > > The problem occurs when I begin zooming in and trying to display > America/Asia. One of the "colums" of tiles is drawn across the -180?/+180? > longitude line, and those tiles are generated entirely blank (white, not > even transparent). > > When I get the properties of the image (right-click on the blank tile -> > Properties) and I search in the "Location" of the image I can find : > mapext=179.296875+44.296875+*225.703125* > +90.703125&imgext=179.296875+44.296875+*225.703125*+90.703125 > So I guess the problem comes from that, MapServer doesn't recognise > longitude greater than 180 or lower than -180. > If I'm right I would appreciate any hint on how to handle this... > > Otherwise it may be a mapfish issue, maybe mapfish should always generate > tiles with borders right on -180 / +180. This is the case at the beggining, > lef tile has mapext=90+0+180+90 and right tile has mapext=-180+0+-90+90. > But whenever I begin zooming in it goes awry, the border of tiles is no > longer right on -180/+180 and some tiles are generated white by MapServer. > > If someone needs more informations I'm ready to give it. > > Best regards, > > PB > > 2008/8/6 Eric Lemoine > >> On Wed, Aug 6, 2008 at 2:28 PM, Pierre-Benoit Besse >> wrote: >> > Isn't there anyone to help me with this ? >> > >> > 2008/8/4 Faldor >> >> >> >> Hi all, >> >> >> >> I use Mapserver with mapfish for the client side to display shapefiles >> >> which >> >> I generated using ogr2ogr. >> >> >> >> The problem is when I try to display a tiled layer (mapfish singleTile >> >> property set to 'false'). Some tiles are generated by mapserver >> >> entirely >> >> blank ! >> >> >> >> After a few researches I think it is due to the fact that those tiles >> are >> >> extended "across" the -180?/+180? line. >> >> For exemple, here is the imgext property from one of the calls to >> >> MapServer >> >> which render a blank tile : >> >> imgext=178.59375+-1.40625+271.40625+91.40625 >> >> >> >> Do you know of a way to fix this ? >> >> This is not enough information for anyone to help you. Could you >> provide a link or a web page to help people see what's going on? >> >> -- >> Eric >> > From Tim.Nolte at ipcswirelessinc.com Wed Aug 6 12:20:23 2008 From: Tim.Nolte at ipcswirelessinc.com (Nolte, Tim) Date: Wed, 6 Aug 2008 15:20:23 -0400 Subject: [MAPSERVER-USERS] How to map attribute data (non-geom) fromOracle(not Spatial)? In-Reply-To: <1e07a2bd0808061147v678f2419oc967e873e5021262@mail.gmail.com> References: <1e07a2bd0808040928g4be5dd00v4fe72848387938b3@mail.gmail.com><1e07a2bd0808050725i79bc98edsce08e4511cfd0e75@mail.gmail.com><1e07a2bd0808051301p389a7e80h3149874f0218cb58@mail.gmail.com> <1e07a2bd0808061147v678f2419oc967e873e5021262@mail.gmail.com> Message-ID: Bill, You got it. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com 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: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Bill Wordsworth > Sent: Wednesday, August 06, 2008 2:47 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [MAPSERVER-USERS] How to map attribute data > (non-geom) fromOracle(not Spatial)? > > http://www.oracle.com/technology/products/spatial/spatial_loca > tor_features.html > > Shapefile Converter > SQL*Loader > MapServer Query? Is that > all it takes? > > On Tue, Aug 5, 2008 at 4:01 PM, Bill Wordsworth > wrote: > > Tim, > > I didn't know you could do "geom from..." without Oracle Spatial, so > > this is great! > > > > This is my current compilation: > > MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP > > OUTPUT=PDF OUTPUT=SWF 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=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > DEBUG=MSDEBUG > > > > I don't see any Oracle support. Could you shed some light on how to > > enable that? And how do you insert geom into Oracle Locator without > > Oracle Spatial- what tools? > > > > So as I understand, Oracle Spatial allows geoprocessing type queries > > (buffer, nearest, shortest) while Oracle Locator doesn't allow any > > thing that but does display geom (point, line, polygon, (raster)). > > Correct?? I just want to take a shapefile, insert it and > then display > > its filtered set. > > Cheers, Bill > > > > On Tue, Aug 5, 2008 at 10:38 AM, Nolte, Tim > > wrote: > >> Bill, > >> > >> Here is a layer definition I am using for Oracle > Spatial(Locator) data. > >> > >> LAYER > >> GROUP "Cell Sites" > >> NAME "On-Air" > >> TYPE POINT > >> STATUS ON > >> CONNECTIONTYPE oraclespatial > >> CONNECTION "username/password at sid" > >> PROCESSING "CLOSE_CONNECTION=DEFER" > >> DATA "geom FROM (SELECT st.bts_nbr, sgt.geom FROM site_tab st, > >> site_geom_tab sgt WHERE st.site_id = sgt.site_id AND > st.site_status_id > >> IN (4,7)) USING SRID 8307" > >> LABELITEM "bts_nbr" > >> METADATA > >> "static_legend" "1" > >> END > >> DUMP true > >> CLASS > >> NAME "On-Air Large Scale" > >> MINSCALE 0 > >> MAXSCALE 1200000 > >> STYLE > >> SYMBOL "circle" > >> COLOR 22 129 17 > >> OUTLINECOLOR 255 255 255 > >> SIZE 12 > >> END > >> LABEL > >> TYPE TRUETYPE > >> FONT "sans" > >> SIZE 7 > >> POSITION CR > >> OFFSET 0 2 > >> ANGLE AUTO > >> BUFFER 3 > >> MINDISTANCE 30 > >> MINFEATURESIZE 10 > >> COLOR 0 0 0 > >> OUTLINECOLOR 245 245 231 > >> SHADOWSIZE 3 3 > >> BACKGROUNDSHADOWSIZE 1 -1 > >> END > >> END > >> CLASS > >> NAME "On-Air Small Scale" > >> MINSCALE 1200000 > >> MAXSCALE 6000000 > >> STYLE > >> SYMBOL "circle" > >> COLOR 22 129 17 > >> OUTLINECOLOR 255 255 255 > >> SIZE 8 > >> END > >> END > >> END > >> > >> The key here is that you need to have MapServer compiled > with Oracle > >> Spatial support. And you can see from my data line that that I do > >> standard Oracle SQL statements for building my spatial > results. I'm not > >> using any shapefiles in this instance. The spatial data is actually > >> stored right in the database table. There are tools to > import shapefiles > >> into Oracle. If your data is points you can build insert > statements to > >> populated your geometry columns. You're probably going to > want to do > >> some reading up on Oracle spatial. > >> > >> - Tim > >> > >> ---- > >> Timothy J Nolte - tnolte at ilpcs.com > >> 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: Bill Wordsworth [mailto:bill.wordsworth at gmail.com] > >>> Sent: Tuesday, August 05, 2008 10:25 AM > >>> To: Nolte, Tim; mapserver-users at lists.osgeo.org > >>> Subject: Re: [MAPSERVER-USERS] How to map attribute data > >>> (non-geom) from Oracle(not Spatial)? > >>> > >>> This is exciting news! I am using Oracle 10g and get > Oracle Locator > >>> free but how do I map data from Oracle Locator? Are you doing a > >>> JOIN+FILTER? Can you share a LAYER snippet from your MAP file? > >>> Cheers, Bill > >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From efujioka at duke.edu Wed Aug 6 14:23:01 2008 From: efujioka at duke.edu (Ei Fujioka) Date: Wed, 06 Aug 2008 17:23:01 -0400 Subject: [mapserver-users] Horizontal line appears at the edge with circle symbol In-Reply-To: <20080806185007.2A19B12A80B6@lists.osgeo.org> References: <20080806185007.2A19B12A80B6@lists.osgeo.org> Message-ID: <489A1635.1070700@duke.edu> Dear experts, I'm upgrading Mapserver from 4.2 to 5.2 and experiencing a very annoying problem. There appears a horizontal line at the edge of the map drawn by Mapserver 5.2 when the symbol is set to "circle". This didn't happen with Mapserver 4.2. When I change the symbol to "square", the line doesn't appear. I've tried various settings (e.g. SIZE, ANGLE, ANTIALIAS etc.) with no luck. Does anyone have any idea what's wrong with it? ** Examples: ** Mapserver 5.2 with circle symbol: http://seamap-dev.env.duke.edu/seamap2/main/seamap2_gm.php?sid=horizontal_line_with_circle&mode=draw_map&outputformat=PNG24&layer_name=dist_sp_01deg&layer_type=point&mapsize=256%2B256&mapext=-90%2C27.059125784374068%2C-84.375%2C31.95216223802497 Mapserver 5.2 with square symbol: http://seamap-dev.env.duke.edu/seamap2/main/seamap2_gm.php?sid=no_line_with_square&mode=draw_map&outputformat=PNG24&layer_name=dist_sp_01deg&layer_type=point&mapsize=256%2B256&mapext=-90%2C27.059125784374068%2C-84.375%2C31.95216223802497 ** Mapserver info. ** ./mapserv -v MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ** Mapfile exerpt ** MAP EXTENT -20001364 -15000982 20001253 15000982 IMAGECOLOR 255 255 255 IMAGETYPE gif SYMBOLSET "/var/www/seamap2/map/symbolset.map" SHAPEPATH "/data/shapefiles/" SIZE 256 256 STATUS ON TRANSPARENT TRUE UNITS DD NAME "SEAMAP ONLINE MAPPER" PROJECTION "init=epsg:54004" END LAYER CLASSITEM "_sp_tsn" CONNECTION "host=***" CONNECTIONTYPE POSTGIS DATA "_geom from (***) ***" NAME "zd_35" PROJECTION "init=epsg:4326" END STATUS ON TOLERANCE 0.1 TYPE POINT CLASS NAME "Anatidae" EXPRESSION "174983" STYLE ANGLE 360 COLOR 255 255 0 OPACITY 50 OUTLINECOLOR 0 0 0 SIZE 9 SYMBOL "circle" : annoying horizontal line appears #SYMBOL "square" : when square is used, no horizontal line END TITLE "174983" END ... -- ====================== Ei Fujioka Research Associate Duke University (919) 613-8021 efujioka at duke.edu ====================== From woodbri at swoodbridge.com Wed Aug 6 15:50:08 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 06 Aug 2008 17:50:08 -0500 Subject: [mapserver-users] Horizontal line appears at the edge with circle symbol In-Reply-To: <489A1635.1070700@duke.edu> References: <20080806185007.2A19B12A80B6@lists.osgeo.org> <489A1635.1070700@duke.edu> Message-ID: <489A2AA0.8030504@swoodbridge.com> This is a know bug. I think it is: http://trac.osgeo.org/mapserver/ticket/1719 -Steve W Ei Fujioka wrote: > Dear experts, > > I'm upgrading Mapserver from 4.2 to 5.2 and experiencing a very annoying > problem. > > There appears a horizontal line at the edge of the map drawn by > Mapserver 5.2 when the symbol is set to "circle". This didn't happen > with Mapserver 4.2. > When I change the symbol to "square", the line doesn't appear. > > I've tried various settings (e.g. SIZE, ANGLE, ANTIALIAS etc.) with no > luck. > > Does anyone have any idea what's wrong with it? > > ** Examples: ** > Mapserver 5.2 with circle symbol: > http://seamap-dev.env.duke.edu/seamap2/main/seamap2_gm.php?sid=horizontal_line_with_circle&mode=draw_map&outputformat=PNG24&layer_name=dist_sp_01deg&layer_type=point&mapsize=256%2B256&mapext=-90%2C27.059125784374068%2C-84.375%2C31.95216223802497 > > > Mapserver 5.2 with square symbol: > http://seamap-dev.env.duke.edu/seamap2/main/seamap2_gm.php?sid=no_line_with_square&mode=draw_map&outputformat=PNG24&layer_name=dist_sp_01deg&layer_type=point&mapsize=256%2B256&mapext=-90%2C27.059125784374068%2C-84.375%2C31.95216223802497 > > > ** Mapserver info. ** > ./mapserv -v > MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > ** Mapfile exerpt ** > > MAP > EXTENT -20001364 -15000982 20001253 15000982 > IMAGECOLOR 255 255 255 > IMAGETYPE gif > SYMBOLSET "/var/www/seamap2/map/symbolset.map" > SHAPEPATH "/data/shapefiles/" > SIZE 256 256 > STATUS ON > TRANSPARENT TRUE > UNITS DD > NAME "SEAMAP ONLINE MAPPER" > PROJECTION > "init=epsg:54004" > END > > LAYER > CLASSITEM "_sp_tsn" > CONNECTION "host=***" > CONNECTIONTYPE POSTGIS > DATA "_geom from (***) ***" > NAME "zd_35" > PROJECTION > "init=epsg:4326" > END > STATUS ON > TOLERANCE 0.1 > TYPE POINT > CLASS > NAME "Anatidae" > EXPRESSION "174983" > STYLE > ANGLE 360 > COLOR 255 255 0 > OPACITY 50 > OUTLINECOLOR 0 0 0 > SIZE 9 > SYMBOL "circle" : annoying horizontal line appears > #SYMBOL "square" : when square is used, no horizontal line > END > TITLE "174983" > END > ... > > From woodbri at swoodbridge.com Wed Aug 6 15:59:37 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 06 Aug 2008 17:59:37 -0500 Subject: [mapserver-users] Topo Maps Message-ID: <489A2CD9.3080008@swoodbridge.com> Hi all, Sorry for the cross posting, but this was new to me and I thought other here might be interested. http://www.kk.org/cooltools/archives/002970.php Enjoy, -Steve W From mgleahy at alumni.uwaterloo.ca Wed Aug 6 18:14:07 2008 From: mgleahy at alumni.uwaterloo.ca (Mike Leahy) Date: Thu, 07 Aug 2008 13:14:07 +1200 Subject: [mapserver-users] Projection of shape objects in MapScript Message-ID: <489A4C5F.6060904@alumni.uwaterloo.ca> Hello, I have what I hope is an easy question: when I extract shapes from query results in PHP MapScript, what projection would the shape be in? The map object usually has its own projection defined, as can the layer object...and then there's the data source itself (presumably the same as the layer object). So if I produce WKT from the shapeObj::toWkt() function, which reference system will the coordinates be in? I know I could figure this out on my own through experimentation, but I'm hoping someone already knows the answer. If it's in the documentation, then I've missed it...and I didn't turn anything up with a few web searches. Thanks for any help, Mike From srph124 at yahoo.com Thu Aug 7 00:09:27 2008 From: srph124 at yahoo.com (Saka Royban) Date: Thu, 7 Aug 2008 00:09:27 -0700 (PDT) Subject: [mapserver-users] Arabic-Farsi-Hebrew support? In-Reply-To: <4898767A.8030501@swoodbridge.com> Message-ID: <9236.27042.qm@web58214.mail.re3.yahoo.com> Thanks stephen for your kind help. I'm thinking on a solution of using mapscript. i don't know whether it is true or not. using mapscript, getting the label positions from it and then compling labels in programming language,finally giving the result?as an image to mapscript to show?iton top?of other layers. because i haven't use mapsript up to know, i'm not sure about it. Do you think it works? --- On Tue, 8/5/08, Stephen Woodbridge wrote: From: Stephen Woodbridge Subject: Re: [mapserver-users] Arabic-Farsi-Hebrew support? To: srph124 at yahoo.com Cc: "MapServer" Date: Tuesday, August 5, 2008, 8:49 AM Saka, You probably need to check on the MS4W list to be sure, but I did file a bug for this support and I think the ticket was closed so it should be supported, but you will probably need one of the most recent ones and I'm not sure if the change has been released yet. Check with MS4W for the status on this or read the release notes which are sure to mention it. -Steve W Saka Royban wrote: > > Thanks Stephen > sorry about gettext. I was mensioning this in CartoWeb mailinglist > implemented on Mapserver. forgetting to remove it. > as i understand, you say i can use mapserever 5.2 and it has support of > this by fribidi2. because i use MS4W with no building from scratch, i'm > asking this question. > Thanks again for your help > > --- On *Mon, 8/4/08, Stephen Woodbridge //* wrote: > > From: Stephen Woodbridge > Subject: Re: [mapserver-users] Arabic-Farsi-Hebrew support? > To: "Saka Royban" > Cc: mapserver-users at lists.osgeo.org > Date: Monday, August 4, 2008, 9:15 AM > > Saka Royban wrote: > > > > Hi all. > > I'm new to Mapserver. I want to know if Mapserver is able to handle > > Arabic-Farsi(Persian) and Hebrew correctly (using gettext). In these > > languages letter join to each other to form a word not like others which > > letters are separate with no problem. also they are written right to > > left not left to right. This is an important point for labeling. > > Searching nabble.com, i found a post some months ago discussing around > > this problem and associated ticket. That would be my pleasure to know > > the result if any knows. > > Thanks in advance > > Well, I'm not sure about "gettext" part of your question, but > with > Release 5.2 you can now build with fribidi2 support and render labels > with shaping in Arabic-Farsi(Persian) and Hebrew correctly provided you > have a truetype font that supports all the unicode shape characters. > > -Steve W > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at nexus.dk Thu Aug 7 00:20:30 2008 From: peter at nexus.dk (Peter Falk) Date: Thu, 07 Aug 2008 09:20:30 +0200 Subject: [mapserver-users] GPS to GIS Message-ID: <489AA23E.9020607@nexus.dk> Hi David, Yes I know i was a bit vague. What I need is a simple function, that can turn a point in GPS - a lattitude and a logitude value - into a point in GIS. I.e. I got these coordinate: GPS: N: 54.9809 E: 8.86707 that applies to GIS: X: 491055.41 Y: 6092507.928 What I need is the correlation between the two. Regards Peter From vtammineni at roulacglobal.com Thu Aug 7 00:32:52 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 7 Aug 2008 13:02:52 +0530 Subject: [mapserver-users] GPS to GIS In-Reply-To: <489AA23E.9020607@nexus.dk> References: <489AA23E.9020607@nexus.dk> Message-ID: <006601c8f85f$cf0df880$6d29e980$@com> Hi, Is it into database? Which data base you are using ? http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData please above url. You will get some idea about placing points on the map. Thanks and Regards Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Peter Falk Sent: Thursday, August 07, 2008 12:51 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] GPS to GIS Hi David, Yes I know i was a bit vague. What I need is a simple function, that can turn a point in GPS - a lattitude and a logitude value - into a point in GIS. I.e. I got these coordinate: GPS: N: 54.9809 E: 8.86707 that applies to GIS: X: 491055.41 Y: 6092507.928 What I need is the correlation between the two. Regards Peter _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From vtammineni at roulacglobal.com Thu Aug 7 00:38:15 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 7 Aug 2008 13:08:15 +0530 Subject: [mapserver-users] GPS to GIS In-Reply-To: <489AA23E.9020607@nexus.dk> References: <489AA23E.9020607@nexus.dk> Message-ID: <006701c8f860$8f579650$ae06c2f0$@com> Hi, Can you check this url http://www.expertgps.com/help/cmd-export-waypoints.asp http://www.nps.gov/gis/gps/gps4gis/export.html Thanks and Regards Venkat. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Peter Falk Sent: Thursday, August 07, 2008 12:51 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] GPS to GIS Hi David, Yes I know i was a bit vague. What I need is a simple function, that can turn a point in GPS - a lattitude and a logitude value - into a point in GIS. I.e. I got these coordinate: GPS: N: 54.9809 E: 8.86707 that applies to GIS: X: 491055.41 Y: 6092507.928 What I need is the correlation between the two. Regards Peter _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Albrecht.Weiser at hzd.hessen.de Thu Aug 7 00:00:16 2008 From: Albrecht.Weiser at hzd.hessen.de (Albrecht.Weiser at hzd.hessen.de) Date: Thu, 7 Aug 2008 09:00:16 +0200 Subject: [mapserver-users] How do i define my SLD inside the mapfile? Message-ID: Hi mapserver list, i need to style my map project with SLD. But because using a special client which doesn't support a whole request with &SLD=http://placeofmysld/..... i have to put the reference to the SLD inside my mapfile. I was researching a way, but the only thing i found was a method to do it in the METADATA element when binding a remote wms. But thats no way - to create a separate wms and bind it in another one because that slows down the map creation drastic. Is there another way to define my SLD inside the map file? Thanks Albrecht -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Thu Aug 7 00:51:49 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Thu, 7 Aug 2008 09:51:49 +0200 (CEST) Subject: [mapserver-users] How do i define my SLD inside the mapfile? In-Reply-To: References: Message-ID: <55298.145.50.39.11.1218095509.squirrel@webmail.hostingdiscounter.nl> No you can't use an SLD directly in a WMS server MAP file. What I normally do is apply the SLD to the MAP file using a simple PHP script: #!/bin/sh sudo -u apache php -f $0 $*; exit $? \n"; echo "\n"; echo "Applies the SLD url to the layers in the MAP file\n"; echo "\n"; exit(1); } $oMap = ms_newMapObj($argv[1]); $oMap->applySLDURL($argv[2]); $oMap->save($argv[3]); echo "Output saved to $argv[3]\n"; ?> Best regards, Bart > Hi mapserver list, > i need to style my map project with SLD. But because using a special > client which doesn't support a whole request with > &SLD=http://placeofmysld/..... i have to put the reference to the SLD > inside my mapfile. I was researching a way, but the only thing i found > was a method to do it in the METADATA element when binding a remote wms. > But thats no way - to create a separate wms and bind it in another one > because that slows down the map creation drastic. Is there another way > to define my SLD inside the map file? > Thanks > Albrecht > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From bea at ixsea.com Thu Aug 7 00:40:00 2008 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Thu, 7 Aug 2008 09:40:00 +0200 Subject: [mapserver-users] GPS to GIS In-Reply-To: <489AA23E.9020607@nexus.dk> References: <489AA23E.9020607@nexus.dk> Message-ID: <1C578C3F8B7C43ECB09CA429664D1F43@ixsea.local> Hi Peter, What do you mean with 'GIS' coordinates ? For me, GIS means Geographic Information System and is a very common term. Looking at your 'GIS' coordinates I would say that your GIS coordinate system is a UTM 32 coordinate system. And in your case, you could use cs2cs (http://proj.maptools.org/man_cs2cs.html) in order to make the translation. cs2cs.exe +proj=latlong +datum=WGS84 +to +proj=utm +zone=32 +datum=WGS84 -r input : 54.9808N 8.86707E output : 491492.61 6092662.95 0.00 The results are not exactly accurate with yours but they are close enough to me (by what ? 600 meters ? ^^). I hope it will help. Regards, Beno?t Andrieu ----- Original Message ----- From: "Peter Falk" To: Sent: Thursday, August 07, 2008 9:20 AM Subject: [mapserver-users] GPS to GIS > Hi David, > > Yes I know i was a bit vague. What I need is a simple function, that can > turn a point in GPS - a lattitude and a logitude value - into a point in > GIS. > > I.e. I got these coordinate: > GPS: N: 54.9809 E: 8.86707 > > that applies to > > GIS: X: 491055.41 Y: 6092507.928 > > What I need is the correlation between the two. > > Regards > Peter > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Albrecht.Weiser at hzd.hessen.de Thu Aug 7 02:25:02 2008 From: Albrecht.Weiser at hzd.hessen.de (Albrecht.Weiser at hzd.hessen.de) Date: Thu, 7 Aug 2008 11:25:02 +0200 Subject: AW: [mapserver-users] How do i define my SLD inside the mapfile? In-Reply-To: <55298.145.50.39.11.1218095509.squirrel@webmail.hostingdiscounter.nl> References: <55298.145.50.39.11.1218095509.squirrel@webmail.hostingdiscounter.nl> Message-ID: Hi Bart, what a luck that there's a workaround. Unluckily i'm not a php crack :o/ Could you please tell in a few catchwords how to apply the script? Thanks Albrecht > -----Urspr?ngliche Nachricht----- > Von: bartvde at osgis.nl [mailto:bartvde at osgis.nl] > Gesendet: Donnerstag, 7. August 2008 09:52 > An: Weiser, Albrecht (HZD) > Cc: mapserver-users at lists.osgeo.org > Betreff: Re: [mapserver-users] How do i define my SLD inside > the mapfile? > > No you can't use an SLD directly in a WMS server MAP file. > > What I normally do is apply the SLD to the MAP file using a simple PHP > script: > > #!/bin/sh > sudo -u apache php -f $0 $*; exit $? > > > if ($argc != 4) { > echo "Usage: applysldurl.php file>\n"; > echo "\n"; > echo "Applies the SLD url to the layers in the MAP file\n"; > echo "\n"; > exit(1); > } > > $oMap = ms_newMapObj($argv[1]); > $oMap->applySLDURL($argv[2]); > $oMap->save($argv[3]); > > echo "Output saved to $argv[3]\n"; > > ?> > > Best regards, > Bart From bartvde at osgis.nl Thu Aug 7 02:34:31 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Thu, 7 Aug 2008 11:34:31 +0200 (CEST) Subject: AW: [mapserver-users] How do i define my SLD inside the mapfile? In-Reply-To: References: <55298.145.50.39.11.1218095509.squirrel@webmail.hostingdiscounter.nl> Message-ID: <14438.145.50.39.11.1218101671.squirrel@webmail.hostingdiscounter.nl> Hi Albrecht, you can run the script like: php -d safe_mode=off /data/geoservices/scripts/applysldurl.php /data/OGC_UMN_services/kerngisnat_utre.map http://145.50.148.45/nu.sld ~bart/kgnat_svn2/services/kerngisnat_utre.map.new Make sure the paths to your input and output MAP file are absolute, and read the SLD from a webserver. Btw, Mapserver matches the NamedLayers from the SLD to the NAME of the LAYER in the MAP file, so they have to be the same for it to work properly. This will generate CLASSes for your layers in the MAP file. Best regards, Bart > Hi Bart, > what a luck that there's a workaround. Unluckily i'm not a php crack :o/ > Could you please tell in a few catchwords how to apply the script? > Thanks > Albrecht > >> -----Urspr?ngliche Nachricht----- >> Von: bartvde at osgis.nl [mailto:bartvde at osgis.nl] >> Gesendet: Donnerstag, 7. August 2008 09:52 >> An: Weiser, Albrecht (HZD) >> Cc: mapserver-users at lists.osgeo.org >> Betreff: Re: [mapserver-users] How do i define my SLD inside >> the mapfile? >> >> No you can't use an SLD directly in a WMS server MAP file. >> >> What I normally do is apply the SLD to the MAP file using a simple PHP >> script: >> >> #!/bin/sh >> sudo -u apache php -f $0 $*; exit $? >> >> > >> if ($argc != 4) { >> echo "Usage: applysldurl.php > file>\n"; >> echo "\n"; >> echo "Applies the SLD url to the layers in the MAP file\n"; >> echo "\n"; >> exit(1); >> } >> >> $oMap = ms_newMapObj($argv[1]); >> $oMap->applySLDURL($argv[2]); >> $oMap->save($argv[3]); >> >> echo "Output saved to $argv[3]\n"; >> >> ?> >> >> Best regards, >> Bart > From peter at nexus.dk Thu Aug 7 02:35:15 2008 From: peter at nexus.dk (Peter Falk) Date: Thu, 07 Aug 2008 11:35:15 +0200 Subject: [mapserver-users] GPS to GIS In-Reply-To: <1C578C3F8B7C43ECB09CA429664D1F43@ixsea.local> References: <489AA23E.9020607@nexus.dk> <1C578C3F8B7C43ECB09CA429664D1F43@ixsea.local> Message-ID: <489AC1D3.3030800@nexus.dk> Hi Guys, Thanks for your input. It's been a great help. The fact that I'm now aware of the translation - from WGS84 to UTM Zone 32 - has narrowed the problem down. Peter Beno?t Andrieu skrev: > Hi Peter, > > What do you mean with 'GIS' coordinates ? > > For me, GIS means Geographic Information System and is a very common > term. > Looking at your 'GIS' coordinates I would say that your GIS coordinate > system is a UTM 32 coordinate system. > > And in your case, you could use cs2cs > (http://proj.maptools.org/man_cs2cs.html) in order to make the > translation. > > cs2cs.exe +proj=latlong +datum=WGS84 +to +proj=utm +zone=32 > +datum=WGS84 -r > input : 54.9808N 8.86707E > output : 491492.61 6092662.95 0.00 > > The results are not exactly accurate with yours but they are close > enough to me (by what ? 600 meters ? ^^). > > I hope it will help. > > Regards, > Beno?t Andrieu > > ----- Original Message ----- From: "Peter Falk" > To: > Sent: Thursday, August 07, 2008 9:20 AM > Subject: [mapserver-users] GPS to GIS > > >> Hi David, >> >> Yes I know i was a bit vague. What I need is a simple function, that >> can turn a point in GPS - a lattitude and a logitude value - into a >> point in GIS. >> >> I.e. I got these coordinate: >> GPS: N: 54.9809 E: 8.86707 >> >> that applies to >> >> GIS: X: 491055.41 Y: 6092507.928 >> >> What I need is the correlation between the two. >> >> Regards >> Peter >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Med venlig hilsen Peter Falk Nexus Kommunikation ?stre Messegade 2 2650 Hvidovre 36 77 00 46 www.nexus.dk From beckjoh at knology.net Thu Aug 7 03:25:28 2008 From: beckjoh at knology.net (John Beck) Date: Thu, 7 Aug 2008 05:25:28 -0500 Subject: [mapserver-users] drawing a north arrow on a map Message-ID: <550D514A97C64441A713111CB013B852@BeckPC> Dear list, I'm hoping someone can help me. Following the instructions in the wiki, I am trying to add a north arrow to a map. I've got a basic north arrow image (north.gif), I've added a pixmap symbol referencing it, and I've added a layer to the map.However, the GIF never shows. I've tried this in both a mapscript app and the basic Itasca demo, same result. I know there is nothing wrong with the GIF or symbol definition. I found one solution in which a empty STYLE object that was needed but I am not sure how to implement. Can anyone help? > > SYMBOL #North Arrow > > NAME "northarrow1" > > TYPE pixmap > > IMAGE "north.gif" > > END > > > > LAYER > > NAME "North Arrow" > > STATUS DEFAULT > > TRANSFORM FALSE > > TYPE POINT > > FEATURE > > POINTS 250 250 END > > END > > CLASS > > SYMBOL 'north' > > END > > END > > > > Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From group.ritesh at gmail.com Thu Aug 7 04:05:14 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Thu, 7 Aug 2008 04:05:14 -0700 (PDT) Subject: [MAPSERVER-USERS] drawing a north arrow on a map In-Reply-To: <550D514A97C64441A713111CB013B852@BeckPC> References: <550D514A97C64441A713111CB013B852@BeckPC> Message-ID: <18868108.post@talk.nabble.com> Use the proper symbol name as: Layer ----style -------symbol 'symbol_name' ----end end regards, Ritesh fastturtle wrote: > > Dear list, > I'm hoping someone can help me. > Following the instructions in the wiki, I am trying to add a north > arrow to a map. I've got a basic north arrow image (north.gif), > I've added a pixmap symbol referencing it, and I've added a layer to the > map.However, the GIF never shows. I've tried this in both a mapscript > app and the basic Itasca demo, same result. I know there is nothing > wrong with the GIF or symbol definition. I found one solution in > which a empty STYLE object that was needed but I am not sure how to > implement. > Can anyone help? > >> > SYMBOL #North Arrow >> > NAME "northarrow1" >> > TYPE pixmap >> > IMAGE "north.gif" >> > END >> > >> > LAYER >> > NAME "North Arrow" >> > STATUS DEFAULT >> > TRANSFORM FALSE >> > TYPE POINT >> > FEATURE >> > POINTS 250 250 END >> > END >> > CLASS >> > SYMBOL 'north' >> > END >> > END >> > >> > Thanks in advance. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/drawing-a-north-arrow-on-a-map-tp18867640p18868108.html Sent from the Mapserver - User mailing list archive at Nabble.com. From vtammineni at roulacglobal.com Thu Aug 7 04:35:33 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Thu, 7 Aug 2008 17:05:33 +0530 Subject: [mapserver-users] Reg: QueryMap(Zoom To Shape) with Mapserver PostgreSql/PostGIS Message-ID: <008801c8f881$b7fb2ba0$27f182e0$@com> Dear All, I am getting error with query map.But it is working fine for Shape files.Only I am getting error with Postgresql/PostGIS.I do not know where I am doing wrong. Here is my Map File Code :- Name "Continents" CONNECTIONTYPE POSTGIS CONNECTION "host=192.168.1.158 dbname=GIS password=administrator user=postgres port=5432" DATA "the_geom from rgp_gis_continent" And I have also used like DATA "the_geom from rgp_gis_continent using unique gid and SRID=-1" But this also getting the same error.I am using Mapserver 5.0 and Postgresql8.1. Please let me know where I am doing wrong. Below is my error prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT "continent"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid:: text from rgp_gis_continent WHERE (Africa) and (the_geom && setSRID( 'BOX3D(-180 -112.415519399249,180 112.415519399249)'::BOX3D,find_srid('','rgp_gis_continent','the_geom') ))' Postgresql reports the error as 'ERROR: column "africa" does not exist ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. I am waiting for your great response. Thanks and Regards Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Leveille at mtq.gouv.qc.ca Thu Aug 7 04:37:53 2008 From: James.Leveille at mtq.gouv.qc.ca (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Thu, 7 Aug 2008 07:37:53 -0400 Subject: [mapserver-users] drawing a north arrow on a map In-Reply-To: <550D514A97C64441A713111CB013B852@BeckPC> Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E063A307A@SINFRA0-EXC003.MTQ.MIN.INTRA> John, the symbol name doesn't match ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -----Message d'origine----- De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de John Beck Envoy? : 7 ao?t 2008 06:25 ? : mapserver-users at lists.osgeo.org Objet : [mapserver-users] drawing a north arrow on a map Dear list, I'm hoping someone can help me. Following the instructions in the wiki, I am trying to add a north arrow to a map. I've got a basic north arrow image (north.gif), I've added a pixmap symbol referencing it, and I've added a layer to the map.However, the GIF never shows. I've tried this in both a mapscript app and the basic Itasca demo, same result. I know there is nothing wrong with the GIF or symbol definition. I found one solution in which a empty STYLE object that was needed but I am not sure how to implement. Can anyone help? > > SYMBOL #North Arrow > > NAME "northarrow1" > > TYPE pixmap > > IMAGE "north.gif" > > END > > > > LAYER > > NAME "North Arrow" > > STATUS DEFAULT > > TRANSFORM FALSE > > TYPE POINT > > FEATURE > > POINTS 250 250 END > > END > > CLASS > > SYMBOL 'north' > > END > > END > > > > Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Laurent.Saez at developpement-durable.gouv.fr Thu Aug 7 05:01:51 2008 From: Laurent.Saez at developpement-durable.gouv.fr (=?UTF-8?Q?=22SAEZ_Laurent_=2D_CETE_M=C3=A9diterr=2E=2FDI=2FETER=22?=) Date: Thu, 07 Aug 2008 14:01:51 +0200 Subject: [mapserver-users] Re: Reg: QueryMap(Zoom To Shape) with Mapserver, PostgreSql/PostGIS (Venkat Rao Tammineni) In-Reply-To: <20080807113758.2D9AFE01BC0@lists.osgeo.org> References: <20080807113758.2D9AFE01BC0@lists.osgeo.org> Message-ID: <489AE42F.5030002@developpement-durable.gouv.fr> Hi, You should try something like : DATA "the_geom FROM (select * FROM rgp_gis_continent) as foo USING UNIQUE gid USING SRID=-1" Regards Laurent Le 07/08/2008 13:37, > mapserver-users-request at lists.osgeo.org (par Internet, d?p?t mapserver-users-bounces at lists.osgeo.org) a ?crit : > Send mapserver-users mailing list submissions to > mapserver-users at lists.osgeo.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.osgeo.org/mailman/listinfo/mapserver-users > or, via email, send a message with subject or body 'help' to > mapserver-users-request at lists.osgeo.org > > You can reach the person managing the list at > mapserver-users-owner at lists.osgeo.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of mapserver-users digest..." > > > Today's Topics: > > 1. AW: [mapserver-users] How do i define my SLD inside the > mapfile? (Albrecht.Weiser at hzd.hessen.de) > 2. Re: AW: [mapserver-users] How do i define my SLD inside the > mapfile? (bartvde at osgis.nl) > 3. Re: GPS to GIS (Peter Falk) > 4. drawing a north arrow on a map (John Beck) > 5. Re: drawing a north arrow on a map (Ritesh Ambastha) > 6. Reg: QueryMap(Zoom To Shape) with Mapserver > PostgreSql/PostGIS (Venkat Rao Tammineni) > 7. RE : [mapserver-users] drawing a north arrow on a map (L?veill?) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 7 Aug 2008 11:25:02 +0200 > From: > Subject: AW: [mapserver-users] How do i define my SLD inside the > mapfile? > To: > Cc: mapserver-users at lists.osgeo.org > Message-ID: > > > Content-Type: text/plain; charset="iso-8859-1" > > Hi Bart, > what a luck that there's a workaround. Unluckily i'm not a php crack :o/ Could you please tell in a few catchwords how to apply the script? > Thanks > Albrecht > > >> -----Urspr?ngliche Nachricht----- >> Von: bartvde at osgis.nl [mailto:bartvde at osgis.nl] >> Gesendet: Donnerstag, 7. August 2008 09:52 >> An: Weiser, Albrecht (HZD) >> Cc: mapserver-users at lists.osgeo.org >> Betreff: Re: [mapserver-users] How do i define my SLD inside >> the mapfile? >> >> No you can't use an SLD directly in a WMS server MAP file. >> >> What I normally do is apply the SLD to the MAP file using a simple PHP >> script: >> >> #!/bin/sh >> sudo -u apache php -f $0 $*; exit $? >> >> > >> if ($argc != 4) { >> echo "Usage: applysldurl.php > file>\n"; >> echo "\n"; >> echo "Applies the SLD url to the layers in the MAP file\n"; >> echo "\n"; >> exit(1); >> } >> >> $oMap = ms_newMapObj($argv[1]); >> $oMap->applySLDURL($argv[2]); >> $oMap->save($argv[3]); >> >> echo "Output saved to $argv[3]\n"; >> >> ?> >> >> Best regards, >> Bart >> > > > ------------------------------ > > Message: 2 > Date: Thu, 7 Aug 2008 11:34:31 +0200 (CEST) > From: bartvde at osgis.nl > Subject: Re: AW: [mapserver-users] How do i define my SLD inside the > mapfile? > To: Albrecht.Weiser at hzd.hessen.de > Cc: mapserver-users at lists.osgeo.org > Message-ID: > <14438.145.50.39.11.1218101671.squirrel at webmail.hostingdiscounter.nl> > Content-Type: text/plain;charset=iso-8859-1 > > Hi Albrecht, > > you can run the script like: > > php -d safe_mode=off /data/geoservices/scripts/applysldurl.php > /data/OGC_UMN_services/kerngisnat_utre.map http://145.50.148.45/nu.sld > ~bart/kgnat_svn2/services/kerngisnat_utre.map.new > > Make sure the paths to your input and output MAP file are absolute, and > read the SLD from a webserver. > > Btw, Mapserver matches the NamedLayers from the SLD to the NAME of the > LAYER in the MAP file, so they have to be the same for it to work > properly. > > This will generate CLASSes for your layers in the MAP file. > > Best regards, > Bart > > >> Hi Bart, >> what a luck that there's a workaround. Unluckily i'm not a php crack :o/ >> Could you please tell in a few catchwords how to apply the script? >> Thanks >> Albrecht >> >> >>> -----Urspr?ngliche Nachricht----- >>> Von: bartvde at osgis.nl [mailto:bartvde at osgis.nl] >>> Gesendet: Donnerstag, 7. August 2008 09:52 >>> An: Weiser, Albrecht (HZD) >>> Cc: mapserver-users at lists.osgeo.org >>> Betreff: Re: [mapserver-users] How do i define my SLD inside >>> the mapfile? >>> >>> No you can't use an SLD directly in a WMS server MAP file. >>> >>> What I normally do is apply the SLD to the MAP file using a simple PHP >>> script: >>> >>> #!/bin/sh >>> sudo -u apache php -f $0 $*; exit $? >>> >>> >> >>> if ($argc != 4) { >>> echo "Usage: applysldurl.php >> file>\n"; >>> echo "\n"; >>> echo "Applies the SLD url to the layers in the MAP file\n"; >>> echo "\n"; >>> exit(1); >>> } >>> >>> $oMap = ms_newMapObj($argv[1]); >>> $oMap->applySLDURL($argv[2]); >>> $oMap->save($argv[3]); >>> >>> echo "Output saved to $argv[3]\n"; >>> >>> ?> >>> >>> Best regards, >>> Bart >>> > > > > > ------------------------------ > > Message: 3 > Date: Thu, 07 Aug 2008 11:35:15 +0200 > From: Peter Falk > Subject: Re: [mapserver-users] GPS to GIS > To: mapserver-users at lists.osgeo.org > Message-ID: <489AC1D3.3030800 at nexus.dk> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi Guys, > > Thanks for your input. It's been a great help. The fact that I'm now > aware of the translation - from WGS84 to UTM Zone 32 - has narrowed the > problem down. > > Peter > > > Beno?t Andrieu skrev: > >> Hi Peter, >> >> What do you mean with 'GIS' coordinates ? >> >> For me, GIS means Geographic Information System and is a very common >> term. >> Looking at your 'GIS' coordinates I would say that your GIS coordinate >> system is a UTM 32 coordinate system. >> >> And in your case, you could use cs2cs >> (http://proj.maptools.org/man_cs2cs.html) in order to make the >> translation. >> >> cs2cs.exe +proj=latlong +datum=WGS84 +to +proj=utm +zone=32 >> +datum=WGS84 -r >> input : 54.9808N 8.86707E >> output : 491492.61 6092662.95 0.00 >> >> The results are not exactly accurate with yours but they are close >> enough to me (by what ? 600 meters ? ^^). >> >> I hope it will help. >> >> Regards, >> Beno?t Andrieu >> >> ----- Original Message ----- From: "Peter Falk" >> To: >> Sent: Thursday, August 07, 2008 9:20 AM >> Subject: [mapserver-users] GPS to GIS >> >> >> >>> Hi David, >>> >>> Yes I know i was a bit vague. What I need is a simple function, that >>> can turn a point in GPS - a lattitude and a logitude value - into a >>> point in GIS. >>> >>> I.e. I got these coordinate: >>> GPS: N: 54.9809 E: 8.86707 >>> >>> that applies to >>> >>> GIS: X: 491055.41 Y: 6092507.928 >>> >>> What I need is the correlation between the two. >>> >>> Regards >>> Peter >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu Aug 7 06:03:28 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 07 Aug 2008 09:03:28 -0400 Subject: [mapserver-users] Arabic-Farsi-Hebrew support? In-Reply-To: <9236.27042.qm@web58214.mail.re3.yahoo.com> References: <9236.27042.qm@web58214.mail.re3.yahoo.com> Message-ID: <489AF2A0.6080607@mapgears.com> Saka Royban wrote: > Thanks stephen for your kind help. > I'm thinking on a solution of using mapscript. i don't know whether it > is true or not. > using mapscript, getting the label positions from it and then compling > labels in programming language,finally giving the result as an image to > mapscript to show iton top of other layers. because i haven't use > mapsript up to know, i'm not sure about it. Do you think it works? > Why not just let MapServer handle everything? If the issue is simply that the MS4W package doesn't have fribidi2 included in it yet, then please ask for it on the MS4W mailing list and that option should be added in the next MS4W release. -- Daniel Morissette http://www.mapgears.com/ From jmckenna at gatewaygeomatics.com Thu Aug 7 06:29:23 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 07 Aug 2008 09:29:23 -0400 Subject: [mapserver-users] Arabic-Farsi-Hebrew support? In-Reply-To: <489AF2A0.6080607@mapgears.com> References: <9236.27042.qm@web58214.mail.re3.yahoo.com> <489AF2A0.6080607@mapgears.com> Message-ID: <489AF8B3.1030004@gatewaygeomatics.com> Daniel Morissette wrote: > > Why not just let MapServer handle everything? If the issue is simply > that the MS4W package doesn't have fribidi2 included in it yet, then > please ask for it on the MS4W mailing list and that option should be > added in the next MS4W release. > The associated ticket for this in MS4W is: http://bugzilla.maptools.org/show_bug.cgi?id=1914 -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From boolean10001 at yahoo.com Thu Aug 7 07:26:37 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Thu, 7 Aug 2008 07:26:37 -0700 (PDT) Subject: [mapserver-users] Reg: QueryMap(Zoom To Shape) with Mapserver PostgreSql/PostGIS In-Reply-To: <008801c8f881$b7fb2ba0$27f182e0$@com> Message-ID: <188141.64608.qm@web38205.mail.mud.yahoo.com> Venkat, Are you using a filter ? I can see in the SQL statement this: WHERE (Africa). So I guess you have FILTER "Africa" instead FILTER " continent = 'Africa' ". Try this and let me know what happened. Greetings from M?xico IC Carlos Ruiz --- On Thu, 8/7/08, Venkat Rao Tammineni wrote: From: Venkat Rao Tammineni Subject: [mapserver-users] Reg: QueryMap(Zoom To Shape) with Mapserver PostgreSql/PostGIS To: mapserver-users at lists.osgeo.org, mapserver-users-owner at lists.osgeo.org, mapserver-dev at lists.osgeo.org, mapserver-commits at lists.osgeo.org Date: Thursday, August 7, 2008, 6:35 AM Dear All, ? I am getting error with query map.But it is working fine for Shape files.Only? I am getting error with Postgresql/PostGIS.I do not know where? I am doing wrong. ? Here is my Map File Code :- ?? Name "Continents" ?? CONNECTIONTYPE POSTGIS ?? CONNECTION "host=192.168.1.158 dbname=GIS password=administrator user=postgres port=5432" ?? DATA "the_geom from rgp_gis_continent" ? And I have also used like ? ???DATA "the_geom from rgp_gis_continent using unique gid and SRID=-1" ? But this also getting the same error.I am? using Mapserver 5.0? and Postgresql8.1. Please let me know where ?I am doing wrong. ? ? ? Below is my error ? ? prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT "continent"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from rgp_gis_continent WHERE (Africa) and (the_geom && setSRID( 'BOX3D(-180 -112.415519399249,180 112.415519399249)'::BOX3D,find_srid('','rgp_gis_continent','the_geom') ))' ? Postgresql reports the error as 'ERROR:? column "africa" does not exist ' ? More Help: ? Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' ? Make sure you put in the 'using unique? column name' and 'using SRID=#' clauses in. ? For more help, please see http://postgis.refractions.net/documentation/ ? Mappostgis.c - version of Jan 23/2004. ? ? ? I am waiting for your great response. ? ?Thanks and Regards Venkat. ? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From bea at ixsea.com Thu Aug 7 07:26:48 2008 From: bea at ixsea.com (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Thu, 7 Aug 2008 16:26:48 +0200 Subject: [mapserver-users] GPS to GIS In-Reply-To: <489AC1D3.3030800@nexus.dk> References: <489AA23E.9020607@nexus.dk><1C578C3F8B7C43ECB09CA429664D1F43@ixsea.local> <489AC1D3.3030800@nexus.dk> Message-ID: Glad to know it helps. But, in my own opinion, the difference between the results implies that something is wrong (on which side, i don't know). It could be another coordinate system, or another datum... Sorry but I am not a expert with coordinate systems. Regards, Beno?t Andrieu ----- Original Message ----- From: "Peter Falk" To: Sent: Thursday, August 07, 2008 11:35 AM Subject: Re: [mapserver-users] GPS to GIS > Hi Guys, > > Thanks for your input. It's been a great help. The fact that I'm now aware > of the translation - from WGS84 to UTM Zone 32 - has narrowed the problem > down. > > Peter > > > Beno?t Andrieu skrev: >> Hi Peter, >> >> What do you mean with 'GIS' coordinates ? >> >> For me, GIS means Geographic Information System and is a very common >> term. >> Looking at your 'GIS' coordinates I would say that your GIS coordinate >> system is a UTM 32 coordinate system. >> >> And in your case, you could use cs2cs >> (http://proj.maptools.org/man_cs2cs.html) in order to make the >> translation. >> >> cs2cs.exe +proj=latlong +datum=WGS84 +to +proj=utm +zone=32 >> +datum=WGS84 -r >> input : 54.9808N 8.86707E >> output : 491492.61 6092662.95 0.00 >> >> The results are not exactly accurate with yours but they are close enough >> to me (by what ? 600 meters ? ^^). >> >> I hope it will help. >> >> Regards, >> Beno?t Andrieu >> >> ----- Original Message ----- From: "Peter Falk" >> To: >> Sent: Thursday, August 07, 2008 9:20 AM >> Subject: [mapserver-users] GPS to GIS >> >> >>> Hi David, >>> >>> Yes I know i was a bit vague. What I need is a simple function, that can >>> turn a point in GPS - a lattitude and a logitude value - into a point in >>> GIS. >>> >>> I.e. I got these coordinate: >>> GPS: N: 54.9809 E: 8.86707 >>> >>> that applies to >>> >>> GIS: X: 491055.41 Y: 6092507.928 >>> >>> What I need is the correlation between the two. >>> >>> Regards >>> Peter >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > -- > Med venlig hilsen > Peter Falk > Nexus Kommunikation > ?stre Messegade 2 > 2650 Hvidovre > 36 77 00 46 > www.nexus.dk > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From woodbri at swoodbridge.com Thu Aug 7 08:45:51 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Thu, 07 Aug 2008 10:45:51 -0500 Subject: [mapserver-users] Arabic-Farsi-Hebrew support? In-Reply-To: <9236.27042.qm@web58214.mail.re3.yahoo.com> References: <9236.27042.qm@web58214.mail.re3.yahoo.com> Message-ID: <489B18AF.6040701@swoodbridge.com> Saka, It might work, but I think you are making this more complicated that it needs to be. Is there something that you think your approach can do that you can not do with the fribidi2 support integrated into Mapserver? or MS4W? I would be interested in hearing about that. If your concern is whether or not it is built into MS4W then you should get on the MS4W list as Daniel suggested and you should add yourself to the CC list of the ticket that Jeff referenced so you can track the status of this issue. By the way the fribidi2 support works very nicely in mapserver and clients that have been using it are very happy with the rendering results. Best regards, -Steve W Saka Royban wrote: > > Thanks stephen for your kind help. > I'm thinking on a solution of using mapscript. i don't know whether it > is true or not. > using mapscript, getting the label positions from it and then compling > labels in programming language,finally giving the result as an image to > mapscript to show iton top of other layers. because i haven't use > mapsript up to know, i'm not sure about it. Do you think it works? > > > --- On *Tue, 8/5/08, Stephen Woodbridge //* wrote: > > From: Stephen Woodbridge > Subject: Re: [mapserver-users] Arabic-Farsi-Hebrew support? > To: srph124 at yahoo.com > Cc: "MapServer" > Date: Tuesday, August 5, 2008, 8:49 AM > > Saka, > > You probably need to check on the MS4W list to be sure, but I did file a > bug for this support and I think the ticket was closed so it should be > supported, but you will probably need one of the most recent ones and > I'm not sure if the change has been released yet. Check with MS4W for > the status on this or read the release notes which are sure to mention it. > > -Steve W > > Saka Royban wrote: > > > > Thanks Stephen > > sorry about gettext. I was mensioning this in CartoWeb mailinglist > > implemented on Mapserver. forgetting to remove it. > > as i understand, you say i can use mapserever 5.2 and it has support of > > this by fribidi2. because i use MS4W with no building from scratch, > i'm > > asking this question. > > Thanks again for your help > > > > --- On *Mon, 8/4/08, Stephen Woodbridge //* > wrote: > > > > From: Stephen Woodbridge > > Subject: Re: [mapserver-users] Arabic-Farsi-Hebrew support? > > To: "Saka Royban" > > Cc: mapserver-users at lists.osgeo.org > > Date: Monday, August 4, 2008, 9:15 AM > > > > Saka Royban wrote: > > > > > > Hi all. > > > I'm new to Mapserver. I want to know if Mapserver is able to > handle > > > Arabic-Farsi(Persian) and Hebrew correctly (using gettext). In > these > > > languages letter join to each other to form a word not like > others which > > > letters are separate with no problem. also they are written right > to > > > left not left to right. This is an important point for labeling. > > > Searching nabble.com, i found a post some months ago discussing > around > > > this problem and associated ticket. That would be my pleasure to > know > > > the result if any knows. > > > Thanks in advance > > > > Well, I'm not sure about "gettext" part of your > question, but > > with > > Release 5.2 you can now build with fribidi2 support and render labels > > with shaping in Arabic-Farsi(Persian) and Hebrew correctly provided > you > > have a truetype font that supports all the unicode shape characters. > > > > -Steve W > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Thu Aug 7 08:23:48 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 07 Aug 2008 10:23:48 -0500 Subject: [mapserver-users] Projection of shape objects in MapScript In-Reply-To: <489A4C5F.6060904@alumni.uwaterloo.ca> References: <489A4C5F.6060904@alumni.uwaterloo.ca> Message-ID: <489ACD34.5157.008F.0@dnr.state.mn.us> They are in the native projection of the data source. Steve >>> On 8/6/2008 at 8:14 PM, in message <489A4C5F.6060904 at alumni.uwaterloo.ca>, Mike Leahy wrote: > Hello, > > I have what I hope is an easy question: when I extract shapes from query > results in PHP MapScript, what projection would the shape be in? The > map object usually has its own projection defined, as can the layer > object...and then there's the data source itself (presumably the same as > the layer object). So if I produce WKT from the shapeObj::toWkt() > function, which reference system will the coordinates be in? I know I > could figure this out on my own through experimentation, but I'm hoping > someone already knows the answer. If it's in the documentation, then > I've missed it...and I didn't turn anything up with a few web searches. > > Thanks for any help, > Mike > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From nipapada at gmail.com Thu Aug 7 12:06:39 2008 From: nipapada at gmail.com (=?ISO-8859-7?Q?=CD=DF=EA=EF=F2_=D0=E1=F0=E1=E4=DC=EA=E7=F2?=) Date: Thu, 07 Aug 2008 22:06:39 +0300 Subject: [mapserver-users] ogrinfo failure. Message-ID: <489B47BF.80600@gmail.com> Hi list. I have a problem running ogrinfo.exe. When i press enter i get the following message: "This application has failed to start because gdal15.dll was not found.Re-installing the application may fix this problem". Well,i re-installed ms4w but the problem remains. Does anyone know where the error might be? Thank you in advance...! From bartvde at osgis.nl Thu Aug 7 12:11:02 2008 From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS)) Date: Thu, 07 Aug 2008 21:11:02 +0200 Subject: [mapserver-users] ogrinfo failure. In-Reply-To: <489B47BF.80600@gmail.com> References: <489B47BF.80600@gmail.com> Message-ID: <489B48C6.2050601@osgis.nl> Open up a dos prompt and first run ms4w\setenv.bat, after that you can use ogrinfo. Best regards, Bart ????? ????????? wrote: > Hi list. > I have a problem running ogrinfo.exe. > > When i press enter i get the following message: > > "This application has failed to start because gdal15.dll was not > found.Re-installing the application may fix this problem". > Well,i re-installed ms4w but the problem remains. > Does anyone know where the error might be? > > Thank you in advance...! > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Bart van den Eijnden OSGIS, Open Source GIS bartvde at osgis.nl http://www.osgis.nl From BKenne at iso.com Thu Aug 7 13:00:22 2008 From: BKenne at iso.com (Kenne, Bryon K.) Date: Thu, 7 Aug 2008 16:00:22 -0400 Subject: [mapserver-users] PostGreSQL8.2/PostGIS SQL Error In-Reply-To: <489B48C6.2050601@osgis.nl> References: <489B47BF.80600@gmail.com> <489B48C6.2050601@osgis.nl> Message-ID: <3F4E4D643FA05D499A93FB483D68C302030989F6@ISOEMAILP6.iso.com> Does anybody know why the following select query returns this error? - ERROR: Operation on two geometries with different SRIDs SQL state: XX000 SELECT * FROM sdghaz WHERE the_geom&&'BOX3D(-117.052660 32.854340, -117.052664 32.854353)'::box3d AND distance(the_geom, GeomFromText('POINT(-117.052662 32.854349)',4326))<0.00001 -Bryon This email is intended for the recipient only. If you are not the intended recipient please disregard, and do not use the information for any purpose. From boolean10001 at yahoo.com Thu Aug 7 13:07:44 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Thu, 7 Aug 2008 13:07:44 -0700 (PDT) Subject: [mapserver-users] PostGreSQL8.2/PostGIS SQL Error In-Reply-To: <3F4E4D643FA05D499A93FB483D68C302030989F6@ISOEMAILP6.iso.com> Message-ID: <271775.30223.qm@web38204.mail.mud.yahoo.com> You have two tables with different SRIDs specified. You must use "setsrid(the_geom, xxxx)" to be able to handle both. This problem ocurrs when you didn't specify the SRID when using shp2pgsql, it takes -1 (default) instead the one that your layer haves. IC Carlos Ruiz --- On Thu, 8/7/08, Kenne, Bryon K. wrote: From: Kenne, Bryon K. Subject: [mapserver-users] PostGreSQL8.2/PostGIS SQL Error To: mapserver-users at lists.osgeo.org Date: Thursday, August 7, 2008, 3:00 PM Does anybody know why the following select query returns this error? - ERROR: Operation on two geometries with different SRIDs SQL state: XX000 SELECT * FROM sdghaz WHERE the_geom&&'BOX3D(-117.052660 32.854340, -117.052664 32.854353)'::box3d AND distance(the_geom, GeomFromText('POINT(-117.052662 32.854349)',4326))<0.00001 -Bryon This email is intended for the recipient only. If you are not the intended recipient please disregard, and do not use the information for any purpose. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ambatisri_03 at yahoo.co.in Thu Aug 7 19:57:19 2008 From: ambatisri_03 at yahoo.co.in (srikanth srikanth) Date: Fri, 8 Aug 2008 08:27:19 +0530 (IST) Subject: [mapserver-users] my email address Message-ID: <242604.91657.qm@web8702.mail.in.yahoo.com> hi every one, ? ????? this is sri.. ? ???? you can reply me for al the messgaes to ambatisri_03 at yahoo.co.in ? ??? thank you, ? Regards sri. Cricket on your mind? Visit the ultimate cricket website. Enter http://in.sports.yahoo.com/cricket/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtammineni at roulacglobal.com Thu Aug 7 22:45:14 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Fri, 8 Aug 2008 11:15:14 +0530 Subject: [mapserver-users] Reg: QueryMap(Zoom To Shape) with Mapserver PostgreSql/PostGIS In-Reply-To: <188141.64608.qm@web38205.mail.mud.yahoo.com> References: <008801c8f881$b7fb2ba0$27f182e0$@com> <188141.64608.qm@web38205.mail.mud.yahoo.com> Message-ID: <001801c8f919$f077f0b0$d167d210$@com> Dear Sir, Thanks for your great response.It was really helpful for me.It is working fine.Yes I am using Filters. I have done with that. Here is my Map file syntax :- DATA "the_geom from rgp_gis_continent" And here is my C3 code ? layer.queryByAttributes(utl.map, "CONTINENT", "continent = 'Europe' ", 1);?. Thanks a lot.It is working great.. Thanks and Regards Venkat. From: Carlos Ruiz [mailto:boolean10001 at yahoo.com] Sent: Thursday, August 07, 2008 7:57 PM To: mapserver-users at lists.osgeo.org; mapserver-users-owner at lists.osgeo.org; mapserver-dev at lists.osgeo.org; mapserver-commits at lists.osgeo.org; Venkat Rao Tammineni Subject: Re: [mapserver-users] Reg: QueryMap(Zoom To Shape) with Mapserver PostgreSql/PostGIS Venkat, Are you using a filter ? I can see in the SQL statement this: WHERE (Africa). So I guess you have FILTER "Africa" instead FILTER " continent = 'Africa' ". Try this and let me know what happened. Greetings from M?xico IC Carlos Ruiz --- On Thu, 8/7/08, Venkat Rao Tammineni wrote: From: Venkat Rao Tammineni Subject: [mapserver-users] Reg: QueryMap(Zoom To Shape) with Mapserver PostgreSql/PostGIS To: mapserver-users at lists.osgeo.org, mapserver-users-owner at lists.osgeo.org, mapserver-dev at lists.osgeo.org, mapserver-commits at lists.osgeo.org Date: Thursday, August 7, 2008, 6:35 AM Dear All, I am getting error with query map.But it is working fine for Shape files.Only I am getting error with Postgresql/PostGIS.I do not know where I am doing wrong. Here is my Map File Code :- Name "Continents" CONNECTIONTYPE POSTGIS CONNECTION "host=192.168.1.158 dbname=GIS password=administrator user=postgres port=5432" DATA "the_geom from rgp_gis_continent" And I have also used like DATA "the_geom from rgp_gis_continent using unique gid and SRID=-1" But this also getting the same error.I am using Mapserver 5.0 and Postgresql8.1. Please let me know where I am doing wrong. Below is my error prepare_database(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT "continent"::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid:: text from rgp_gis_continent WHERE (Africa) and (the_geom && setSRID( 'BOX3D(-180 -112.415519399249,180 112.415519399249)'::BOX3D,find_srid('','rgp_gis_continent','the_geom') ))' Postgresql reports the error as 'ERROR: column "africa" does not exist ' More Help: Error with POSTGIS data variable. You specified 'check your .map file'. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from (sub query) as foo using unique column name using SRID=srid#' Make sure you put in the 'using unique column name' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/documentation/ Mappostgis.c - version of Jan 23/2004. I am waiting for your great response. Thanks and Regards Venkat. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From stanitzok at hansaluftbild.de Fri Aug 8 00:07:28 2008 From: stanitzok at hansaluftbild.de (Thorsten Stanitzok) Date: Fri, 08 Aug 2008 09:07:28 +0200 Subject: [mapserver-users] GetFeature Filterproblem with OGR Message-ID: <489BF0B0.5000903@hansaluftbild.de> Hi List, i have a problem sending a getfeature request, after changing the connectiontype OGR for a layer. this request works, i get the gml which i expect http://localhost/cgi-bin/mapserv.exe?map=./mapfiles/gbh.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=Verwaltungseinheiten &Filter=GemarkungH* this request doesnt work: http://localhost/cgi-bin/mapserv.exe?map=./mapfiles/gbh.map&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=Verwaltungseinheiten &Filter=GST1 it returns the following: msQueryByRect(): Search returned no results. No matching record(s) found. but before changing to OGR everything worked fine. Has anyone some hints, what is wrong? i attached the layer-definition. regards Thorsten -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: layer.map URL: From christian.braun at tudor.lu Fri Aug 8 02:14:29 2008 From: christian.braun at tudor.lu (Christian Braun) Date: Fri, 8 Aug 2008 11:14:29 +0200 Subject: [mapserver-users] Color mapping floating point raster Message-ID: <001c01c8f937$293e37c0$7bbaa740$@braun@tudor.lu> Hi guys, I am searching for a possibility to automatically ramp colors in floating point raster formats. I found a workaround dealing with gdalinfo and bash scripting here: http://www.nabble.com/-UMN_MAPSERVER-USERS--floating-point-grass-rasters-and -mapserver---a-resume-td1132414.html#a1132447 But I am rather looking forward to have a built in solution in Mapserver itself. Also the target format should be GTIFF to avoid a GRASS DB PS: I am using the latest 5.2 Mapserver Thanks in advance, Christian _________________________________________ Dipl. Geogr. Christian Braun Tel: +352- 425991-608 Mobil: +49-179-6845896 Mail: christian.braun at tudor.lu *** www.crte.lu *** Resource Centre for Environmental Technologies, Public Research Centre Henri Tudor, Technoport Schlassgoart, 66 rue de Luxembourg, P.O. BOX 144, L-4002 Esch-sur-Alzette, Luxembourg -------------- next part -------------- An HTML attachment was scrubbed... URL: From yvan.calcagni at voila.fr Fri Aug 8 04:05:25 2008 From: yvan.calcagni at voila.fr (Yvan Calcagni) Date: Fri, 8 Aug 2008 13:05:25 +0200 (CEST) Subject: [mapserver-users] Hacking PROJ4... Message-ID: <12151399.2119961218193525265.JavaMail.www@wwinf4608> Hi everybody, for my own developments, I set up a wms server serving data in both EPSG:4326 (wgs84) and EPSG:27582. And as these 2 projections are not based on the same meridian, the lat/lon bounding box are always false even if the EPSG:27582 BBOX goes well. So I need to override the EPSG:4326 by adding this parameter : +pm=-2.33722917. I tried to change this in the epsg file (/usr/local/share/proj/epsg) but it failed, so I tried to change this in the source file and recompile Proj4 but nothing happened too. So, is there a way to do this, or anything else to solve this problem. Thanks in advance for your answers. Vanvan ____________________________________________________ Avant de prendre le volant, rep?rez votre itin?raire et visualisez le trafic ! http://itineraire.voila.fr/itineraire.html From damarmo at gmail.com Fri Aug 8 05:49:01 2008 From: damarmo at gmail.com (David Martinez Morata) Date: Fri, 8 Aug 2008 14:49:01 +0200 Subject: [mapserver-users] Hacking PROJ4... In-Reply-To: <12151399.2119961218193525265.JavaMail.www@wwinf4608> References: <12151399.2119961218193525265.JavaMail.www@wwinf4608> Message-ID: <9771eb540808080549w7ec76759wb2e5fa73c28691da@mail.gmail.com> Try with this? +proj=lcc +lat_1=45.89891889 +lat_2=47.69601444 +lat_0=46.8 +lon_0=0 +k_0=1 +x_0=600000 +y_0=2200000 +a=6378249.2 +b=6356515 +towgs84=-168,-60,320,0,0,0,0 +pm=paris +units=m no_defs <> 2008/8/8 Yvan Calcagni > > Hi everybody, > > for my own developments, I set up a wms server serving data in both > EPSG:4326 (wgs84) and EPSG:27582. And as these 2 projections are not based > on the same meridian, the lat/lon bounding box are always false even if the > EPSG:27582 BBOX goes well. So I need to override the EPSG:4326 by adding > this parameter : +pm=-2.33722917. I tried to change this in the epsg file > (/usr/local/share/proj/epsg) but it failed, so I tried to change this in the > source file and recompile Proj4 but nothing happened too. > > So, is there a way to do this, or anything else to solve this problem. > > Thanks in advance for your answers. > > Vanvan > > ____________________________________________________ > > Avant de prendre le volant, rep?rez votre itin?raire et visualisez le > trafic ! http://itineraire.voila.fr/itineraire.html > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nipapada at gmail.com Fri Aug 8 08:30:08 2008 From: nipapada at gmail.com (=?ISO-8859-7?Q?=CD=DF=EA=EF=F2_=D0=E1=F0=E1=E4=DC=EA=E7=F2?=) Date: Fri, 08 Aug 2008 18:30:08 +0300 Subject: [mapserver-users] Ogr connection to mysql. Message-ID: <489C6680.1000202@gmail.com> Hi to everyone! I try to read data from mysql database and i follow the direction in this example. http://mapserver.gis.umn.edu/docs/howto/ogrmysql I have created a database and a table containing coordinate pairs according to the example and placed the .ovf file inside the directory defined in shapepath. but when i run mapserver ,after some seconds i get the following message: 500 Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. I run Mysql server 5.0. Any ideas? Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Fri Aug 8 09:08:46 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 08 Aug 2008 12:08:46 -0400 Subject: [mapserver-users] Ogr connection to mysql. In-Reply-To: <489C6680.1000202@gmail.com> References: <489C6680.1000202@gmail.com> Message-ID: <489C6F8E.9060506@pobox.com> ????? ????????? wrote: > Hi to everyone! > > I try to read data from mysql database and i follow the direction > in this example. http://mapserver.gis.umn.edu/docs/howto/ogrmysql > I have created a database and a table containing coordinate pairs > according to the example and placed the .ovf file inside the directory > defined in shapepath. > > but when i run mapserver ,after some seconds i get the following message: > > > 500 Internal Server Error > > The server encountered an internal error or misconfiguration and was > unable to complete your request. ?????, I would encourage you to first try connecting to mysql directly from ogrinfo, then try doing it using the VRT, and then move to doing it in the mapfile, but using a commandline program like shp2img (or even mapserv) against the mapfile. 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 jvanulde at nrcan.gc.ca Fri Aug 8 12:11:21 2008 From: jvanulde at nrcan.gc.ca (Van Ulden, Joost) Date: Fri, 8 Aug 2008 12:11:21 -0700 Subject: [mapserver-users] GeoTiffs not displaying correctly Message-ID: <9BBB88F4-7FE4-4343-9BFE-3247E0D3B8E7@mimectl> Is anyone else having issues with GeoTiffs in v5.2? I am getting weird banding and intermittent rendering. _________________________________ Joost van Ulden Natural Resources Canada / Ressources Naturelles Canada 625 Robson Street / 625 rue Robson Vancouver, B.C. / Vancouver (C.B.) V6B 5J3 tel/t?l: 604.666.7525 fax/t?l?copieur: 604.666.1124 email / courriel: jvanulde at nrcan.gc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From efujioka at duke.edu Fri Aug 8 16:02:06 2008 From: efujioka at duke.edu (Ei Fujioka) Date: Fri, 08 Aug 2008 19:02:06 -0400 Subject: [mapserver-users] Horizontal line appears at the edge with circle symbol In-Reply-To: <489A2AA0.8030504@swoodbridge.com> References: <20080806185007.2A19B12A80B6@lists.osgeo.org> <489A1635.1070700@duke.edu> <489A2AA0.8030504@swoodbridge.com> Message-ID: <489CD06E.5030806@duke.edu> Thanks, Steve, for the quickest response. I managed to upgrade the GD library and recompile PHP, Mapserver and the problem is gone. GD: 2.0.35 (previously 2.0.33 from yum) PHP: 5.2.6 (previously 5.1.6 from yum) Mapserver: 5.2 Ei Stephen Woodbridge wrote: > This is a know bug. I think it is: > http://trac.osgeo.org/mapserver/ticket/1719 > > -Steve W > > Ei Fujioka wrote: >> Dear experts, >> >> I'm upgrading Mapserver from 4.2 to 5.2 and experiencing a very >> annoying problem. >> >> There appears a horizontal line at the edge of the map drawn by >> Mapserver 5.2 when the symbol is set to "circle". This didn't happen >> with Mapserver 4.2. >> When I change the symbol to "square", the line doesn't appear. >> >> I've tried various settings (e.g. SIZE, ANGLE, ANTIALIAS etc.) with no >> luck. >> >> Does anyone have any idea what's wrong with it? >> >> ** Examples: ** >> Mapserver 5.2 with circle symbol: >> http://seamap-dev.env.duke.edu/seamap2/main/seamap2_gm.php?sid=horizontal_line_with_circle&mode=draw_map&outputformat=PNG24&layer_name=dist_sp_01deg&layer_type=point&mapsize=256%2B256&mapext=-90%2C27.059125784374068%2C-84.375%2C31.95216223802497 >> >> >> Mapserver 5.2 with square symbol: >> http://seamap-dev.env.duke.edu/seamap2/main/seamap2_gm.php?sid=no_line_with_square&mode=draw_map&outputformat=PNG24&layer_name=dist_sp_01deg&layer_type=point&mapsize=256%2B256&mapext=-90%2C27.059125784374068%2C-84.375%2C31.95216223802497 >> >> >> ** Mapserver info. ** >> ./mapserv -v >> MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=ICONV >> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=GEOS INPUT=EPPL7 >> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> ** Mapfile exerpt ** >> >> MAP >> EXTENT -20001364 -15000982 20001253 15000982 >> IMAGECOLOR 255 255 255 >> IMAGETYPE gif >> SYMBOLSET "/var/www/seamap2/map/symbolset.map" >> SHAPEPATH "/data/shapefiles/" >> SIZE 256 256 >> STATUS ON >> TRANSPARENT TRUE >> UNITS DD >> NAME "SEAMAP ONLINE MAPPER" >> PROJECTION >> "init=epsg:54004" >> END >> >> LAYER >> CLASSITEM "_sp_tsn" >> CONNECTION "host=***" >> CONNECTIONTYPE POSTGIS >> DATA "_geom from (***) ***" >> NAME "zd_35" >> PROJECTION >> "init=epsg:4326" >> END >> STATUS ON >> TOLERANCE 0.1 >> TYPE POINT >> CLASS >> NAME "Anatidae" >> EXPRESSION "174983" >> STYLE >> ANGLE 360 >> COLOR 255 255 0 >> OPACITY 50 >> OUTLINECOLOR 0 0 0 >> SIZE 9 >> SYMBOL "circle" : annoying horizontal line appears >> #SYMBOL "square" : when square is used, no horizontal line >> END >> TITLE "174983" >> END >> ... >> >> > -- ====================== Ei Fujioka Research Associate Duke University (919) 613-8021 efujioka at duke.edu ====================== From reena at indiamail.com Sat Aug 9 00:30:46 2008 From: reena at indiamail.com (S.Reena) Date: Sat, 9 Aug 2008 00:30:46 -0700 (PDT) Subject: [MAPSERVER-USERS] problem with map.zoomToExtent Message-ID: <18902842.post@talk.nabble.com> i have three files... one html, one javascript and one php....i am handling database through php file and sending the result of that to a function in javascript file.. echo " \"javascript:zoomVillage($box1,$box2,$box3,$box4)\" Open Map "; These are ST_box2D() data which i hv split in 4 parts ...the thing is if i alert these values in that function..its working..but i i do like map.zoomToExtent(new OpenLayers.Bounds(str1,str2,str3,str4)) where str1 etc contain the passed values.. this doesn't work.. Can any1 help? Cheers, S.Reena -- View this message in context: http://www.nabble.com/problem-with-map.zoomToExtent-tp18902842p18902842.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gis at vanbooth.com Mon Aug 11 06:47:21 2008 From: gis at vanbooth.com (Rob) Date: Mon, 11 Aug 2008 14:47:21 +0100 Subject: [mapserver-users] Problems calculating MAXSCALES Message-ID: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> Hi Guys This is probably a bit of a schoolboy error, but I'm having real problems with my latest mapfile and MIN/MAXSCALEDENOMs. My mapfile contains sections like this.... MAP EXTENT 235000 132715 300000 200000 RESOLUTION 96.00 UNITS METERS SIZE 500 500 PROJECTION "init=epsg:27700" END LAYER MAXSCALEDENOM 500000 MINSCALEDENOM 0 NAME 'TEST' TILEINDEX "SHAPEFILE" TILEITEM "location" END Now, my basic maths suggests that if I do a shp2img on this mapfile, I should get a valid map. Heres my working minx=235000 miny=132715 maxx=300000 maxy=200000 pixels per screen meter (ppsm)= ( 100 cm / 2.54 cm ) * resolution of 96 = 3779.527555 Scale = ( ( ( ( maxx - minx) * ppsm ) / imagewidth ) + ( ( ( maxy - miny) * ppsm ) / imageheight ) / 2 I calculate this to be 499974.8026 However, the map is empty. An image finally appears if I change the MAXSCALEDENOM value to 509631 What schoolboy error have I made? Its all the more confusing because, before my MapServer 5 upgrade, this seemed to be working fine! Many thanks in advance Rob From aboudreault at mapgears.com Mon Aug 11 06:29:32 2008 From: aboudreault at mapgears.com (Alan Boudreault) Date: Mon, 11 Aug 2008 09:29:32 -0400 Subject: [MAPSERVER-USERS] problem with map.zoomToExtent In-Reply-To: <18902842.post@talk.nabble.com> References: <18902842.post@talk.nabble.com> Message-ID: <48A03EBC.7040900@mapgears.com> Reena, I don't understand why your "map.zoomToExtend()" call don't work. This is a very basic function. Are you sure that the parameters used for create the OpenLayers.Bounds object are good ? (str1 = left, str2 = bottom, str3 = right, str4 = top). If so, can you show us some code ... in this way, we'll be more able to check what could be the problem. Regards, Alan S.Reena wrote: > i have three files... one html, one javascript and one php....i am handling > database through php file and sending the result of that to a function in > javascript file.. > echo " \"javascript:zoomVillage($box1,$box2,$box3,$box4)\" Open Map "; > > These are ST_box2D() data which i hv split in 4 parts ...the thing is if i > alert these values in that function..its working..but i i do like > > map.zoomToExtent(new OpenLayers.Bounds(str1,str2,str3,str4)) where str1 etc > contain the passed values.. > > this doesn't work.. > > Can any1 help? > > Cheers, > S.Reena > -- Alan Boudreault Mapgears http://www.mapgears.com From efujioka at duke.edu Mon Aug 11 09:03:51 2008 From: efujioka at duke.edu (Ei Fujioka) Date: Mon, 11 Aug 2008 12:03:51 -0400 Subject: [mapserver-users] [metadata_meta data key] not available in header template? In-Reply-To: <20080809160014.28DF512A8197@lists.osgeo.org> References: <20080809160014.28DF512A8197@lists.osgeo.org> Message-ID: <48A062E7.8080106@duke.edu> Dear experts, I'm writing HTML templates that are processed as a result of a query. According to the document, http://mapserver.gis.umn.edu/docs/reference/templatereference/templatereference/view [metadata_meta data key] can be used to insert layer metadata like [metadata_wms_title]. This is true for the template but it seems it is not available in a header template. What I want to do is to insert layer's title in the header. [cl] could be used but it's a layer ID in my system (e.g. "dataset1") and I want to show a human-friendly name (e.g. "Observations of humpback"), which is in metadata (title and wms_title). I tried [[cl]_wms_title] but obviously Mapserver can't recognize nested substitutions. Also I can't use [layername_meta data key] (e.g. [dataset1_wms_title], which works fine in a header template) as layers are variable. Is there a workaround for this? Thanks, Ei -- ====================== Ei Fujioka Research Associate Duke University (919) 613-8021 efujioka at duke.edu ====================== From jmarcus at avencia.com Mon Aug 11 10:04:21 2008 From: jmarcus at avencia.com (Josh Marcus) Date: Mon, 11 Aug 2008 13:04:21 -0400 Subject: [mapserver-users] MAXFEATURES or FEATURE_COUNT w/ WMS call, output text/html Message-ID: <6ca6db680808111004y5d02267eq78d46a6d11feb3a3@mail.gmail.com> Hey there, I was wondering if I could get some help or advice on using the FEATURE_COUNT (or MAXFEATURES) parameter with a WMS call. I'm using Mapserver 4.99. My output type is text/html, which I'm using to generate JSON. The data layer is a postgresql/postgis database. In general, it's working fine -- except that I want to limit the response to a maximum number of features. Passing in a FEATURE_COUNT cgi parameter seems to have no effect at all. Interestingly, passing in MAXFEATURES (with any value) limits the output to a single feature. Any help would be great. Thanks! --j -------------- next part -------------- An HTML attachment was scrubbed... URL: From nipapada at gmail.com Mon Aug 11 11:03:46 2008 From: nipapada at gmail.com (=?ISO-8859-7?Q?=CD=DF=EA=EF=F2_=D0=E1=F0=E1=E4=DC=EA=E7=F2?=) Date: Mon, 11 Aug 2008 21:03:46 +0300 Subject: [mapserver-users] Connection to Mysql 5.0 Message-ID: <48A07F02.3030907@gmail.com> Hello to everyone! i have a problem in implementing the example i found in http://mapserver.gis.umn.edu/docs/howto/ogrmysql. I want to project some points on the map. I have created the .ovf file and the database i want to access with some appropriate data. I have also created a user and granted it with all privileges. (GRANT ALL ON 'dbase_name'.* to 'user'@localhost identified by 'password'); When i use command prompt to connect to mysql with ogrinfo.exe everything goes fine! (ogrinfo.exe -al MYSQL:my_db,user='user',password='password',host=localhost,port=3306,tables=points;). The results i get are information about the table contained in database and the contents of the selected table. Next i run ogrinfo.exe -al /path/to/ovf_file.ovf and again i get the result i expected.. (except from the warning "ERROR 4: Update access not supported fow VRT datasources Had to open data source in read-only" which is fine according to the example!). But when i use the .ovf file through the .map file ,and after a few seconds,i get the message : /Internal Server Error/ /The server encountered an internal error or misconfiguration and was unable to complete your request./ /Please contact the server administrator, admin at local.domain and inform them of the time the error occurred, and anything you might have done that may have caused the error./ /More information about this error may be available in the server error log./ Can anyone help me becuse i'm stuck with this. Is it preferable to access mysql with php\mapscript instead? And if yes,is there any informative tutorial??? Thank you in advance! Nikos Papadakis. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Mon Aug 11 11:09:31 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 11 Aug 2008 14:09:31 -0400 Subject: [mapserver-users] MAXFEATURES or FEATURE_COUNT w/ WMS call, output text/html In-Reply-To: <6ca6db680808111004y5d02267eq78d46a6d11feb3a3@mail.gmail.com> References: <6ca6db680808111004y5d02267eq78d46a6d11feb3a3@mail.gmail.com> Message-ID: <48A0805B.4070005@mapgears.com> Josh Marcus wrote: > Hey there, > > I was wondering if I could get some help or advice on using the > FEATURE_COUNT (or MAXFEATURES) parameter with a WMS call. I'm using > Mapserver 4.99. > > My output type is text/html, which I'm using to generate JSON. The data > layer is a postgresql/postgis database. In general, it's working fine > -- except that I want to limit the response to a maximum number of > features. Passing in a FEATURE_COUNT cgi parameter seems to have no > effect at all. Interestingly, passing in MAXFEATURES (with any value) > limits the output to a single feature. > FEATURE_COUNT had no effect with INFO_FORMAT=text/html in 5.0 and older. This was fixed in v5.2, so you'll have to upgrade to 5.2 or patch your local install. All the details in ticket #1686: http://trac.osgeo.org/mapserver/ticket/1686 Daniel -- Daniel Morissette http://www.mapgears.com/ From jkapalczynski at ci.maple-grove.mn.us Mon Aug 11 13:30:15 2008 From: jkapalczynski at ci.maple-grove.mn.us (Jay Kapalczynski) Date: Mon, 11 Aug 2008 15:30:15 -0500 Subject: [mapserver-users] ShpTree Message-ID: I am trying to figure out what I need to do/install/run to create a .qix file (tile index) for a few of my shapefiles. I have looked this up on a few pages and still am confused. Can anyone help me? Thanks J -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at hostgis.com Mon Aug 11 13:37:20 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Mon, 11 Aug 2008 14:37:20 -0600 Subject: [mapserver-users] ShpTree In-Reply-To: References: Message-ID: <48A0A300.7040501@hostgis.com> Jay Kapalczynski wrote: > I am trying to figure out what I need to do/install/run to create a .qix > file (tile index) for a few of my shapefiles. > I have looked this up on a few pages and still am confused. If you installed Mapserver, then you have shptree - at least under Unixes. If you're using MS4W, I can't say whether it includes shptree. -- Gregor Mosheh / Greg Allensworth, BS, A+ 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 Mon Aug 11 13:35:41 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Mon, 11 Aug 2008 14:35:41 -0600 Subject: [mapserver-users] ShpTree In-Reply-To: References: Message-ID: <48A0A29D.3020005@hostgis.com> Jay Kapalczynski wrote: > I am trying to figure out what I need to do/install/run to create a .qix > file (tile index) for a few of my shapefiles. > I have looked this up on a few pages and still am confused. Example: shptree streets.shp That will create streets.qix Note that for Mapserver (rather, OGR) to USE the qix file, you must not specify the .shp extension in your DATA statement. If you do, the qix will simply be skipped. e.g. DATA "data/streets/streets.shp" should be: DATA "data/streets/streets" (someone correct me if this has changed) -- Gregor Mosheh / Greg Allensworth, BS, A+ 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 bfischer at houstonengineeringinc.com Mon Aug 11 14:18:36 2008 From: bfischer at houstonengineeringinc.com (Fischer, Brian) Date: Mon, 11 Aug 2008 16:18:36 -0500 Subject: [mapserver-users] ShpTree In-Reply-To: <48A0A29D.3020005@hostgis.com> References: <48A0A29D.3020005@hostgis.com> Message-ID: <2EF6E1058C047344B4DE0FD141119167C9DEE5@hex01.houstonengineeringinc.com> Jay, With the MS4W package it is included in the C:\ms4w\tools\mapserv folder. You just need to make sure you run the setenv.bat first before you run shptree command. There is documentation in the MS4W readme files that explain it further. That is what I use all the time. -Brian Brian Fischer Houston Engineering, Inc. Maple Grove, MN (763) 493-4522 -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Gregor Mosheh Sent: Monday, August 11, 2008 3:36 PM To: Jay Kapalczynski Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] ShpTree Jay Kapalczynski wrote: > I am trying to figure out what I need to do/install/run to create a > .qix file (tile index) for a few of my shapefiles. > I have looked this up on a few pages and still am confused. Example: shptree streets.shp That will create streets.qix Note that for Mapserver (rather, OGR) to USE the qix file, you must not specify the .shp extension in your DATA statement. If you do, the qix will simply be skipped. e.g. DATA "data/streets/streets.shp" should be: DATA "data/streets/streets" (someone correct me if this has changed) -- Gregor Mosheh / Greg Allensworth, BS, A+ 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 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From hellomps at gmail.com Tue Aug 12 00:58:55 2008 From: hellomps at gmail.com (ramya srinivasan) Date: Tue, 12 Aug 2008 13:28:55 +0530 Subject: [mapserver-users] Doubt Message-ID: <3702658f0808120058n3cc1886aj66452108853c8194@mail.gmail.com> Hi, i will have to display point in a map given its co-ordinates.The co-ordinates has to be given manually.What do i have to do for that? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jochen at remote.org Tue Aug 12 00:53:26 2008 From: jochen at remote.org (Jochen Topf) Date: Tue, 12 Aug 2008 09:53:26 +0200 Subject: [mapserver-users] ShpTree In-Reply-To: <48A0A29D.3020005@hostgis.com> References: <48A0A29D.3020005@hostgis.com> Message-ID: <20080812075326.GA26055@eldorado.topf.org> On Mon, Aug 11, 2008 at 02:35:41PM -0600, Gregor Mosheh wrote: > Note that for Mapserver (rather, OGR) to USE the qix file, you must not > specify the .shp extension in your DATA statement. If you do, the qix > will simply be skipped. e.g. > DATA "data/streets/streets.shp" > should be: > DATA "data/streets/streets" > (someone correct me if this has changed) I just verified this on Mapserver 5.0.0 (the on in current Ubuntu). It tries to open "data/streets/streets.shp.qix" instead of "data/streets/streets.gix". But it looks like it has already been fixed in newer versions: http://trac.osgeo.org/mapserver/changeset/7566 Jochen -- Jochen Topf jochen at remote.org http://www.remote.org/jochen/ +49-721-388298 From vtammineni at roulacglobal.com Tue Aug 12 01:32:44 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 12 Aug 2008 14:02:44 +0530 Subject: [mapserver-users] Doubt In-Reply-To: <3702658f0808120058n3cc1886aj66452108853c8194@mail.gmail.com> References: <3702658f0808120058n3cc1886aj66452108853c8194@mail.gmail.com> Message-ID: <003601c8fc55$ffbee760$ff3cb620$@com> Hi, Please check this url. http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData I hope it will help you. Thanks and Regards Venkat. From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ramya srinivasan Sent: Tuesday, August 12, 2008 1:29 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Doubt Hi, i will have to display point in a map given its co-ordinates.The co-ordinates has to be given manually.What do i have to do for that? -------------- next part -------------- An HTML attachment was scrubbed... URL: From johan.hallgren at logica.com Tue Aug 12 02:24:43 2008 From: johan.hallgren at logica.com (Hallgren, Johan) Date: Tue, 12 Aug 2008 11:24:43 +0200 Subject: [mapserver-users] Memoryproblem Message-ID: Hello I have a major problem when using imgMapObj.getBytes(). The memory will be corrupt. The problem doesn't occur when using the save function. I have not seen the problem on other servers so the problem seams to be related to a specific server (Windows Server 2003 standard edition). Error msg ++++++++++++++++++++++ Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at OSGeo.MapServer.mapscriptPINVOKE.imageObj_getBytes(HandleRef jarg1, SWIGByteArrayDelegate jarg2) at OSGeo.MapServer.imageObj.getBytes(SWIGByteArrayDelegate callback) at OSGeo.MapServer.imageObj.getBytes() at WMData.GIS.GMSAgent_WP.Libs.MapEngine.Get_Image(XmlDocument xmlDoc, Boolean bRetImage) in C:\Project\applications\GMS\GMSAgent_WP\Libs\MapEngine.cs:line 298 ++++++++++++++++++++++ I use mapserver in c# and I have version 5.2.0. /Johan Johan Hallgren Logica Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.hallgren at logica.com http://www.logica.se -------------- next part -------------- An HTML attachment was scrubbed... URL: From beartreeyoga at yahoo.co.uk Tue Aug 12 02:56:37 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Tue, 12 Aug 2008 09:56:37 +0000 (GMT) Subject: [mapserver-users] 5.2 Problems Message-ID: <820551.86371.qm@web23006.mail.ird.yahoo.com> Hi I updated ms4w using the 2.2.8 installer. Now I get this error in ms_error.txt "msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE parameter missing". I added the service parameter and i still get the error. Here is my onlineresource "wms_onlineresource" "http://localhost:8082/cgi-bin/mapserv.exe?map=d:/MyTestData/Shapes.map&SERVICE=WMS&VERSION=1.1.1" Using the above url, my WMS client gets back the WMS tree (layers in the map file) with no errors added to ms_error.txt. Any ideas on what is happening Derek Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Aug 12 03:14:53 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Tue, 12 Aug 2008 13:14:53 +0300 Subject: [mapserver-users] 5.2 Problems In-Reply-To: <820551.86371.qm@web23006.mail.ird.yahoo.com> Message-ID: You ask for WMS and get back WFS error message, is this really your situation? -Jukka Rahkonen- ________________________________ L?hett?j?: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Derek Bain L?hetetty: 12. elokuuta 2008 12:57 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] 5.2 Problems Hi I updated ms4w using the 2.2.8 installer. Now I get this error in ms_error.txt "msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE parameter missing". I added the service parameter and i still get the error. Here is my onlineresource "wms_onlineresource" "http://localhost:8082/cgi-bin/mapserv.exe?map=d:/MyTestData/Shapes.map&SERVICE=WMS&VERSION=1.1.1" Using the above url, my WMS client gets back the WMS tree (layers in the map file) with no errors added to ms_error.txt. Any ideas on what is happening Derek Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From beartreeyoga at yahoo.co.uk Tue Aug 12 03:42:04 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Tue, 12 Aug 2008 10:42:04 +0000 (GMT) Subject: [mapserver-users] 5.2 Problems Message-ID: <119535.46478.qm@web23005.mail.ird.yahoo.com> Hi Jukka This is what i get back. I should be using WMS. I have defined WMS as the connectiontype in the map file. All worked okay on the previous version of ms4w. I also tried using shp2img on my map file and it returned saying that i need to define WEB.IMAGEPATH in my map file which i did not need in the previous version. I added this and the image file generated has "msWMSLoadGetMapParams(): WMS Server Error. Invalid layer(s) given in the LAYERS parameter" As I say all worked previously. Here is my mapserv -v output if it helps anyone C:\ms4w>mapserv -v MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICO NV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUP PORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Derek Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From boolean10001 at yahoo.com Tue Aug 12 07:44:11 2008 From: boolean10001 at yahoo.com (Carlos Ruiz) Date: Tue, 12 Aug 2008 07:44:11 -0700 (PDT) Subject: [mapserver-users] Doubt In-Reply-To: <003601c8fc55$ffbee760$ff3cb620$@com> Message-ID: <141229.50236.qm@web38201.mail.mud.yahoo.com> Ramya, Please check the FEATURE section within LAYER section. LAYER ... FEATURE POINTS x y END END ... END OR LAYER ... FEATURE WKT "POINT(2000 2500)"END ... END Greetings from M?xico IC Carlos Ruiz? --- On Tue, 8/12/08, Venkat Rao Tammineni wrote: From: Venkat Rao Tammineni Subject: RE: [mapserver-users] Doubt To: "'ramya srinivasan'" , mapserver-users at lists.osgeo.org Date: Tuesday, August 12, 2008, 3:32 AM Hi, ??? Please check this url. ? ? ???http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialData ? I hope it will help you? Thanks and Regards Venkat. ? ? From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ramya srinivasan Sent: Tuesday, August 12, 2008 1:29 PM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Doubt ? Hi, i will have to display point in a map given its co-ordinates.The co-ordinates has to be given manually.What do i have to do for that? _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Tue Aug 12 07:47:34 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 12 Aug 2008 16:47:34 +0200 Subject: [mapserver-users] Memoryproblem In-Reply-To: References: Message-ID: Johan, I haven't run into this problem yet. Do you able to run the getbytes console application in the /csharp directory? Is this issue deterministic or random? Do you have an example to reproduce it? Best regards, Tamas 2008/8/12 Hallgren, Johan : > Hello > > > > I have a major problem when using imgMapObj.getBytes(). > > The memory will be corrupt. The problem doesn't occur when using the save > function. I have not seen the problem on other servers so the problem seams > to be related to a specific server (Windows Server 2003 standard edition). > > Error msg > > ++++++++++++++++++++++ > > Attempted to read or write protected memory. This is often an indication > that other memory is corrupt. > > at OSGeo.MapServer.mapscriptPINVOKE.imageObj_getBytes(HandleRef jarg1, > SWIGByteArrayDelegate jarg2) > at OSGeo.MapServer.imageObj.getBytes(SWIGByteArrayDelegate callback) > at OSGeo.MapServer.imageObj.getBytes() > at WMData.GIS.GMSAgent_WP.Libs.MapEngine.Get_Image(XmlDocument xmlDoc, > Boolean bRetImage) in > C:\Project\applications\GMS\GMSAgent_WP\Libs\MapEngine.cs:line 298 > ++++++++++++++++++++++ > > I use mapserver in c# and I have version 5.2.0. > > > > /Johan > > Johan Hallgren > > Logica > Pelle Bergs backe 3 > Box 1938, 791 19 Falun > Tel (och mobil): 023-547 46 (int: +46-2354746) > johan.hallgren at logica.com > http://www.logica.se > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From nipapada at gmail.com Tue Aug 12 07:59:49 2008 From: nipapada at gmail.com (=?ISO-8859-7?Q?=CD=DF=EA=EF=F2_=D0=E1=F0=E1=E4=DC=EA=E7=F2?=) Date: Tue, 12 Aug 2008 17:59:49 +0300 Subject: [mapserver-users] Connection to Mysql 5.0 In-Reply-To: <48A07F02.3030907@gmail.com> References: <48A07F02.3030907@gmail.com> Message-ID: <48A1A565.8000100@gmail.com> Hello to everyone! i have a problem in implementing the example i found in http://mapserver.gis.umn.edu/docs/howto/ogrmysql. I want to project some points on the map. I have created the .ovf file and the database i want to access with some appropriate data. I have also created a user and granted it with all privileges. (GRANT ALL ON 'dbase_name'.* to 'user'@localhost identified by 'password'); When i use command prompt to connect to mysql with ogrinfo.exe everything goes fine! (ogrinfo.exe -al MYSQL:my_db,user='user',password='password',host=localhost,port=3306,tables=points;). The results i get are information about the table contained in database and the contents of the selected table. Next i run ogrinfo.exe -al /path/to/ovf_file.ovf and again i get the result i expected.. (except from the warning "ERROR 4: Update access not supported fow VRT datasources Had to open data source in read-only" which is fine according to the example!). But when i use the .ovf file through the .map file ,and after a few seconds,i get the message : /Internal Server Error/ /The server encountered an internal error or misconfiguration and was unable to complete your request./ /Please contact the server administrator, admin at local.domain and inform them of the time the error occurred, and anything you might have done that may have caused the error./ /More information about this error may be available in the server error log./ Can anyone help me becuse i'm stuck with this. Is it preferable to access mysql with php\mapscript instead? And if yes,is there any informative tutorial??? Thank you in advance! Nikos Papadakis. From David.Fawcett at state.mn.us Tue Aug 12 08:09:50 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 12 Aug 2008 10:09:50 -0500 Subject: [mapserver-users] Connection to Mysql 5.0 In-Reply-To: <48A1A565.8000100@gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBFAC@s-sp22.pca.state.mn.us> Nikos, Is it possible that MapServer is using a different ogr binary than the one that you are hitting from the command line. This is really a question for the MS4W people and not you, I guess. One possible reason that you are having this problem would be if MapServer was compiled with a different ogr than the one that you are hitting with your commandline and the one that MapServer is using wasn't compiled with MySQL support. I am guessing that the MS4W maintainers could prove or destroy this theory pretty quickly... David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of nipapada at gmail.com Sent: Tuesday, August 12, 2008 10:00 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Connection to Mysql 5.0 Hello to everyone! i have a problem in implementing the example i found in http://mapserver.gis.umn.edu/docs/howto/ogrmysql. I want to project some points on the map. I have created the .ovf file and the database i want to access with some appropriate data. I have also created a user and granted it with all privileges. (GRANT ALL ON 'dbase_name'.* to 'user'@localhost identified by 'password'); When i use command prompt to connect to mysql with ogrinfo.exe everything goes fine! (ogrinfo.exe -al MYSQL:my_db,user='user',password='password',host=localhost,port=3306,tab les=points;). The results i get are information about the table contained in database and the contents of the selected table. Next i run ogrinfo.exe -al /path/to/ovf_file.ovf and again i get the result i expected.. (except from the warning "ERROR 4: Update access not supported fow VRT datasources Had to open data source in read-only" which is fine according to the example!). But when i use the .ovf file through the .map file ,and after a few seconds,i get the message : /Internal Server Error/ /The server encountered an internal error or misconfiguration and was unable to complete your request./ /Please contact the server administrator, admin at local.domain and inform them of the time the error occurred, and anything you might have done that may have caused the error./ /More information about this error may be available in the server error log./ Can anyone help me becuse i'm stuck with this. Is it preferable to access mysql with php\mapscript instead? And if yes,is there any informative tutorial??? Thank you in advance! Nikos Papadakis. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From nipapada at gmail.com Tue Aug 12 08:34:59 2008 From: nipapada at gmail.com (=?UTF-8?B?zp3Or866zr/PgiDOoM6xz4DOsc60zqzOus63z4I=?=) Date: Tue, 12 Aug 2008 18:34:59 +0300 Subject: [mapserver-users] Connection to Mysql 5.0 In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBFAC@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBFAC@s-sp22.pca.state.mn.us> Message-ID: <48A1ADA3.5060302@gmail.com> O/H Fawcett, David ??????: > Nikos, > > Is it possible that MapServer is using a different ogr binary than the > one that you are hitting from the command line. This is really a > question for the MS4W people and not you, I guess. > > One possible reason that you are having this problem would be if > MapServer was compiled with a different ogr than the one that you are > hitting with your commandline and the one that MapServer is using wasn't > compiled with MySQL support. > > I am guessing that the MS4W maintainers could prove or destroy this > theory pretty quickly... > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > nipapada at gmail.com > Sent: Tuesday, August 12, 2008 10:00 AM > To: mapserver-users at lists.osgeo.org > Subject: [mapserver-users] Connection to Mysql 5.0 > > > Hello to everyone! > > i have a problem in implementing the example i found in > http://mapserver.gis.umn.edu/docs/howto/ogrmysql. > I want to project some points on the map. > I have created the .ovf file and the database i want to access with some > > appropriate data. > I have also created a user and granted it with all privileges. (GRANT > ALL ON 'dbase_name'.* to 'user'@localhost identified by 'password'); > > When i use command prompt to connect to mysql with ogrinfo.exe > everything goes fine! > (ogrinfo.exe -al > MYSQL:my_db,user='user',password='password',host=localhost,port=3306,tab > les=points;). > The results i get are information about the table contained in database > and the contents of the selected table. > > Next i run ogrinfo.exe -al /path/to/ovf_file.ovf and again i get the > result i expected.. > (except from the warning > "ERROR 4: Update access not supported fow VRT datasources > Had to open data source in read-only" which is fine according to the > example!). > > But when i use the .ovf file through the .map file ,and after a few > seconds,i get the message : > > > /Internal Server Error/ > > /The server encountered an internal error or misconfiguration and was > unable to complete your request./ > > /Please contact the server administrator, admin at local.domain and inform > them of the time the error occurred, and anything you might have done > that may have caused the error./ > > /More information about this error may be available in the server error > log./ > > > Can anyone help me becuse i'm stuck with this. > Is it preferable to access mysql with php\mapscript instead? > > And if yes,is there any informative tutorial??? > > Thank you in advance! > Nikos Papadakis. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > Well. The ogrinfo i am using is installed with mapserver (ms4w-2.2.7-setup.exe). and the ogrinfo.exe is in C:\ms4w\tools\gdal-ogr. So i guess that mapserver is using the same binary... Anyway,i hope i get an answer !!! Thank you. From yvan.calcagni at voila.fr Tue Aug 12 16:05:10 2008 From: yvan.calcagni at voila.fr (Yvan Calcagni) Date: Wed, 13 Aug 2008 01:05:10 +0200 (CEST) Subject: [mapserver-users] Hacking PROJ4... Message-ID: <1325680.3629091218582310710.JavaMail.www@wwinf4620> Thanks David, but I tried this and it didn't work. Nevertheless I found a way to solve my problem. I'm pretty sure this solution isn't very clean but it works. So, I replaced the EPSG:27582 lon_0 parameter (previously set to 0) with this one : +lon_0=2.33722917 and I don't know why but it worked... See you. Yvan ____________________________________________________ Avant de prendre le volant, rep?rez votre itin?raire et visualisez le trafic ! http://itineraire.voila.fr/itineraire.html From paulborodaev at gmail.com Tue Aug 12 22:35:04 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Tue, 12 Aug 2008 22:35:04 -0700 (PDT) Subject: [MAPSERVER-USERS] ms4w bug: mapserv returns empty(blank) image Message-ID: <18957296.post@talk.nabble.com> I have this input projection for my layers "+proj=tmerc +lat_0=0 +lon_0=45 +k=1.000000 +x_0=0 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0,0,0 +units=mm +no_defs" (local coordsys) and this is output proj "+proj=tmerc +lat_0=0 +lon_0=45 +k=1.000000 +x_0=0 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0,0,0 +units=m +no_defs" (just mm->m) so I have a 0 0 point in my map & I found holes in some place with certain zoom scale: for ex this produces blank image. http://localhost/cgi-bin/mapserv.exe?layers=construct&map=C%3A%2FWINDOWS%2FMicrosoft.NET%2FFramework%2Fv2.0.50727%2FTemporary%20ASP.NET%20Files%2Fwem%2Ff47bfcbf%2FSession_mkkoj034s3ocw4ajt4zlfzvp%2F0_cicbase.map&map_imagetype=AGG_JPEG&format=image%2Fjpeg&ts=1218605020578&session=mkkoj034s3ocw4ajt4zlfzvp&mode=map&mapext=-81.16385911179067+-11.48545176110251+-0.7656967840724462+68.91271056661571&imgext=-81.16385911179067+-11.48545176110251+-0.7656967840724462+68.91271056661571&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 I think mapserv will return empty image for such kind of bbox independently of map file content. mapscript c# draws normal image for this extent/scale; map file is correct; as a solution I can use my own web service to draw map tiles in this particular cases, but now I have changed my output projection to "+proj=tmerc +lat_0=48.70975 +lon_0=44.51205 +k=1.000000 +x_0=0 +y_0=0 +ellps=krass +towgs84=23.92,-141.27,-80.9,0,0,0,0 +units=m +no_defs" (normalized to real world) and all works fine)) But this ms4w bug(?) still exists. -- View this message in context: http://www.nabble.com/ms4w-bug%3A-mapserv-returns-empty%28blank%29-image-tp18957296p18957296.html Sent from the Mapserver - User mailing list archive at Nabble.com. From hellomps at gmail.com Tue Aug 12 22:52:52 2008 From: hellomps at gmail.com (ramya srinivasan) Date: Wed, 13 Aug 2008 11:22:52 +0530 Subject: [mapserver-users] Converting pixel position to geographic co-ordinates Message-ID: <3702658f0808122252n561905fbp19740e79c4f20069@mail.gmail.com> Hi, What is the function used to convert pixel position to geographic co-ordinates in php/mapscript? -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulborodaev at gmail.com Tue Aug 12 22:56:09 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Tue, 12 Aug 2008 22:56:09 -0700 (PDT) Subject: [MAPSERVER-USERS] Memoryproblem In-Reply-To: References: Message-ID: <18957433.post@talk.nabble.com> I use mapscript c# in my project running in ms win 2003 std/ent r2 and iis6 all works perfect, but some problem related with writing png's exists in .net (v 2/3.5) imageObj imgRaw=null; imgRaw = map.draw(); //this works (without changing image format) using (MemoryStream ms = new MemoryStream(imgRaw.getBytes())) ms.WriteTo(response.OutputStream); //or this (note: the second memory stream,actually, needed only for iutputing png's!) imageFormat = ImageFormat.Png; using (Image img = Image.FromStream(new MemoryStream(imgRaw.getBytes()))) { using (MemoryStream ms = new MemoryStream()) { img.Save(ms, imageFormat); ms.WriteTo(response.OutputStream); } } before version 5.2 I had memory corruption problems in some web service requests (reason - unknown, perhaps it was related with postgis bug - ticket now closed) during map.draw(), but now all ok. +consideration: mapserv.exe (especially in fastcgi mode) much more faster Hallgren, Johan wrote: > > Hello > > I have a major problem when using imgMapObj.getBytes(). > > The memory will be corrupt. The problem doesn't occur when using the save > function. I have not seen the problem on other servers so the problem > seams to be related to a specific server (Windows Server 2003 standard > edition). > > Error msg > > ++++++++++++++++++++++ > > Attempted to read or write protected memory. This is often an indication > that other memory is corrupt. > > at OSGeo.MapServer.mapscriptPINVOKE.imageObj_getBytes(HandleRef jarg1, > SWIGByteArrayDelegate jarg2) > at OSGeo.MapServer.imageObj.getBytes(SWIGByteArrayDelegate callback) > at OSGeo.MapServer.imageObj.getBytes() > at WMData.GIS.GMSAgent_WP.Libs.MapEngine.Get_Image(XmlDocument xmlDoc, > Boolean bRetImage) in > C:\Project\applications\GMS\GMSAgent_WP\Libs\MapEngine.cs:line 298 > ++++++++++++++++++++++ > > I use mapserver in c# and I have version 5.2.0. > /Johan > Johan Hallgren > Logica > Pelle Bergs backe 3 > Box 1938, 791 19 Falun > Tel (och mobil): 023-547 46 (int: +46-2354746) > johan.hallgren at logica.com > http://www.logica.se > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Memoryproblem-tp18940658p18957433.html Sent from the Mapserver - User mailing list archive at Nabble.com. From paulborodaev at gmail.com Tue Aug 12 23:16:12 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Tue, 12 Aug 2008 23:16:12 -0700 (PDT) Subject: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> References: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> Message-ID: <18957581.post@talk.nabble.com> For calculating MIN/MAXSCALEDENOM I use openlayers ria js lib (automatic zoom levels, supports map server layers), which is part of my web project. I have the same question as you - howto to get current scale value with mapscript. You can dig js code (openlayers: Map.js (getScale function) FixedZoomLevels.js (getResolution function)) to find solution. gisrob wrote: > > Hi Guys > > This is probably a bit of a schoolboy error, but I'm having real > problems with my latest mapfile and MIN/MAXSCALEDENOMs. > > My mapfile contains sections like this.... > > MAP > EXTENT 235000 132715 300000 200000 > RESOLUTION 96.00 > UNITS METERS > SIZE 500 500 > > PROJECTION > "init=epsg:27700" > END > > LAYER > MAXSCALEDENOM 500000 > MINSCALEDENOM 0 > NAME 'TEST' > TILEINDEX "SHAPEFILE" > TILEITEM "location" > END > > Now, my basic maths suggests that if I do a shp2img on this mapfile, I > should get a valid map. Heres my working > > minx=235000 > miny=132715 > maxx=300000 > maxy=200000 > > > pixels per screen meter (ppsm)= ( 100 cm / 2.54 cm ) * resolution of > 96 = 3779.527555 > > Scale = ( ( ( ( maxx - minx) * ppsm ) / imagewidth ) + ( ( ( maxy - > miny) * ppsm ) / imageheight ) / 2 > > I calculate this to be 499974.8026 > > However, the map is empty. An image finally appears if I change the > MAXSCALEDENOM value to 509631 > > What schoolboy error have I made? Its all the more confusing because, > before my MapServer 5 upgrade, this seemed to be working fine! > > Many thanks in advance > > Rob > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Problems-calculating-MAXSCALES-tp18926188p18957581.html Sent from the Mapserver - User mailing list archive at Nabble.com. From johan.hallgren at logica.com Tue Aug 12 23:23:05 2008 From: johan.hallgren at logica.com (Hallgren, Johan) Date: Wed, 13 Aug 2008 08:23:05 +0200 Subject: [mapserver-users] Memoryproblem In-Reply-To: References: Message-ID: Hello Tamas I'm glad that you supports me here:) We are getting closer to the problem:) Your code (getbytes.exe) runs fine on my own pc, but when I move the code to the server the problem starts. I made a new project with your cs-file and named it getbytemap, but it's actually the same code as the getbytes.exe. The output below doesn't actually write the error but the "GetBytes:" is the first part och the exception message. I can guess that the memory already is corrupt. When I do the same with the debugger you can see the watch output below. One difference I have in mind compared to other environments I have used is that this server have more power. In the task manager there is eight CPUs. The problem is deterministic with the getbyte-code. Console output +++++++++++++++++++++++++++++++++++ C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes GetBytes: C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes Drawing map: 'GIMS' using imageObj.write GetBytes: C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes GetBytes: C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes GetBytes: C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes GetBytes: +++++++++++++++++++++++++++++++++++ Watch output +++++++++++++++++++++++++++++++++++ ex.Message "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." string +++++++++++++++++++++++++++++++++++ /Johan ___________________________________ Johan Hallgren Logica Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.hallgren at logica.com http://www.logica.se -----Original Message----- From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: den 12 augusti 2008 16:48 To: Hallgren, Johan Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Memoryproblem Johan, I haven't run into this problem yet. Do you able to run the getbytes console application in the /csharp directory? Is this issue deterministic or random? Do you have an example to reproduce it? Best regards, Tamas 2008/8/12 Hallgren, Johan : > Hello > > > > I have a major problem when using imgMapObj.getBytes(). > > The memory will be corrupt. The problem doesn't occur when using the > save function. I have not seen the problem on other servers so the > problem seams to be related to a specific server (Windows Server 2003 standard edition). > > Error msg > > ++++++++++++++++++++++ > > Attempted to read or write protected memory. This is often an > indication that other memory is corrupt. > > at OSGeo.MapServer.mapscriptPINVOKE.imageObj_getBytes(HandleRef > jarg1, SWIGByteArrayDelegate jarg2) > at OSGeo.MapServer.imageObj.getBytes(SWIGByteArrayDelegate callback) > at OSGeo.MapServer.imageObj.getBytes() > at WMData.GIS.GMSAgent_WP.Libs.MapEngine.Get_Image(XmlDocument > xmlDoc, Boolean bRetImage) in > C:\Project\applications\GMS\GMSAgent_WP\Libs\MapEngine.cs:line 298 > ++++++++++++++++++++++ > > I use mapserver in c# and I have version 5.2.0. > > > > /Johan > > Johan Hallgren > > Logica > Pelle Bergs backe 3 > Box 1938, 791 19 Falun > Tel (och mobil): 023-547 46 (int: +46-2354746) > johan.hallgren at logica.com http://www.logica.se > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From paulborodaev at gmail.com Tue Aug 12 23:31:13 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Tue, 12 Aug 2008 23:31:13 -0700 (PDT) Subject: [MAPSERVER-USERS] problem with map.zoomToExtent In-Reply-To: <18902842.post@talk.nabble.com> References: <18902842.post@talk.nabble.com> Message-ID: <18957700.post@talk.nabble.com> OpenLayers works perfectly if it configured correctly. first of all you need to setup base OpenLayers layer (map server layer in your case as I understand). Note: OL uses some default values for map obj: DD units and EPSG:4326 proj (wgs84 LL) ... etc. You need to spec. your own. spatialreference.org can help. from my exp. - in current 2.6 version you need to "normalize" map obj with some parameters from base layer / I mean: 'maxExtent','minExtent','maxScale','minScale','maxResolution','minResolution','units','projection'. Older versions (for ex. used in fusion mapping js lib) did this automatically. S.Reena wrote: > > i have three files... one html, one javascript and one php....i am > handling database through php file and sending the result of that to a > function in javascript file.. > echo " \"javascript:zoomVillage($box1,$box2,$box3,$box4)\" Open Map "; > > These are ST_box2D() data which i hv split in 4 parts ...the thing is if i > alert these values in that function..its working..but i i do like > > map.zoomToExtent(new OpenLayers.Bounds(str1,str2,str3,str4)) where str1 > etc contain the passed values.. > > this doesn't work.. > > Can any1 help? > > Cheers, > S.Reena > -- View this message in context: http://www.nabble.com/problem-with-map.zoomToExtent-tp18902842p18957700.html Sent from the Mapserver - User mailing list archive at Nabble.com. From lysholm at tut.by Tue Aug 12 23:38:23 2008 From: lysholm at tut.by (George A. Dubin) Date: Wed, 13 Aug 2008 09:38:23 +0300 Subject: [mapserver-users] Tiled image handling error Message-ID: Hi all! I'm having a problem with tiled tiff when mapserver is working as WMS. While trying to display "navi" layer is produces an error: msDrawMap(): Image handling error. Failed to draw layer named navi;. msSHPOpenFile(): Unable to access file. (/var/www/map/shapes/navi.tif) msSHPOpenFile(): Unable to access file. (/var/www/map/shapes/navi.tif) But the tiff exists there and owned by Apache user... What am I doing wrong? Layer section in my mapfile: LAYER NAME navi TYPE LINE TILEINDEX "/var/www/map/shapes/navi.shp" TILEITEM "LOCATION" STATUS OFF METADATA wms_title "navi" wms_abstract "navigation map" wms_srs "EPSG:32235" END CLASS NAME "Navi" END END Other layers are working - 2 rasters and one postgis layer with points. -- ?????????? M2, ????????????? ???????? ?????????? Opera: http://www.opera.com/mail/ From emailtord at yahoo.com Tue Aug 12 23:35:34 2008 From: emailtord at yahoo.com (Rohalah Delpak) Date: Tue, 12 Aug 2008 23:35:34 -0700 (PDT) Subject: [mapserver-users] MS4W package doesn't have fribidi2 included in it yet Message-ID: <551208.49270.qm@web56109.mail.re3.yahoo.com> Hi MS4W package doesn't have fribidi2 included in it yet. how can i solve this issue? ? i use MS4W 5.2 , that its not show Arabic labels correctly. ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Tue Aug 12 23:54:19 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 13 Aug 2008 09:54:19 +0300 Subject: [mapserver-users] Tiled image handling error In-Reply-To: Message-ID: Hi, A few suggestions: > TYPE LINE Should probably be TYPE RASTER > STATUS OFF STATUS DEFAULT or STATUS ON might be better alternatives If those changes will not help and you only have one tiff file to be displayed on layer "navi" then you can simplify map file a bit by leaving out TILEINDEX and TILEITEM and pointing directly to your image by using DATA "/var/www/map/shapes/navi.shp" -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > George A. Dubin > L?hetetty: 13. elokuuta 2008 9:38 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Tiled image handling error > > Hi all! I'm having a problem with tiled tiff when mapserver > is working as WMS. While trying to display "navi" layer is > produces an error: > > msDrawMap(): Image handling error. Failed to draw layer named navi;. > msSHPOpenFile(): Unable to access file. (/var/www/map/shapes/navi.tif) > msSHPOpenFile(): Unable to access file. (/var/www/map/shapes/navi.tif) > > But the tiff exists there and owned by Apache user... What am > I doing wrong? > > Layer section in my mapfile: > > LAYER > NAME navi > > TYPE LINE > TILEINDEX "/var/www/map/shapes/navi.shp" > TILEITEM "LOCATION" > STATUS OFF > > METADATA > wms_title "navi" > wms_abstract "navigation map" > wms_srs "EPSG:32235" > END > > CLASS > NAME "Navi" > END > END > > Other layers are working - 2 rasters and one postgis layer > with points. > > -- > ?????????? M2, ????????????? ???????? ?????????? Opera: > http://www.opera.com/mail/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From lysholm at tut.by Wed Aug 13 00:12:59 2008 From: lysholm at tut.by (George A. Dubin) Date: Wed, 13 Aug 2008 10:12:59 +0300 Subject: [mapserver-users] Tiled image handling error In-Reply-To: References: Message-ID: On Wed, 13 Aug 2008 09:54:19 +0300, Rahkonen Jukka wrote: TYPE RASTER - ofcourse, this helped! Thanks a lot!!!! I feel myself really stupid now =)) ... > Hi, > > A few suggestions: > >> TYPE LINE > Should probably be TYPE RASTER >> STATUS OFF > STATUS DEFAULT or STATUS ON might be better alternatives > > If those changes will not help and you only have one tiff file to be > displayed on layer "navi" then you can simplify map file a bit by > leaving out TILEINDEX and TILEITEM and pointing directly to your image > by using > DATA "/var/www/map/shapes/navi.shp" > > -Jukka Rahkonen- > > >> -----Alkuper?inen viesti----- >> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta >> George A. Dubin >> L?hetetty: 13. elokuuta 2008 9:38 >> Vastaanottaja: mapserver-users at lists.osgeo.org >> Aihe: [mapserver-users] Tiled image handling error >> >> Hi all! I'm having a problem with tiled tiff when mapserver >> is working as WMS. While trying to display "navi" layer is >> produces an error: >> >> msDrawMap(): Image handling error. Failed to draw layer named navi;. >> msSHPOpenFile(): Unable to access file. (/var/www/map/shapes/navi.tif) >> msSHPOpenFile(): Unable to access file. (/var/www/map/shapes/navi.tif) >> >> But the tiff exists there and owned by Apache user... What am >> I doing wrong? >> >> Layer section in my mapfile: >> >> LAYER >> NAME navi >> >> TYPE LINE >> TILEINDEX "/var/www/map/shapes/navi.shp" >> TILEITEM "LOCATION" >> STATUS OFF >> >> METADATA >> wms_title "navi" >> wms_abstract "navigation map" >> wms_srs "EPSG:32235" >> END >> >> CLASS >> NAME "Navi" >> END >> END >> >> Other layers are working - 2 rasters and one postgis layer >> with points. >> >> -- >> ?????????? M2, ????????????? ???????? ?????????? Opera: >> http://www.opera.com/mail/ >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> -- ?????????? M2, ????????????? ???????? ?????????? Opera: http://www.opera.com/mail/ From gis at vanbooth.com Wed Aug 13 05:56:28 2008 From: gis at vanbooth.com (Rob) Date: Wed, 13 Aug 2008 13:56:28 +0100 Subject: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: <18957581.post@talk.nabble.com> References: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> <18957581.post@talk.nabble.com> Message-ID: <2a955f950808130556m421b41eem1e131905dd22a7ea@mail.gmail.com> OK, I hesitate to say it, but this looks like a bug to me. But I'm still convinced that it must be something I have done wrong as this seems too fundamental to have slipped through the net without anybody else noticing it. I have created a test case, and can reproduce on an MS4W installation on my laptop away from the server. Using MS4W (MapServer 5.0.2) the scales don't seem to match as per my previous message, and no image is created by a basic shp2img call. Using MS4W 1.5.4 (MapServer 4.8.3) the scales work as I would expect, and shp2img creates a valid image. I've uploaded my test data here - http://sites.google.com/a/vanbooth.com/transfer/Home There are two test map files - one for MapServer 5.0.2, and one for 4.8.3 There is a TIF (apols for the size) and a corresponding TFW file. Can someone confirm that I haven't made a stupid mistake? - which is what I am expecting :) Many thanks in advance Rob From yassefa at dmsolutions.ca Wed Aug 13 05:43:20 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 13 Aug 2008 08:43:20 -0400 Subject: [mapserver-users] MS4W package doesn't have fribidi2 included in it yet In-Reply-To: <551208.49270.qm@web56109.mail.re3.yahoo.com> References: <551208.49270.qm@web56109.mail.re3.yahoo.com> Message-ID: <48A2D6E8.4080303@dmsolutions.ca> It is included in the latest ms4w 2.2.8. (for details: http://bugzilla.maptools.org/show_bug.cgi?id=1914) Rohalah Delpak wrote: > Hi > MS4W package doesn't have fribidi2 included in it yet. > how can i solve this issue? > > i use MS4W 5.2 , that its not show Arabic labels correctly. > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From st at aquaterra.be Wed Aug 13 05:54:35 2008 From: st at aquaterra.be (Stijn Tallir) Date: Wed, 13 Aug 2008 14:54:35 +0200 Subject: [mapserver-users] Increasing mapserver cgi memory cache Message-ID: <831A84007FC04FCDBEB20899256725AF@stijnt> Hi, Is there a way to increase the memory cache for the mapserver cgi when compiling? Something like the following parameter for gdal: dfWarpMemoryLimit: the amount of memory (in bytes) that the warp API is allowed to use for caching. This is in addition to the memory already allocated to the GDAL caching (as per GDALSetCacheMax()). May be 0.0 to use default memory settings.. Kind regards, Stijn -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulborodaev at gmail.com Wed Aug 13 06:22:17 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Wed, 13 Aug 2008 06:22:17 -0700 (PDT) Subject: [MAPSERVER-USERS] problem: mapserv produces truncated image Message-ID: <18962950.post@talk.nabble.com> I have a correct map file & map extent set to some value tuple when I request map tiles (256x256) I use urls like this http://localhost/cgi-bin/mapserv.exe?layers=district_boundary&map=C%3A%2FWINDOWS%2FMicrosoft.NET%2FFramework%2Fv2.0.50727%2FTemporary%20ASP.NET%20Files%2Fwem%2Ff47bfcbf%2FSession_wdndwv554k5bdgzloezwkfng%2F0_cicbase.map&map_imagetype=AGG_JPEG&format=image%2Fjpeg&ts=1218632591362&session=wdndwv554k5bdgzloezwkfng&mode=map&mapext=45558.73493975904+-5410484.26506024+66216.46987951807+-5389826.530120482&imgext=45558.73493975904+-5410484.26506024+66216.46987951807+-5389826.530120482&map_size=256+256&imgx=128&imgy=128&imgxy=256+256 all works fine but for my overview map I want to get small (180x90) image in single tile mode: http://localhost/cgi-bin/mapserv.exe?layers=street_axis%20water_resources%20district_boundary%20industrial_estate%20private_estate%20cottage%20culture_growth%20natural_growth%20highrise_estate%20graveyard&map=C%3A%2FWINDOWS%2FMicrosoft.NET%2FFramework%2Fv2.0.50727%2FTemporary%20ASP.NET%20Files%2Fwem%2Ff47bfcbf%2FSession_0nqmmljy3sq112anxcbz50yb%2F0_cicbase.map&map_imagetype=AGG_JPEG&format=image%2Fjpeg&ts=1218633146208&session=0nqmmljy3sq112anxcbz50yb&mode=map&mapext=-4660.150836680041+-5425914.804049532+102501.84916331996+-5372333.804049532&imgext=-4660.150836680041+-5425914.804049532+102501.84916331996+-5372333.804049532&map_size=180+90&imgx=90&imgy=45&imgxy=180+90 but mapserv produces truncated image http://www.nabble.com/file/p18962950/truncated.jpg my web service (it's slower than mapserv) produces normal image http://www.nabble.com/file/p18962950/normal.jpg my code: private void emulateMapServer(HttpContext context, mapObj map) { HttpRequest request = context.Request; HttpResponse response = context.Response; HttpServerUtility server = context.Server; int i; ArrayList layersQuery = new ArrayList(context.Server.UrlDecode(request.QueryString["layers"]).Split(' ')); string imageType=context.Server.UrlDecode(request.QueryString["map_imagetype"]);//AGG_PNG24 string format=context.Server.UrlDecode(request.QueryString["format"]);//"image/png" string queryFile=context.Server.UrlDecode(request.QueryString["queryFile"]); string[] extentRaw=context.Server.UrlDecode(request.QueryString["mapext"]).Split(' '); string[] mapSize=context.Server.UrlDecode(request.QueryString["map_size"]).Split(' '); for (i = 0; i < map.numlayers; i++) { using (layerObj layer = map.getLayer(i)) if (layersQuery.Contains(layer.name))//Default { if (layer.status != mapscript.MS_ON) layer.status = mapscript.MS_ON; //layer.setFilter(""); } else if (layer.status != mapscript.MS_OFF) layer.status = mapscript.MS_OFF; } rectObj currentExtent = new rectObj(map.extent.minx, map.extent.miny, map.extent.maxx, map.extent.maxy, 0);//map.extent rectObj newExtent = new rectObj(double.Parse(extentRaw[0], CultureInfo.InvariantCulture.NumberFormat), double.Parse(extentRaw[1], CultureInfo.InvariantCulture.NumberFormat), double.Parse(extentRaw[2], CultureInfo.InvariantCulture.NumberFormat), double.Parse(extentRaw[3], CultureInfo.InvariantCulture.NumberFormat), 0);//Convert.ToDouble(); if (currentExtent.minx != newExtent.minx || currentExtent.maxx != newExtent.maxx || currentExtent.miny != newExtent.miny || currentExtent.maxy != newExtent.maxy) map.extent = newExtent; if (map.imagetype != imageType) map.setImageType(imageType); int newWidth = int.Parse(mapSize[0]); int newHeight = int.Parse(mapSize[1]); if (map.width != newWidth || map.height != newHeight) { map.width = newWidth; map.height = newHeight; } response.ContentType = format;//outputFormatObj.mimetype? imageObj imgRaw=null; if (queryFile!=null) map.loadQuery(queryFile); if (validateQuery(map)) { if (map.querymap.status != mapscript.MS_ON) map.querymap.status = mapscript.MS_ON; imgRaw=map.drawQuery(); } else { if (map.querymap.status != mapscript.MS_OFF) map.querymap.status = mapscript.MS_OFF; imgRaw = map.draw(); } using (MemoryStream ms = new MemoryStream(imgRaw.getBytes())) ms.WriteTo(response.OutputStream); } nothing unusual. how can I do it woth mapserv? -- View this message in context: http://www.nabble.com/problem%3A-mapserv-produces-truncated-image-tp18962950p18962950.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at gmail.com Wed Aug 13 06:26:51 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 13 Aug 2008 15:26:51 +0200 Subject: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: <2a955f950808130556m421b41eem1e131905dd22a7ea@mail.gmail.com> References: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> <18957581.post@talk.nabble.com> <2a955f950808130556m421b41eem1e131905dd22a7ea@mail.gmail.com> Message-ID: You can refer to the msCalculateScale in mapscale.c to see how the scaledenom is calculated by mapserver: center_y = (extent.miny+extent.maxy)/2.0; md = (width-1)/(resolution*msInchesPerUnit(units, center_y)); /* remember, we use a pixel-center to pixel-center extent, hence the width-1 */ gd = extent.maxx - extent.minx; *scale = gd/md; In case if UNITS is decimal_degrees then the value may be corrected based of the latitude of the center of the map, (See msInchesPerUnit for more details) otherwise the following constants are used: static char *unitText[5]={"in", "ft", "mi", "m", "km"}; double inchesPerUnit[6]={1, 12, 63360.0, 39.3701, 39370.1, 4374754}; Best regards, Tamas 2008/8/13 Rob : > OK, I hesitate to say it, but this looks like a bug to me. But I'm > still convinced that it must be something I have done wrong as this > seems too fundamental to have slipped through the net without anybody > else noticing it. > > I have created a test case, and can reproduce on an MS4W installation > on my laptop away from the server. > > Using MS4W (MapServer 5.0.2) the scales don't seem to match as per my > previous message, and no image is created by a basic shp2img call. > Using MS4W 1.5.4 (MapServer 4.8.3) the scales work as I would expect, > and shp2img creates a valid image. > > I've uploaded my test data here - > http://sites.google.com/a/vanbooth.com/transfer/Home > > There are two test map files - one for MapServer 5.0.2, and one for 4.8.3 > There is a TIF (apols for the size) and a corresponding TFW file. > > Can someone confirm that I haven't made a stupid mistake? - which is > what I am expecting :) > > Many thanks in advance > > Rob > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From szekerest at gmail.com Wed Aug 13 06:36:24 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 13 Aug 2008 15:36:24 +0200 Subject: [mapserver-users] Memoryproblem In-Reply-To: References: Message-ID: Johan, I wonder if this was a Win 2003 issue, since all of the windows builder are running on Win 2003 at the buildbot and the build process includes testing the getBytes function. How is your mapfile looking like? Which mapserver version are you testing with. Tamas 2008/8/13 Hallgren, Johan : > Hello Tamas > > I'm glad that you supports me here:) > > We are getting closer to the problem:) > > Your code (getbytes.exe) runs fine on my own pc, but when I move the code to the server the problem starts. > > I made a new project with your cs-file and named it getbytemap, but it's actually the same code as the getbytes.exe. The output below doesn't actually write the error but the "GetBytes:" is the first part och the exception message. I can guess that the memory already is corrupt. When I do the same with the debugger you can see the watch output below. > > One difference I have in mind compared to other environments I have used is that this server have more power. In the task manager there is eight CPUs. > > The problem is deterministic with the getbyte-code. > > Console output > +++++++++++++++++++++++++++++++++++ > C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png > Drawing map: 'GIMS' using imageObj.getBytes > GetBytes: > > C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png > Drawing map: 'GIMS' using imageObj.getBytes > Drawing map: 'GIMS' using imageObj.write > GetBytes: > > C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png > Drawing map: 'GIMS' using imageObj.getBytes > GetBytes: > > C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png > Drawing map: 'GIMS' using imageObj.getBytes > GetBytes: > > C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map c:\temp\t.png > Drawing map: 'GIMS' using imageObj.getBytes > GetBytes: > +++++++++++++++++++++++++++++++++++ > > Watch output > +++++++++++++++++++++++++++++++++++ > ex.Message "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." string > +++++++++++++++++++++++++++++++++++ > > /Johan > > ___________________________________ > > > Johan Hallgren > > > Logica > Pelle Bergs backe 3 > Box 1938, 791 19 Falun > Tel (och mobil): 023-547 46 (int: +46-2354746) > johan.hallgren at logica.com > http://www.logica.se > > -----Original Message----- > From: Tamas Szekeres [mailto:szekerest at gmail.com] > Sent: den 12 augusti 2008 16:48 > To: Hallgren, Johan > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Memoryproblem > > Johan, > > I haven't run into this problem yet. Do you able to run the getbytes console application in the /csharp directory? > Is this issue deterministic or random? Do you have an example to reproduce it? > > Best regards, > > Tamas > > > 2008/8/12 Hallgren, Johan : >> Hello >> >> >> >> I have a major problem when using imgMapObj.getBytes(). >> >> The memory will be corrupt. The problem doesn't occur when using the >> save function. I have not seen the problem on other servers so the >> problem seams to be related to a specific server (Windows Server 2003 standard edition). >> >> Error msg >> >> ++++++++++++++++++++++ >> >> Attempted to read or write protected memory. This is often an >> indication that other memory is corrupt. >> >> at OSGeo.MapServer.mapscriptPINVOKE.imageObj_getBytes(HandleRef >> jarg1, SWIGByteArrayDelegate jarg2) >> at OSGeo.MapServer.imageObj.getBytes(SWIGByteArrayDelegate callback) >> at OSGeo.MapServer.imageObj.getBytes() >> at WMData.GIS.GMSAgent_WP.Libs.MapEngine.Get_Image(XmlDocument >> xmlDoc, Boolean bRetImage) in >> C:\Project\applications\GMS\GMSAgent_WP\Libs\MapEngine.cs:line 298 >> ++++++++++++++++++++++ >> >> I use mapserver in c# and I have version 5.2.0. >> >> >> >> /Johan >> >> Johan Hallgren >> >> Logica >> Pelle Bergs backe 3 >> Box 1938, 791 19 Falun >> Tel (och mobil): 023-547 46 (int: +46-2354746) >> johan.hallgren at logica.com http://www.logica.se >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > From gis at vanbooth.com Wed Aug 13 06:53:29 2008 From: gis at vanbooth.com (Rob) Date: Wed, 13 Aug 2008 14:53:29 +0100 Subject: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: References: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> <18957581.post@talk.nabble.com> <2a955f950808130556m421b41eem1e131905dd22a7ea@mail.gmail.com> Message-ID: <2a955f950808130653v30e4acc1m1090557a7acbd2eb@mail.gmail.com> 2008/8/13 Tamas Szekeres : > You can refer to the msCalculateScale in mapscale.c to see how the > scaledenom is calculated by mapserver: > > center_y = (extent.miny+extent.maxy)/2.0; > md = (width-1)/(resolution*msInchesPerUnit(units, center_y)); /* > remember, we use a pixel-center to pixel-center extent, hence the > width-1 */ > gd = extent.maxx - extent.minx; > *scale = gd/md; > Thanks Tamas. From plugging in my numbers into this formula, it looks like this could be where we are getting the discrepancy. If I change the (width-1) to be width, then I get scale figures that correspond to what I would expect, and what the ESRI GIS Clients hitting my WMS service seems to think that the scale should be. From the dates in TRAC it certainly looks like this was changed between 4.8.3 and 5.0.2. So, I guess my questions now are - 1) Is this a bug? 2) How can I make it work again, short of hacking mapscale.c myself to remove the -1 in the md calculation? Checking TRAC (Change 6529), it looks like I would have to hack the maptemplate.c as well. FWIW, I'm not using the cgi interface, but am using shp2img and mapscript. 6529 seems to have come about to fix Bug #2166 - http://trac.osgeo.org/mapserver/ticket/2166 Any advice VERY greatfully accepted Rob From szekerest at gmail.com Wed Aug 13 07:07:43 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 13 Aug 2008 16:07:43 +0200 Subject: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: <2a955f950808130653v30e4acc1m1090557a7acbd2eb@mail.gmail.com> References: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> <18957581.post@talk.nabble.com> <2a955f950808130556m421b41eem1e131905dd22a7ea@mail.gmail.com> <2a955f950808130653v30e4acc1m1090557a7acbd2eb@mail.gmail.com> Message-ID: 2008/8/13 Rob : > > If I change the (width-1) to be width, then I get scale figures that > correspond to what I would expect, and what the ESRI GIS Clients > hitting my WMS service seems to think that the scale should be. From > the dates in TRAC it certainly looks like this was changed between > 4.8.3 and 5.0.2. > I'd prefer back out r6529 and go with a double based calculation instead of it. However I'm not sure how this will affect the original problem, so you should reopen this bug by pointing out the problems with the current scale calculation you encountered. Best regards, Tamas From johan.hallgren at logica.com Wed Aug 13 07:09:52 2008 From: johan.hallgren at logica.com (Hallgren, Johan) Date: Wed, 13 Aug 2008 16:09:52 +0200 Subject: [mapserver-users] Memoryproblem In-Reply-To: References: Message-ID: Hello I have MapServer 5.2.0 and I have built the bin by myself. I use Windows Server 2003 standard edition. I also have tried to turn off all layers in the file and I have also removed all layes from the mapfile and still there is the same problem. Here is the file: +++++++++++++++++++++++++++ # # Start of map file # MAP NAME GIMS STATUS ON EXTENT 223559 6043080 2944725 7727610 # 1470448 6850024 1471966 6851089 SIZE 500 500 UNITS METERS IMAGECOLOR 255 255 255 FONTSET "D:\apps\GMSAgent\MapFiles\fonts.txt" SYMBOLSET "D:\apps\GMSAgent\MapFiles\Symbol\symbolset.sym" SHAPEPATH "D:\data\Mapdata\GIMS" RESOLUTION 96 # DEBUG 5 # CONFIG "MS_ERRORFILE" "D:\apps\GMSAgent\log\mapserver.log" # IMAGETYPE PNG OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END WEB TEMPLATE "c:\temp\template.txt" END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON #STATUS embed END # # Start of layer definitions # LAYER NAME "Sj?ar" TYPE POLYGON STATUS ON DATA "vv/sj" TEMPLATE "c:\temp\template.txt" MAXSCALE 750000 CLASS STYLE OUTLINECOLOR 0 0 255 COLOR 165 250 255 END END END LAYER NAME "Stora Sj?ar" TYPE POLYGON STATUS ON DATA "vv/sj_large" TEMPLATE "c:\temp\template.txt" MINSCALE 750000 CLASS STYLE OUTLINECOLOR 0 0 255 COLOR 165 250 255 END END END LAYER NAME "Sveriges vatten" TYPE POLYGON STATUS ON DATA "vv/rsv_hv_grid" TEMPLATE "c:\temp\template.txt" MINSCALE 30000 CLASS STYLE COLOR 165 250 255 END END END LAYER NAME "?ar" TYPE POLYGON STATUS ON DATA "vv/Or" TEMPLATE "c:\temp\template.txt" MAXSCALE 300000 MINSCALE 30000 CLASS STYLE OUTLINECOLOR 0 130 255 COLOR 255 255 255 END END END LAYER NAME "T?torter" TYPE POLYGON STATUS ON DATA "vv/TATYT" TEMPLATE "c:\temp\template.txt" MAXSCALE 1000000 CLASS STYLE OUTLINECOLOR 0 0 0 COLOR 210 210 210 END END END LAYER NAME "V?gar" TYPE LINE STATUS ON DATA "vv/vdb_m" TEMPLATE "c:\temp\template.txt" MAXSCALE 2000000 CLASS EXPRESSION ([VAEGNR] > 1 AND [VAEGNR] < 100) STYLE SYMBOL solid SIZE 2 COLOR 105 105 105 END END CLASS MAXSCALE 1000000 EXPRESSION ([VAEGNR] >= 100 AND [VAEGNR] < 500) STYLE SYMBOL solid SIZE 2 COLOR 105 105 105 END END CLASS MAXSCALE 1000000 EXPRESSION ([VAEGNR] >= 500) STYLE COLOR 105 105 105 END END END LAYER NAME "Gr?nser" TYPE LINE STATUS ON DATA "vv/Granser" TEMPLATE "c:\temp\template.txt" CLASS EXPRESSION ([TYP] = 5) STYLE SYMBOL dot COLOR 255 173 0 SIZE 2 END END CLASS EXPRESSION ([TYP] = 6) STYLE COLOR 255 173 0 END END CLASS EXPRESSION ([TYP] = 7) STYLE COLOR 255 173 0 END END CLASS EXPRESSION ([TYP] = 8) STYLE SYMBOL solid COLOR 255 173 0 SIZE 2 END END END LAYER NAME "Vattendrag" TYPE LINE STATUS ON DATA "vv/vd" TEMPLATE "c:\temp\template.txt" MAXSCALE 500000 CLASS STYLE COLOR 0 219 255 END END END LAYER NAME "Texter" TYPE LINE STATUS ON DATA "vv/TATTXT" TEMPLATE "c:\temp\template.txt" MAXSCALE 1250000 LABELITEM "TEXT" CLASS LABEL ENCODING CP437 TYPE truetype FONT verdanab SIZE 10 END END END LAYER NAME "Texter sm?orter" TYPE LINE STATUS ON DATA "vv/SMAORTTX" TEMPLATE "c:\temp\template.txt" MAXSCALE 1250000 LABELITEM "TEXT" CLASS LABEL ENCODING CP437 TYPE truetype FONT verdana SIZE 8 END END END LAYER NAME "Sverige" STATUS ON TILEINDEX "D:\data\Mapdata\gsd\Svekra\idx" TYPE RASTER MAXSCALE 1500000 MINSCALE 250000 END LAYER NAME "?versiktskartan" STATUS ON TILEINDEX "D:\data\Mapdata\gsd\Overskra\idx" TYPE RASTER MAXSCALE 250000 MINSCALE 75000 END LAYER NAME "V?gkartan" STATUS ON TILEINDEX "D:\data\Mapdata\gsd\Vagkra\idx" TYPE RASTER MAXSCALE 75000 MINSCALE 25000 END LAYER NAME "Terr?ngkartan" STATUS ON TILEINDEX "D:\data\Mapdata\gsd\Terrkra\idx" TYPE RASTER MAXSCALE 25000 END LAYER NAME "T?tortskartan" STATUS ON TILEINDEX "D:\data\Mapdata\gsd\Tatortra\idx" TYPE RASTER OFFSITE 255 255 255 MAXSCALE 10000 END END # Map File +++++++++++++++++++++++++++ /Johan ___________________________________ Johan Hallgren Logica Pelle Bergs backe 3 Box 1938, 791 19 Falun Tel (och mobil): 023-547 46 (int: +46-2354746) johan.hallgren at logica.com http://www.logica.se -----Original Message----- From: Tamas Szekeres [mailto:szekerest at gmail.com] Sent: den 13 augusti 2008 15:36 To: Hallgren, Johan Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Memoryproblem Johan, I wonder if this was a Win 2003 issue, since all of the windows builder are running on Win 2003 at the buildbot and the build process includes testing the getBytes function. How is your mapfile looking like? Which mapserver version are you testing with. Tamas 2008/8/13 Hallgren, Johan : > Hello Tamas > > I'm glad that you supports me here:) > > We are getting closer to the problem:) > > Your code (getbytes.exe) runs fine on my own pc, but when I move the code to the server the problem starts. > > I made a new project with your cs-file and named it getbytemap, but it's actually the same code as the getbytes.exe. The output below doesn't actually write the error but the "GetBytes:" is the first part och the exception message. I can guess that the memory already is corrupt. When I do the same with the debugger you can see the watch output below. > > One difference I have in mind compared to other environments I have used is that this server have more power. In the task manager there is eight CPUs. > > The problem is deterministic with the getbyte-code. > > Console output > +++++++++++++++++++++++++++++++++++ > C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map > c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes > GetBytes: > > C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map > c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes Drawing map: > 'GIMS' using imageObj.write > GetBytes: > > C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map > c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes > GetBytes: > > C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map > c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes > GetBytes: > > C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map > c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes > GetBytes: > +++++++++++++++++++++++++++++++++++ > > Watch output > +++++++++++++++++++++++++++++++++++ > ex.Message "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." string > +++++++++++++++++++++++++++++++++++ > > /Johan > > ___________________________________ > > > Johan Hallgren > > > Logica > Pelle Bergs backe 3 > Box 1938, 791 19 Falun > Tel (och mobil): 023-547 46 (int: +46-2354746) > johan.hallgren at logica.com http://www.logica.se > > -----Original Message----- > From: Tamas Szekeres [mailto:szekerest at gmail.com] > Sent: den 12 augusti 2008 16:48 > To: Hallgren, Johan > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Memoryproblem > > Johan, > > I haven't run into this problem yet. Do you able to run the getbytes console application in the /csharp directory? > Is this issue deterministic or random? Do you have an example to reproduce it? > > Best regards, > > Tamas > > > 2008/8/12 Hallgren, Johan : >> Hello >> >> >> >> I have a major problem when using imgMapObj.getBytes(). >> >> The memory will be corrupt. The problem doesn't occur when using the >> save function. I have not seen the problem on other servers so the >> problem seams to be related to a specific server (Windows Server 2003 standard edition). >> >> Error msg >> >> ++++++++++++++++++++++ >> >> Attempted to read or write protected memory. This is often an >> indication that other memory is corrupt. >> >> at OSGeo.MapServer.mapscriptPINVOKE.imageObj_getBytes(HandleRef >> jarg1, SWIGByteArrayDelegate jarg2) >> at OSGeo.MapServer.imageObj.getBytes(SWIGByteArrayDelegate callback) >> at OSGeo.MapServer.imageObj.getBytes() >> at WMData.GIS.GMSAgent_WP.Libs.MapEngine.Get_Image(XmlDocument >> xmlDoc, Boolean bRetImage) in >> C:\Project\applications\GMS\GMSAgent_WP\Libs\MapEngine.cs:line 298 >> ++++++++++++++++++++++ >> >> I use mapserver in c# and I have version 5.2.0. >> >> >> >> /Johan >> >> Johan Hallgren >> >> Logica >> Pelle Bergs backe 3 >> Box 1938, 791 19 Falun >> Tel (och mobil): 023-547 46 (int: +46-2354746) >> johan.hallgren at logica.com http://www.logica.se >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > > From gis at vanbooth.com Wed Aug 13 07:36:27 2008 From: gis at vanbooth.com (Rob) Date: Wed, 13 Aug 2008 15:36:27 +0100 Subject: Fwd: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: <2a955f950808130736o5673999fxe1f163fcdde4361@mail.gmail.com> References: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> <18957581.post@talk.nabble.com> <2a955f950808130556m421b41eem1e131905dd22a7ea@mail.gmail.com> <2a955f950808130653v30e4acc1m1090557a7acbd2eb@mail.gmail.com> <2a955f950808130736o5673999fxe1f163fcdde4361@mail.gmail.com> Message-ID: <2a955f950808130736y4a6cfd0ewd079085fdf1b1ec1@mail.gmail.com> Sorry - didnt reply to whole list ---------- Forwarded message ---------- From: Rob Date: 2008/8/13 Subject: Re: [MAPSERVER-USERS] Problems calculating MAXSCALES To: Tamas Szekeres I was unable to reopen the ticket with comments - "TICKET_APPEND privileges are required to perform this operation" If someone else could reopen on my behalf, this is what I wrote for the comments - I've recently updated from 4.8.6 to 5.0.2 and fallen foul of this defect, where layers are not visible when I would expect them to be. I'm in OSGB Projection (epsg:27700) but I didn't include this information in my sample mapfiles, in case it was a projection related issue. My implementation uses mapscript rather than the cgi mapserv process, but I have been testing using shp2img. 4.8.3 Mapfile {{{ MAP EXTENT 200000 200000 266145 266145 IMAGECOLOR 255 255 255 IMAGETYPE png RESOLUTION 96.000000 SIZE 500 500 STATUS ON TRANSPARENT TRUE UNITS METERS NAME "Base" IMAGEQUALITY 75 LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL STATUS OFF END WEB IMAGEPATH "c:\tmp\" IMAGEURL "/" QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END LAYER MAXSCALE 500000 MINSCALE 0 NAME "Land" STATUS ON TRANSPARENCY 100 TYPE RASTER UNITS METERS DATA "C:\Documents and Settings\Administrator\Desktop\gb\gbpng.tif" END END }}} 5.0.2 Mapfile {{{ MAP EXTENT 200000 200000 266145 266145 IMAGECOLOR 255 255 255 IMAGETYPE png RESOLUTION 96.000000 SIZE 500 500 STATUS ON TRANSPARENT TRUE UNITS METERS NAME "Base" OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE "PC256" TRANSPARENT TRUE END PROJECTION "init=epsg:27700" END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL STATUS OFF END WEB IMAGEPATH "c:\tmp\" IMAGEURL "/" QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END LAYER DEBUG 5 MAXSCALEDENOM 500000 MINSCALEDENOM 0 NAME "Land" STATUS ON TRANSPARENCY 100 TYPE RASTER UNITS METERS DATA "C:\Documents and Settings\Administrator\Desktop\gb\gbpng.tif" END END }}} GBPNG.TFW {{{ 333.333333333 0.000 0.000 -333.333333333 166.66666666 649833.33333333 }}} Any 1000x1000 image should work. Running shp2img against 4.8.3 will produce a valid image. Running shp2img against 5.0.2 does not. Code is currently {{{ center_y = (extent.miny+extent.maxy)/2.0; md = (width-1)/(resolution*msInchesPerUnit(units, center_y)); /* remember, we use a pixel-center to pixel-center extent, hence the width-1 */ gd = extent.maxx - extent.minx; *scale = gd/md; }}} For the extents in the mapfiles, this gives a scale of 500997 Previously, using (width) instead of (width-1), we would have had 499993 My desktop GIS product seems to agree with the calculation to result in 499993, judging by the bbox it requests when zooming to 1:500,000 Full mapserver-users conversation is here - http://www.nabble.com/Problems-calculating-MAXSCALES-td18926188.html From dmorissette at mapgears.com Wed Aug 13 07:38:11 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Wed, 13 Aug 2008 10:38:11 -0400 Subject: Fwd: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: <2a955f950808130736y4a6cfd0ewd079085fdf1b1ec1@mail.gmail.com> References: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> <18957581.post@talk.nabble.com> <2a955f950808130556m421b41eem1e131905dd22a7ea@mail.gmail.com> <2a955f950808130653v30e4acc1m1090557a7acbd2eb@mail.gmail.com> <2a955f950808130736o5673999fxe1f163fcdde4361@mail.gmail.com> <2a955f950808130736y4a6cfd0ewd079085fdf1b1ec1@mail.gmail.com> Message-ID: <48A2F1D3.9050105@mapgears.com> Glad to hear that Trac prevents reopening closed tickets by default. This is not a bad thing since that ticket was closed in a previous release and reopening tickets usually leads to confusion. I'd suggest you open a new ticket and refer to the original one that you were trying to reopen. Daniel Rob wrote: > Sorry - didnt reply to whole list > > > ---------- Forwarded message ---------- > From: Rob > Date: 2008/8/13 > Subject: Re: [MAPSERVER-USERS] Problems calculating MAXSCALES > To: Tamas Szekeres > > > I was unable to reopen the ticket with comments - "TICKET_APPEND > privileges are required to perform this operation" > > If someone else could reopen on my behalf, this is what I wrote for > the comments - > > I've recently updated from 4.8.6 to 5.0.2 and fallen foul of this > defect, where layers are not visible when I would expect them to be. > > I'm in OSGB Projection (epsg:27700) but I didn't include this > information in my sample mapfiles, in case it was a projection related > issue. My implementation uses mapscript rather than the cgi mapserv > process, but I have been testing using shp2img. > > 4.8.3 Mapfile > > {{{ > MAP > EXTENT 200000 200000 266145 266145 > IMAGECOLOR 255 255 255 > IMAGETYPE png > RESOLUTION 96.000000 > SIZE 500 500 > STATUS ON > TRANSPARENT TRUE > UNITS METERS > NAME "Base" > IMAGEQUALITY 75 > > LEGEND > IMAGECOLOR 255 255 255 > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > END > POSITION LL > STATUS OFF > END > WEB > IMAGEPATH "c:\tmp\" > IMAGEURL "/" > QUERYFORMAT text/html > LEGENDFORMAT text/html > BROWSEFORMAT text/html > END > LAYER > MAXSCALE 500000 > MINSCALE 0 > NAME "Land" > STATUS ON > TRANSPARENCY 100 > TYPE RASTER > UNITS METERS > DATA "C:\Documents and Settings\Administrator\Desktop\gb\gbpng.tif" > END > END > }}} > > > 5.0.2 Mapfile > > {{{ > MAP > EXTENT 200000 200000 266145 266145 > IMAGECOLOR 255 255 255 > IMAGETYPE png > RESOLUTION 96.000000 > SIZE 500 500 > STATUS ON > TRANSPARENT TRUE > UNITS METERS > NAME "Base" > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE "PC256" > TRANSPARENT TRUE > END > PROJECTION > "init=epsg:27700" > END > LEGEND > IMAGECOLOR 255 255 255 > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > END > POSITION LL > STATUS OFF > END > WEB > IMAGEPATH "c:\tmp\" > IMAGEURL "/" > QUERYFORMAT text/html > LEGENDFORMAT text/html > BROWSEFORMAT text/html > END > LAYER > DEBUG 5 > MAXSCALEDENOM 500000 > MINSCALEDENOM 0 > NAME "Land" > STATUS ON > TRANSPARENCY 100 > TYPE RASTER > UNITS METERS > DATA "C:\Documents and Settings\Administrator\Desktop\gb\gbpng.tif" > END > END > }}} > > GBPNG.TFW > > {{{ > 333.333333333 > 0.000 > 0.000 > -333.333333333 > 166.66666666 > 649833.33333333 > }}} > > Any 1000x1000 image should work. > > Running shp2img against 4.8.3 will produce a valid image. Running > shp2img against 5.0.2 does not. > > Code is currently > > > {{{ > center_y = (extent.miny+extent.maxy)/2.0; > md = (width-1)/(resolution*msInchesPerUnit(units, center_y)); /* > remember, we use a pixel-center to pixel-center extent, hence the > width-1 */ > gd = extent.maxx - extent.minx; > *scale = gd/md; > }}} > > For the extents in the mapfiles, this gives a scale of 500997 > > Previously, using (width) instead of (width-1), we would have had 499993 > > My desktop GIS product seems to agree with the calculation to result > in 499993, judging by the bbox it requests when zooming to 1:500,000 > > Full mapserver-users conversation is here - > http://www.nabble.com/Problems-calculating-MAXSCALES-td18926188.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From woodbri at swoodbridge.com Wed Aug 13 08:51:01 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 13 Aug 2008 10:51:01 -0500 Subject: Fwd: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: <48A2F1D3.9050105@mapgears.com> References: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> <18957581.post@talk.nabble.com> <2a955f950808130556m421b41eem1e131905dd22a7ea@mail.gmail.com> <2a955f950808130653v30e4acc1m1090557a7acbd2eb@mail.gmail.com> <2a955f950808130736o5673999fxe1f163fcdde4361@mail.gmail.com> <2a955f950808130736y4a6cfd0ewd079085fdf1b1ec1@mail.gmail.com> <48A2F1D3.9050105@mapgears.com> Message-ID: <48A302E5.2080107@swoodbridge.com> Rob, Please post the new ticket number so we can follow this issue. Thanks, -Steve W Daniel Morissette wrote: > Glad to hear that Trac prevents reopening closed tickets by default. > This is not a bad thing since that ticket was closed in a previous > release and reopening tickets usually leads to confusion. > > I'd suggest you open a new ticket and refer to the original one that you > were trying to reopen. > > Daniel > > > Rob wrote: >> Sorry - didnt reply to whole list >> >> >> ---------- Forwarded message ---------- >> From: Rob >> Date: 2008/8/13 >> Subject: Re: [MAPSERVER-USERS] Problems calculating MAXSCALES >> To: Tamas Szekeres >> >> >> I was unable to reopen the ticket with comments - "TICKET_APPEND >> privileges are required to perform this operation" >> >> If someone else could reopen on my behalf, this is what I wrote for >> the comments - >> >> I've recently updated from 4.8.6 to 5.0.2 and fallen foul of this >> defect, where layers are not visible when I would expect them to be. >> >> I'm in OSGB Projection (epsg:27700) but I didn't include this >> information in my sample mapfiles, in case it was a projection related >> issue. My implementation uses mapscript rather than the cgi mapserv >> process, but I have been testing using shp2img. >> >> 4.8.3 Mapfile >> >> {{{ >> MAP >> EXTENT 200000 200000 266145 266145 >> IMAGECOLOR 255 255 255 >> IMAGETYPE png >> RESOLUTION 96.000000 >> SIZE 500 500 >> STATUS ON >> TRANSPARENT TRUE >> UNITS METERS >> NAME "Base" >> IMAGEQUALITY 75 >> >> LEGEND >> IMAGECOLOR 255 255 255 >> KEYSIZE 20 10 >> KEYSPACING 5 5 >> LABEL >> SIZE MEDIUM >> TYPE BITMAP >> BUFFER 0 >> COLOR 0 0 0 >> FORCE FALSE >> MINDISTANCE -1 >> MINFEATURESIZE -1 >> OFFSET 0 0 >> PARTIALS TRUE >> END >> POSITION LL >> STATUS OFF >> END >> WEB >> IMAGEPATH "c:\tmp\" >> IMAGEURL "/" >> QUERYFORMAT text/html >> LEGENDFORMAT text/html >> BROWSEFORMAT text/html >> END >> LAYER >> MAXSCALE 500000 >> MINSCALE 0 >> NAME "Land" >> STATUS ON >> TRANSPARENCY 100 >> TYPE RASTER >> UNITS METERS >> DATA "C:\Documents and Settings\Administrator\Desktop\gb\gbpng.tif" >> END >> END >> }}} >> >> >> 5.0.2 Mapfile >> >> {{{ >> MAP >> EXTENT 200000 200000 266145 266145 >> IMAGECOLOR 255 255 255 >> IMAGETYPE png >> RESOLUTION 96.000000 >> SIZE 500 500 >> STATUS ON >> TRANSPARENT TRUE >> UNITS METERS >> NAME "Base" >> OUTPUTFORMAT >> NAME "png" >> MIMETYPE "image/png" >> DRIVER "GD/PNG" >> EXTENSION "png" >> IMAGEMODE "PC256" >> TRANSPARENT TRUE >> END >> PROJECTION >> "init=epsg:27700" >> END >> LEGEND >> IMAGECOLOR 255 255 255 >> KEYSIZE 20 10 >> KEYSPACING 5 5 >> LABEL >> SIZE MEDIUM >> TYPE BITMAP >> BUFFER 0 >> COLOR 0 0 0 >> FORCE FALSE >> MINDISTANCE -1 >> MINFEATURESIZE -1 >> OFFSET 0 0 >> PARTIALS TRUE >> END >> POSITION LL >> STATUS OFF >> END >> WEB >> IMAGEPATH "c:\tmp\" >> IMAGEURL "/" >> QUERYFORMAT text/html >> LEGENDFORMAT text/html >> BROWSEFORMAT text/html >> END >> LAYER >> DEBUG 5 >> MAXSCALEDENOM 500000 >> MINSCALEDENOM 0 >> NAME "Land" >> STATUS ON >> TRANSPARENCY 100 >> TYPE RASTER >> UNITS METERS >> DATA "C:\Documents and Settings\Administrator\Desktop\gb\gbpng.tif" >> END >> END >> }}} >> >> GBPNG.TFW >> >> {{{ >> 333.333333333 >> 0.000 >> 0.000 >> -333.333333333 >> 166.66666666 >> 649833.33333333 >> }}} >> >> Any 1000x1000 image should work. >> >> Running shp2img against 4.8.3 will produce a valid image. Running >> shp2img against 5.0.2 does not. >> >> Code is currently >> >> >> {{{ >> center_y = (extent.miny+extent.maxy)/2.0; >> md = (width-1)/(resolution*msInchesPerUnit(units, center_y)); /* >> remember, we use a pixel-center to pixel-center extent, hence the >> width-1 */ >> gd = extent.maxx - extent.minx; >> *scale = gd/md; >> }}} >> >> For the extents in the mapfiles, this gives a scale of 500997 >> >> Previously, using (width) instead of (width-1), we would have had 499993 >> >> My desktop GIS product seems to agree with the calculation to result >> in 499993, judging by the bbox it requests when zooming to 1:500,000 >> >> Full mapserver-users conversation is here - >> http://www.nabble.com/Problems-calculating-MAXSCALES-td18926188.html >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From beartreeyoga at yahoo.co.uk Wed Aug 13 07:54:38 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Wed, 13 Aug 2008 14:54:38 +0000 (GMT) Subject: [mapserver-users] WFS server error. Incomplete WFS request: SERVICE parameter missing Message-ID: <595536.92015.qm@web23008.mail.ird.yahoo.com> Hi I need some help to clear the following problem When I try to download my map i get the following error [Wed Aug 13 15:40:35 2008].156000 msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE parameter missing [Wed Aug 13 15:40:35 2008].156000 mapserv request processing time (msLoadMap not incl.): 0.000s [Wed Aug 13 15:40:35 2008].156000 msFreeMap(): freeing map at 01585B78. My map file specifies wms not WFS so I do not know where the error is coming from using shp2img -m "D:\MyTestData\shapes.map" -o "D:\MyTestData\test.png" -map_debug 5 gives the correct image in test.png Are there any tools I can run to help debug this problem thanks Derek My map file is MAP NAME "5.2.0 Test Map" # force PROJ.4 to use this value CONFIG "PROJ_LIB" "C:/ms4w/proj/nad/" # Set Debug file CONFIG "MS_ERRORFILE" "c:/ms4w/tmp/ms_error.txt" DEBUG 5 STATUS ON SIZE 600 400 UNITS DD EXTENT -90.083333 24.166667 -81.000000 30.369820 PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME png24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END WEB IMAGEPATH "c:/ms4w/tmp/ms_tmp/" IMAGEURL "c:/ms4w/tmp/ms_tmp/" END LAYER NAME DEPCNT TYPE LINE STATUS ON DATA "d:/MyTestData/data/DEPCNT.shp" PROJECTION "init=epsg:4326" END METADATA "wms_title" "DEPCNT" "wms_srs" "EPSG:4326" "wms_name" "DEPCNT" "wms_extents" "-90.083333 24.166667 -81.000000 30.369820" "wms_onlineresource" "http://localhost:8082/cgi-bin/mapserv.exe?&SERVICE=wms&VERSION=1.1.1&map=d:/MyTestData/Shapes.map" END CLASS NAME "DEPCNT" COLOR 0 0 0 END END END Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Aug 13 08:05:45 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 13 Aug 2008 18:05:45 +0300 Subject: [mapserver-users] WFS server error. Incomplete WFS request: SERVICEparameter missing References: <595536.92015.qm@web23008.mail.ird.yahoo.com> Message-ID: L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Derek Bain > Hi > > I need some help to clear the following problem > When I try to download my map i get the following error > [Wed Aug 13 15:40:35 2008].156000 msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE parameter missing > [Wed Aug 13 15:40:35 2008].156000 mapserv request processing time (msLoadMap not incl.): 0.000s > [Wed Aug 13 15:40:35 2008].156000 msFreeMap(): freeing map at 01585B78. > My map file specifies wms not WFS so I do not know where the error is coming from How do you exactly try to download your image? Through browser? What does the URL of your request look like? -Jukka Rahkonen- From gis at vanbooth.com Wed Aug 13 08:10:29 2008 From: gis at vanbooth.com (Rob) Date: Wed, 13 Aug 2008 16:10:29 +0100 Subject: Fwd: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: <48A302E5.2080107@swoodbridge.com> References: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> <18957581.post@talk.nabble.com> <2a955f950808130556m421b41eem1e131905dd22a7ea@mail.gmail.com> <2a955f950808130653v30e4acc1m1090557a7acbd2eb@mail.gmail.com> <2a955f950808130736o5673999fxe1f163fcdde4361@mail.gmail.com> <2a955f950808130736y4a6cfd0ewd079085fdf1b1ec1@mail.gmail.com> <48A2F1D3.9050105@mapgears.com> <48A302E5.2080107@swoodbridge.com> Message-ID: <2a955f950808130810w64abe025o190253d6300a87bd@mail.gmail.com> I couldnt create a new ticket, so had a little play and it seems that TRAC had logged me out. I guess I was inactive for too long. I've reopened the old ticket - #2166 ( http://trac.osgeo.org/mapserver/ticket/2166 ) From bpederse at gmail.com Wed Aug 13 08:11:00 2008 From: bpederse at gmail.com (Brent Pedersen) Date: Wed, 13 Aug 2008 08:11:00 -0700 Subject: [mapserver-users] Converting pixel position to geographic co-ordinates In-Reply-To: <3702658f0808122252n561905fbp19740e79c4f20069@mail.gmail.com> References: <3702658f0808122252n561905fbp19740e79c4f20069@mail.gmail.com> Message-ID: On Tue, Aug 12, 2008 at 10:52 PM, ramya srinivasan wrote: > Hi, > What is the function used to convert pixel position to geographic > co-ordinates in php/mapscript? > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > hi, did you try looking through these? http://www.google.com/search?hl=en&q=mapscript+pix2geo From beartreeyoga at yahoo.co.uk Wed Aug 13 08:37:45 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Wed, 13 Aug 2008 15:37:45 +0000 (GMT) Subject: [mapserver-users] Re WFS server error. Incomplete WFS request: SERVICE parameter missing Message-ID: <301723.10925.qm@web23003.mail.ird.yahoo.com> I use world wind's Tool > Import WMS url to Layer menu option. This worked okay on v5.0.2. The url i use is http://localhost:8082/cgi-bin/mapserv.exe?&SERVICE=wms&VERSION=1.1.1&map=d:/MyTestData/Shapes.map Derek Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Wed Aug 13 09:25:38 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 13 Aug 2008 19:25:38 +0300 Subject: [mapserver-users] Re WFS server error. Incomplete WFS request:SERVICE parameter missing References: <301723.10925.qm@web23003.mail.ird.yahoo.com> Message-ID: What happens if you remove the first & here: http://localhost:8082/cgi-bin/mapserv.exe?&SERVICE=wms ->http://localhost:8082/cgi-bin/mapserv.exe?SERVICE=wms -Jukka- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Derek Bain L?hetetty: ke 13.8.2008 18:37 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Re WFS server error. Incomplete WFS request:SERVICE parameter missing I use world wind's Tool > Import WMS url to Layer menu option. This worked okay on v5.0.2. The url i use is http://localhost:8082/cgi-bin/mapserv.exe?&SERVICE=wms&VERSION=1.1.1&map=d:/MyTestData/Shapes.map Derek Send instant messages to your online friends http://uk.messenger.yahoo.com From Steve.Lime at dnr.state.mn.us Wed Aug 13 12:26:07 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 13 Aug 2008 14:26:07 -0500 Subject: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: References: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> <18957581.post@talk.nabble.com> <2a955f950808130556m421b41eem1e131905dd22a7ea@mail.gmail.com> <2a955f950808130653v30e4acc1m1090557a7acbd2eb@mail.gmail.com> Message-ID: <48A2EEFF.5157.008F.0@dnr.state.mn.us> It's likely the desktop product you're using uses a different pixel model than MapServer's center-to-center model. The code in 4.8.3 was incorrect so I'm not sure what we can do. A WMS extent simply isn't equal to a MapServer extent. The MapServer WMS and WCS code account for the difference between the MapServer and OGC models by transforming between models (shrink or expand by .5 pixels). My opinion is that you adjust the reference scales in your mapfile based on the now correct output from 5.0.2. Steve >>> On 8/13/2008 at 9:07 AM, in message , "Tamas Szekeres" wrote: > 2008/8/13 Rob : >> >> If I change the (width-1) to be width, then I get scale figures that >> correspond to what I would expect, and what the ESRI GIS Clients >> hitting my WMS service seems to think that the scale should be. From >> the dates in TRAC it certainly looks like this was changed between >> 4.8.3 and 5.0.2. >> > > I'd prefer back out r6529 and go with a double based calculation > instead of it. However I'm not sure how this will affect the original > problem, so you should reopen this bug by pointing out the problems > with the current scale calculation you encountered. > > Best regards, > > Tamas > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From robhyx at gmail.com Wed Aug 13 12:44:36 2008 From: robhyx at gmail.com (Robert Hicks) Date: Wed, 13 Aug 2008 15:44:36 -0400 Subject: [mapserver-users] Vector layers through mapserver Message-ID: Hello all, I am trying to create a vector layer against a shapefile of TYPE POINT, and I want an icon to appear over the point then it is drawn on the map, like how Google draws a push pin over a point. Is this possible, and/or does anyone have experience doing it? -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at swoodbridge.com Wed Aug 13 13:45:16 2008 From: woodbri at swoodbridge.com (Stephen Woodbridge) Date: Wed, 13 Aug 2008 15:45:16 -0500 Subject: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: <48A2EEFF.5157.008F.0@dnr.state.mn.us> References: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> <18957581.post@talk.nabble.com> <2a955f950808130556m421b41eem1e131905dd22a7ea@mail.gmail.com> <2a955f950808130653v30e4acc1m1090557a7acbd2eb@mail.gmail.com> <48A2EEFF.5157.008F.0@dnr.state.mn.us> Message-ID: <48A347DC.4040800@swoodbridge.com> Steve, I have not checked this recently, but I think there is a fundamental principal that if I request a map at SCALE=20000 and some X,Y that the map rendered includes all LAYERs that are in the 20000 SCALE +- 1.0 for rounding. This was the bug that I reported in http://trac.osgeo.org/mapserver/ticket/2166 and I hope that that has not regressed. Was this bug fixed after 5.0.2 that Rob is working with. Rob, Have you tried a later build of mapserver like 5.2 and see if the problem exists there? Best regards, -Stephen Woodbridge http://imaptools.com/ Steve Lime wrote: > It's likely the desktop product you're using uses a different pixel > model than MapServer's center-to-center model. The code in 4.8.3 was > incorrect so I'm not sure what we can do. A WMS extent simply isn't > equal to a MapServer extent. The MapServer WMS and WCS code account > for the difference between the MapServer and OGC models by > transforming between models (shrink or expand by .5 pixels). > > My opinion is that you adjust the reference scales in your mapfile > based on the now correct output from 5.0.2. > > Steve > > >>>> On 8/13/2008 at 9:07 AM, in message > , "Tamas > Szekeres" wrote: >> 2008/8/13 Rob : >>> If I change the (width-1) to be width, then I get scale figures >>> that correspond to what I would expect, and what the ESRI GIS >>> Clients hitting my WMS service seems to think that the scale >>> should be. From the dates in TRAC it certainly looks like this >>> was changed between 4.8.3 and 5.0.2. >>> >> I'd prefer back out r6529 and go with a double based calculation >> instead of it. However I'm not sure how this will affect the >> original problem, so you should reopen this bug by pointing out the >> problems with the current scale calculation you encountered. >> >> Best regards, >> >> Tamas _______________________________________________ >> mapserver-users mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > _______________________________________________ mapserver-users > mailing list mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Wed Aug 13 13:01:07 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 13 Aug 2008 22:01:07 +0200 Subject: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: <2a955f950808130736y4a6cfd0ewd079085fdf1b1ec1@mail.gmail.com> References: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> <18957581.post@talk.nabble.com> <2a955f950808130556m421b41eem1e131905dd22a7ea@mail.gmail.com> <2a955f950808130653v30e4acc1m1090557a7acbd2eb@mail.gmail.com> <2a955f950808130736o5673999fxe1f163fcdde4361@mail.gmail.com> <2a955f950808130736y4a6cfd0ewd079085fdf1b1ec1@mail.gmail.com> Message-ID: You'll have to create an OSGEO user ID and login before editing the ticket: https://www.osgeo.org/cgi-bin/ldap_create_user.py Best regards, Tamas 2008/8/13 Rob : > Sorry - didnt reply to whole list > > > ---------- Forwarded message ---------- > From: Rob > Date: 2008/8/13 > Subject: Re: [MAPSERVER-USERS] Problems calculating MAXSCALES > To: Tamas Szekeres > > > I was unable to reopen the ticket with comments - "TICKET_APPEND > privileges are required to perform this operation" > > If someone else could reopen on my behalf, this is what I wrote for > the comments - > > I've recently updated from 4.8.6 to 5.0.2 and fallen foul of this > defect, where layers are not visible when I would expect them to be. > > I'm in OSGB Projection (epsg:27700) but I didn't include this > information in my sample mapfiles, in case it was a projection related > issue. My implementation uses mapscript rather than the cgi mapserv > process, but I have been testing using shp2img. > > 4.8.3 Mapfile > > {{{ > MAP > EXTENT 200000 200000 266145 266145 > IMAGECOLOR 255 255 255 > IMAGETYPE png > RESOLUTION 96.000000 > SIZE 500 500 > STATUS ON > TRANSPARENT TRUE > UNITS METERS > NAME "Base" > IMAGEQUALITY 75 > > LEGEND > IMAGECOLOR 255 255 255 > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > END > POSITION LL > STATUS OFF > END > WEB > IMAGEPATH "c:\tmp\" > IMAGEURL "/" > QUERYFORMAT text/html > LEGENDFORMAT text/html > BROWSEFORMAT text/html > END > LAYER > MAXSCALE 500000 > MINSCALE 0 > NAME "Land" > STATUS ON > TRANSPARENCY 100 > TYPE RASTER > UNITS METERS > DATA "C:\Documents and Settings\Administrator\Desktop\gb\gbpng.tif" > END > END > }}} > > > 5.0.2 Mapfile > > {{{ > MAP > EXTENT 200000 200000 266145 266145 > IMAGECOLOR 255 255 255 > IMAGETYPE png > RESOLUTION 96.000000 > SIZE 500 500 > STATUS ON > TRANSPARENT TRUE > UNITS METERS > NAME "Base" > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE "PC256" > TRANSPARENT TRUE > END > PROJECTION > "init=epsg:27700" > END > LEGEND > IMAGECOLOR 255 255 255 > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > END > POSITION LL > STATUS OFF > END > WEB > IMAGEPATH "c:\tmp\" > IMAGEURL "/" > QUERYFORMAT text/html > LEGENDFORMAT text/html > BROWSEFORMAT text/html > END > LAYER > DEBUG 5 > MAXSCALEDENOM 500000 > MINSCALEDENOM 0 > NAME "Land" > STATUS ON > TRANSPARENCY 100 > TYPE RASTER > UNITS METERS > DATA "C:\Documents and Settings\Administrator\Desktop\gb\gbpng.tif" > END > END > }}} > > GBPNG.TFW > > {{{ > 333.333333333 > 0.000 > 0.000 > -333.333333333 > 166.66666666 > 649833.33333333 > }}} > > Any 1000x1000 image should work. > > Running shp2img against 4.8.3 will produce a valid image. Running > shp2img against 5.0.2 does not. > > Code is currently > > > {{{ > center_y = (extent.miny+extent.maxy)/2.0; > md = (width-1)/(resolution*msInchesPerUnit(units, center_y)); /* > remember, we use a pixel-center to pixel-center extent, hence the > width-1 */ > gd = extent.maxx - extent.minx; > *scale = gd/md; > }}} > > For the extents in the mapfiles, this gives a scale of 500997 > > Previously, using (width) instead of (width-1), we would have had 499993 > > My desktop GIS product seems to agree with the calculation to result > in 499993, judging by the bbox it requests when zooming to 1:500,000 > > Full mapserver-users conversation is here - > http://www.nabble.com/Problems-calculating-MAXSCALES-td18926188.html > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From szekerest at gmail.com Wed Aug 13 13:21:07 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 13 Aug 2008 22:21:07 +0200 Subject: [mapserver-users] Memoryproblem In-Reply-To: References: Message-ID: Johan, Could you try this out with a debug build? You can change the OPTFLAGS section in nmake.opt by commenting out the # Debug with MSVCRT section. You should also add /debug:full to the csc command line in /mapscript/csharp/makefile.vc Finally you should enable the just in time debug option in the Visual Studio IDE. I hope this will help to locate the function that causes the problem in the mapserver core. Best regards, Tamas 2008/8/13 Hallgren, Johan : > Hello > > I have MapServer 5.2.0 and I have built the bin by myself. I use Windows Server 2003 standard edition. > > I also have tried to turn off all layers in the file and I have also removed all layes from the mapfile and still there is the same problem. > > Here is the file: > +++++++++++++++++++++++++++ > # > # Start of map file > # > MAP > NAME GIMS > STATUS ON > EXTENT 223559 6043080 2944725 7727610 > # 1470448 6850024 1471966 6851089 > SIZE 500 500 > UNITS METERS > IMAGECOLOR 255 255 255 > FONTSET "D:\apps\GMSAgent\MapFiles\fonts.txt" > SYMBOLSET "D:\apps\GMSAgent\MapFiles\Symbol\symbolset.sym" > SHAPEPATH "D:\data\Mapdata\GIMS" > RESOLUTION 96 > # DEBUG 5 > # CONFIG "MS_ERRORFILE" "D:\apps\GMSAgent\log\mapserver.log" > > # IMAGETYPE PNG > OUTPUTFORMAT > NAME 'AGG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > WEB > TEMPLATE "c:\temp\template.txt" > END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > #STATUS embed > END > > # > # Start of layer definitions > # > > LAYER > NAME "Sj?ar" > TYPE POLYGON > STATUS ON > DATA "vv/sj" > TEMPLATE "c:\temp\template.txt" > MAXSCALE 750000 > CLASS > STYLE > OUTLINECOLOR 0 0 255 > COLOR 165 250 255 > END > END > END > > LAYER > NAME "Stora Sj?ar" > TYPE POLYGON > STATUS ON > DATA "vv/sj_large" > TEMPLATE "c:\temp\template.txt" > MINSCALE 750000 > CLASS > STYLE > OUTLINECOLOR 0 0 255 > COLOR 165 250 255 > END > END > END > > LAYER > NAME "Sveriges vatten" > TYPE POLYGON > STATUS ON > DATA "vv/rsv_hv_grid" > TEMPLATE "c:\temp\template.txt" > MINSCALE 30000 > CLASS > STYLE > COLOR 165 250 255 > END > END > END > > LAYER > NAME "?ar" > TYPE POLYGON > STATUS ON > DATA "vv/Or" > TEMPLATE "c:\temp\template.txt" > MAXSCALE 300000 > MINSCALE 30000 > CLASS > STYLE > OUTLINECOLOR 0 130 255 > COLOR 255 255 255 > END > END > END > > LAYER > NAME "T?torter" > TYPE POLYGON > STATUS ON > DATA "vv/TATYT" > TEMPLATE "c:\temp\template.txt" > MAXSCALE 1000000 > CLASS > STYLE > OUTLINECOLOR 0 0 0 > COLOR 210 210 210 > END > END > END > > LAYER > NAME "V?gar" > TYPE LINE > STATUS ON > DATA "vv/vdb_m" > TEMPLATE "c:\temp\template.txt" > MAXSCALE 2000000 > CLASS > EXPRESSION ([VAEGNR] > 1 AND [VAEGNR] < 100) > STYLE > SYMBOL solid > SIZE 2 > COLOR 105 105 105 > END > END > CLASS > MAXSCALE 1000000 > EXPRESSION ([VAEGNR] >= 100 AND [VAEGNR] < 500) > STYLE > SYMBOL solid > SIZE 2 > COLOR 105 105 105 > END > END > CLASS > MAXSCALE 1000000 > EXPRESSION ([VAEGNR] >= 500) > STYLE > COLOR 105 105 105 > END > END > END > > LAYER > NAME "Gr?nser" > TYPE LINE > STATUS ON > DATA "vv/Granser" > TEMPLATE "c:\temp\template.txt" > CLASS > EXPRESSION ([TYP] = 5) > STYLE > SYMBOL dot > COLOR 255 173 0 > SIZE 2 > END > END > CLASS > EXPRESSION ([TYP] = 6) > STYLE > COLOR 255 173 0 > END > END > CLASS > EXPRESSION ([TYP] = 7) > STYLE > COLOR 255 173 0 > END > END > CLASS > EXPRESSION ([TYP] = 8) > STYLE > SYMBOL solid > COLOR 255 173 0 > SIZE 2 > END > END > END > > LAYER > NAME "Vattendrag" > TYPE LINE > STATUS ON > DATA "vv/vd" > TEMPLATE "c:\temp\template.txt" > MAXSCALE 500000 > CLASS > STYLE > COLOR 0 219 255 > END > END > END > > LAYER > NAME "Texter" > TYPE LINE > STATUS ON > DATA "vv/TATTXT" > TEMPLATE "c:\temp\template.txt" > MAXSCALE 1250000 > LABELITEM "TEXT" > CLASS > LABEL > ENCODING CP437 > TYPE truetype > FONT verdanab > SIZE 10 > END > END > END > > LAYER > NAME "Texter sm?orter" > TYPE LINE > STATUS ON > DATA "vv/SMAORTTX" > TEMPLATE "c:\temp\template.txt" > MAXSCALE 1250000 > LABELITEM "TEXT" > CLASS > LABEL > ENCODING CP437 > TYPE truetype > FONT verdana > SIZE 8 > END > END > END > > LAYER > NAME "Sverige" > STATUS ON > TILEINDEX "D:\data\Mapdata\gsd\Svekra\idx" > TYPE RASTER > MAXSCALE 1500000 > MINSCALE 250000 > END > > LAYER > NAME "?versiktskartan" > STATUS ON > TILEINDEX "D:\data\Mapdata\gsd\Overskra\idx" > TYPE RASTER > MAXSCALE 250000 > MINSCALE 75000 > END > > LAYER > NAME "V?gkartan" > STATUS ON > TILEINDEX "D:\data\Mapdata\gsd\Vagkra\idx" > TYPE RASTER > MAXSCALE 75000 > MINSCALE 25000 > END > > LAYER > NAME "Terr?ngkartan" > STATUS ON > TILEINDEX "D:\data\Mapdata\gsd\Terrkra\idx" > TYPE RASTER > MAXSCALE 25000 > END > > LAYER > NAME "T?tortskartan" > STATUS ON > TILEINDEX "D:\data\Mapdata\gsd\Tatortra\idx" > TYPE RASTER > OFFSITE 255 255 255 > MAXSCALE 10000 > END > END # Map File > +++++++++++++++++++++++++++ > > /Johan > > ___________________________________ > > > Johan Hallgren > > > Logica > Pelle Bergs backe 3 > Box 1938, 791 19 Falun > Tel (och mobil): 023-547 46 (int: +46-2354746) > johan.hallgren at logica.com > http://www.logica.se > > -----Original Message----- > From: Tamas Szekeres [mailto:szekerest at gmail.com] > Sent: den 13 augusti 2008 15:36 > To: Hallgren, Johan > Cc: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] Memoryproblem > > Johan, > > I wonder if this was a Win 2003 issue, since all of the windows builder are running on Win 2003 at the buildbot and the build process includes testing the getBytes function. > > How is your mapfile looking like? Which mapserver version are you testing with. > > > Tamas > > > > 2008/8/13 Hallgren, Johan : >> Hello Tamas >> >> I'm glad that you supports me here:) >> >> We are getting closer to the problem:) >> >> Your code (getbytes.exe) runs fine on my own pc, but when I move the code to the server the problem starts. >> >> I made a new project with your cs-file and named it getbytemap, but it's actually the same code as the getbytes.exe. The output below doesn't actually write the error but the "GetBytes:" is the first part och the exception message. I can guess that the memory already is corrupt. When I do the same with the debugger you can see the watch output below. >> >> One difference I have in mind compared to other environments I have used is that this server have more power. In the task manager there is eight CPUs. >> >> The problem is deterministic with the getbyte-code. >> >> Console output >> +++++++++++++++++++++++++++++++++++ >> C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map >> c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes >> GetBytes: >> >> C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map >> c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes Drawing map: >> 'GIMS' using imageObj.write >> GetBytes: >> >> C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map >> c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes >> GetBytes: >> >> C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map >> c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes >> GetBytes: >> >> C:\temp>getbytemap.exe D:\apps\GMSAgent\MapFiles\gims.map >> c:\temp\t.png Drawing map: 'GIMS' using imageObj.getBytes >> GetBytes: >> +++++++++++++++++++++++++++++++++++ >> >> Watch output >> +++++++++++++++++++++++++++++++++++ >> ex.Message "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." string >> +++++++++++++++++++++++++++++++++++ >> >> /Johan >> >> ___________________________________ >> >> >> Johan Hallgren >> >> >> Logica >> Pelle Bergs backe 3 >> Box 1938, 791 19 Falun >> Tel (och mobil): 023-547 46 (int: +46-2354746) >> johan.hallgren at logica.com http://www.logica.se >> >> -----Original Message----- >> From: Tamas Szekeres [mailto:szekerest at gmail.com] >> Sent: den 12 augusti 2008 16:48 >> To: Hallgren, Johan >> Cc: mapserver-users at lists.osgeo.org >> Subject: Re: [mapserver-users] Memoryproblem >> >> Johan, >> >> I haven't run into this problem yet. Do you able to run the getbytes console application in the /csharp directory? >> Is this issue deterministic or random? Do you have an example to reproduce it? >> >> Best regards, >> >> Tamas >> >> >> 2008/8/12 Hallgren, Johan : >>> Hello >>> >>> >>> >>> I have a major problem when using imgMapObj.getBytes(). >>> >>> The memory will be corrupt. The problem doesn't occur when using the >>> save function. I have not seen the problem on other servers so the >>> problem seams to be related to a specific server (Windows Server 2003 standard edition). >>> >>> Error msg >>> >>> ++++++++++++++++++++++ >>> >>> Attempted to read or write protected memory. This is often an >>> indication that other memory is corrupt. >>> >>> at OSGeo.MapServer.mapscriptPINVOKE.imageObj_getBytes(HandleRef >>> jarg1, SWIGByteArrayDelegate jarg2) >>> at OSGeo.MapServer.imageObj.getBytes(SWIGByteArrayDelegate callback) >>> at OSGeo.MapServer.imageObj.getBytes() >>> at WMData.GIS.GMSAgent_WP.Libs.MapEngine.Get_Image(XmlDocument >>> xmlDoc, Boolean bRetImage) in >>> C:\Project\applications\GMS\GMSAgent_WP\Libs\MapEngine.cs:line 298 >>> ++++++++++++++++++++++ >>> >>> I use mapserver in c# and I have version 5.2.0. >>> >>> >>> >>> /Johan >>> >>> Johan Hallgren >>> >>> Logica >>> Pelle Bergs backe 3 >>> Box 1938, 791 19 Falun >>> Tel (och mobil): 023-547 46 (int: +46-2354746) >>> johan.hallgren at logica.com http://www.logica.se >>> >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >> >> > > From Steve.Lime at dnr.state.mn.us Wed Aug 13 13:24:05 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Wed, 13 Aug 2008 15:24:05 -0500 Subject: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: <48A347DC.4040800@swoodbridge.com> References: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> <18957581.post@talk.nabble.com> <2a955f950808130556m421b41eem1e131905dd22a7ea@mail.gmail.com> <2a955f950808130653v30e4acc1m1090557a7acbd2eb@mail.gmail.com> <48A2EEFF.5157.008F.0@dnr.state.mn.us><48A2EEFF.5157.008F.0@dnr.state.mn.us> <48A347DC.4040800@swoodbridge.com> Message-ID: <48A2FC95.5157.008F.0@dnr.state.mn.us> I've not tweaked anything since that ticket was closed. My take on this thread is that: 1) With the same extent 4.8.3 and 5.x output different scale computations. This is true. There were inconsistencies in what an "extent" meant to MapServer in older versions. That was standardized in 5.0. 2) ESRI desktop scale computations do not match MapServer computations. Again true probably because the number of pixels per inch value used in each package is different. The underlying pixel/extent model shouldn't matter I guess. In this case I think Rob is seeing the effect of 1) and if so would need to adjust his layer MAXSCALE and move on. Perhaps 2166 does need to be reopened but I don't think that has to do with the problem here which seems to be an artifact of changing versions. Steve >>> On 8/13/2008 at 3:45 PM, in message <48A347DC.4040800 at swoodbridge.com>, Stephen Woodbridge wrote: > Steve, > > I have not checked this recently, but I think there is a fundamental > principal that if I request a map at SCALE=20000 and some X,Y that the > map rendered includes all LAYERs that are in the 20000 SCALE +- 1.0 for > rounding. This was the bug that I reported in > http://trac.osgeo.org/mapserver/ticket/2166 > and I hope that that has not regressed. Was this bug fixed after 5.0.2 > that Rob is working with. > > Rob, > > Have you tried a later build of mapserver like 5.2 and see if the > problem exists there? > > Best regards, > -Stephen Woodbridge > http://imaptools.com/ > > Steve Lime wrote: >> It's likely the desktop product you're using uses a different pixel >> model than MapServer's center-to-center model. The code in 4.8.3 was >> incorrect so I'm not sure what we can do. A WMS extent simply isn't >> equal to a MapServer extent. The MapServer WMS and WCS code account >> for the difference between the MapServer and OGC models by >> transforming between models (shrink or expand by .5 pixels). >> >> My opinion is that you adjust the reference scales in your mapfile >> based on the now correct output from 5.0.2. >> >> Steve >> >> >>>>> On 8/13/2008 at 9:07 AM, in message >> , "Tamas >> Szekeres" wrote: >>> 2008/8/13 Rob : >>>> If I change the (width-1) to be width, then I get scale figures >>>> that correspond to what I would expect, and what the ESRI GIS >>>> Clients hitting my WMS service seems to think that the scale >>>> should be. From the dates in TRAC it certainly looks like this >>>> was changed between 4.8.3 and 5.0.2. >>>> >>> I'd prefer back out r6529 and go with a double based calculation >>> instead of it. However I'm not sure how this will affect the >>> original problem, so you should reopen this bug by pointing out the >>> problems with the current scale calculation you encountered. >>> >>> Best regards, >>> >>> Tamas _______________________________________________ >>> mapserver-users mailing list mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> _______________________________________________ mapserver-users >> mailing list mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users From szekerest at gmail.com Wed Aug 13 14:27:28 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Wed, 13 Aug 2008 23:27:28 +0200 Subject: [mapserver-users] Vector layers through mapserver In-Reply-To: References: Message-ID: Robert, You'll probably have to use a pixmap symbol that refers to the image file to be displayed. For more information see: http://mapserver.gis.umn.edu/docs/reference/symbology/referencemanual-all-pages Best regards, Tamas 2008/8/13 Robert Hicks : > Hello all, I am trying to create a vector layer against a shapefile of TYPE > POINT, and I want an icon to appear over the point then it is drawn on the > map, like how Google draws a push pin over a point. Is this possible, and/or > does anyone have experience doing it? > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From gis at vanbooth.com Thu Aug 14 01:03:58 2008 From: gis at vanbooth.com (Rob) Date: Thu, 14 Aug 2008 09:03:58 +0100 Subject: [MAPSERVER-USERS] Problems calculating MAXSCALES In-Reply-To: <48A2FC95.5157.008F.0@dnr.state.mn.us> References: <2a955f950808110647u6ba5d277g6f53e7fe531f6a63@mail.gmail.com> <18957581.post@talk.nabble.com> <2a955f950808130556m421b41eem1e131905dd22a7ea@mail.gmail.com> <2a955f950808130653v30e4acc1m1090557a7acbd2eb@mail.gmail.com> <48A2EEFF.5157.008F.0@dnr.state.mn.us> <48A347DC.4040800@swoodbridge.com> <48A2FC95.5157.008F.0@dnr.state.mn.us> Message-ID: <2a955f950808140103p2bda490ek69ee5e90033c9490@mail.gmail.com> >2) ESRI desktop scale computations do not match MapServer computations. Again true probably because >the number of pixels per inch value used in each package is different. The underlying pixel/extent model >shouldn't matter I guess. We had to modify the RESOLUTION in the mapfile to 96 to match the ESRI values. Hence our scale calculations agreed with theirs previously. > In this case I think Rob is seeing the effect of 1) and if so would need to adjust his layer MAXSCALE and > move on. Unless I'm mistaken though, the margin of error is based on the image size, and this could be different values depending on the map size selected on the GIS client. That means that whilst modifying the MAXSCALE values I can reduce the margin of error by estimating a standard size, but it will never be right for all clients. I haven't tried a later build yet, but if the code hasn't changed I'd imagine my problem remains also. From haerta at yahoo.com Thu Aug 14 01:46:43 2008 From: haerta at yahoo.com (=?iso-8859-1?Q?Michael_H=E4rtel?=) Date: Thu, 14 Aug 2008 01:46:43 -0700 (PDT) Subject: [mapserver-users] PHP Mapscript $layerObj->set("data", $dataString) doesn't work with long Strings (2036 characters) Message-ID: <293618.85362.qm@web50806.mail.re2.yahoo.com> Dear List! It seems that I found a bug concerning PHP Mapscript or MapScript in general. The result is a "Premature end of script headers: php-cgi.exe" and a "Internal Server error 500" In our web application I dynamically change the "DATA" attribute of one layer to retrieve the correct objects out of the Oracle 10g database. This works great as long the data String is not longer than 2036 characters. In php I set the DATA string with "$layerObj->set("data" , $dataString);". A var_dump($dataString) shows that it is 2037 characters long. But debugging at the database side showed that only 1524 characters are included in the select statement. So a total of 513 (Not 512?) characters are cut off. A $dataString containing 2036 characters work fine. Because the DATA string is only a part of the total SQL string that is submitted to the database (when navigating a map, a " WHERE SDO_FILTER" clause is added) the total SQL string for retrieving the objects (that are burnt into the WMS GETMAP image) gets about 2215 characters long which works fine with sqlplus. It seems that the "$layerObj->set("data" , $dataString);" line doesn't work for strings longer than 2036 characters. Can someone confirm this? Thanks for any reply, Michael --- I use "ms4w_2.2.7" zip that includes mapserver 5.0.2. The mapscript.dll 225.280 bytes and is from february, 5th 2008 From beartreeyoga at yahoo.co.uk Thu Aug 14 02:40:39 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Thu, 14 Aug 2008 09:40:39 +0000 (GMT) Subject: [mapserver-users] Re WFS server error. Incomplete WFS request:SERVICE parameter missing Message-ID: <471519.83098.qm@web23001.mail.ird.yahoo.com> Hi I tried removing the ampesand as suggested by Jukka but that made no difference. I downloaded an http debugger tool and checked the getmap request, here it is split up over a number of lines for readability. I checked with the WMS 1.1.1 spec and it complies with GetMap. It does not require a SERVICE parameter and WFS is not specified. I also tried the GET in a web browser and got the same error. Could one of the developers confirm that the GET conforms to what mapserver requires for v1.1.1 I need someone to give me some advice as I seem to be going around in circles and not getting anywhere i.e. I can't see the wood for the trees many many many thanks in advance Derek PS My map file is in my initial post if anyone wants to check it out GET /cgi-bin/mapserv.exe? request=GetMap& layers=DEPCNT& TRANSPARENT=TRUE& BGCOLOR=0xFF00FF& map=d:/MyTestData/Shapes.map& srs=EPSG:4326& width=512& height=512& bbox=-81.5625,25.3125,-78.75,28.125& format=image/png& version=1.1.1& styles= HTTP/1.1 User-Agent: World Wind v1.4.0.0 (Microsoft Windows NT 5.1.2600 Service Pack 3, en-GB) Host: localhost:8082 Connection: Keep-Alive HTTP/1.1 200 OK Date: Thu, 14 Aug 2008 08:47:24 GMT Server: Apache/2.2.9 (Win32) Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/xml msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE parameter missing GET /cgi-bin/mapserv.exe?request=GetMap&layers=DEPCNT&TRANSPARENT=TRUE&BGCOLOR=0xFF00FF&map=d:/SeeTrack_Missions/MyTestData/Shapes.map&srs=EPSG:4326&width=512&height=512&bbox=-84.375,25.3125,-81.5625,28.125&format=image/png&version=1.1.1&styles= HTTP/1.1 User-Agent: World Wind v1.4.0.0 (Microsoft Windows NT 5.1.2600 Service Pack 3, en-GB) Host: localhost:8082 HTTP/1.1 200 OK Date: Thu, 14 Aug 2008 08:47:24 GMT Server: Apache/2.2.9 (Win32) Content-Length: 552 Content-Type: text/xml msWFSDispatch(): WFS server error. Incomplete WFS request: SERVICE parameter missing Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Thu Aug 14 03:01:43 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Thu, 14 Aug 2008 12:01:43 +0200 (CEST) Subject: [mapserver-users] Re WFS server error. Incomplete WFS request:SERVICE parameter missing In-Reply-To: <471519.83098.qm@web23001.mail.ird.yahoo.com> References: <471519.83098.qm@web23001.mail.ird.yahoo.com> Message-ID: <10736.145.50.39.11.1218708103.squirrel@webmail.hostingdiscounter.nl> Hi Derek, I can confirm this is a bug. Maybe Tom Kralidis or Daniel could comment on this more? The only way around it now is to add service=WMS to your request, but as you indicate the OGC spec only requires this for GetCapabilities. Best regards, Bart > Hi > > I tried removing the ampesand as suggested by Jukka but that made no > difference. I downloaded an http debugger tool and checked the getmap > request, here it is split up over a number of lines for readability. I > checked with the WMS 1.1.1 spec and it complies with GetMap. It does not > require a SERVICE parameter and WFS is not specified. I also tried the GET > in a web browser and got the same error. > > Could one of the developers confirm that the GET conforms to what > mapserver requires for v1.1.1 > > I need someone to give me some advice as I seem to be going around in > circles and not getting anywhere i.e. I can't see the wood for the trees > > many many many thanks in advance > > Derek > PS My map file is in my initial post if anyone wants to check it out > > GET /cgi-bin/mapserv.exe? > request=GetMap& > layers=DEPCNT& > TRANSPARENT=TRUE& > BGCOLOR=0xFF00FF& > map=d:/MyTestData/Shapes.map& > srs=EPSG:4326& > width=512& > height=512& > bbox=-81.5625,25.3125,-78.75,28.125& > format=image/png& > version=1.1.1& > styles= HTTP/1.1 > > > User-Agent: World Wind v1.4.0.0 (Microsoft Windows NT 5.1.2600 Service > Pack 3, en-GB) > Host: localhost:8082 > Connection: Keep-Alive > > > HTTP/1.1 200 OK > Date: Thu, 14 Aug 2008 08:47:24 GMT > Server: Apache/2.2.9 (Win32) > Keep-Alive: timeout=5, max=100 > Connection: Keep-Alive > Transfer-Encoding: chunked > Content-Type: text/xml > > > xmlns:ows="http://www.opengis.net/ows/1.1" version="1.1.1" > xml:lang="en-US" xsi:schemaLocation="http://www.opengis.net/ows/1.1 > http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"> > > msWFSDispatch(): WFS server error. Incomplete WFS > request: SERVICE parameter missing > > > > GET > /cgi-bin/mapserv.exe?request=GetMap&layers=DEPCNT&TRANSPARENT=TRUE&BGCOLOR=0xFF00FF&map=d:/SeeTrack_Missions/MyTestData/Shapes.map&srs=EPSG:4326&width=512&height=512&bbox=-84.375,25.3125,-81.5625,28.125&format=image/png&version=1.1.1&styles= > HTTP/1.1 > User-Agent: World Wind v1.4.0.0 (Microsoft Windows NT 5.1.2600 Service > Pack 3, en-GB) > Host: localhost:8082 > > > HTTP/1.1 200 OK > Date: Thu, 14 Aug 2008 08:47:24 GMT > Server: Apache/2.2.9 (Win32) > Content-Length: 552 > Content-Type: text/xml > > > xmlns:ows="http://www.opengis.net/ows/1.1" version="1.1.1" > xml:lang="en-US" xsi:schemaLocation="http://www.opengis.net/ows/1.1 > http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"> > > msWFSDispatch(): WFS server error. Incomplete WFS > request: SERVICE parameter missing > > > > Send instant messages to your online friends http://uk.messenger.yahoo.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From beartreeyoga at yahoo.co.uk Thu Aug 14 04:04:30 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Thu, 14 Aug 2008 11:04:30 +0000 (GMT) Subject: [mapserver-users] Re WFS server error. Incomplete WFS request:SERVICE parameter missing Message-ID: <26189.11073.qm@web23002.mail.ird.yahoo.com> Thanks Bart That works within a URL in a browser, all I have to do is to modify the source code for world wind and add a temp fix until a patch is issued for Mapserver. How do I know when Mapserver has been updated? Again many thanks Derek ----- Original Message ---- From: "bartvde at osgis.nl" To: Derek Bain Cc: mapserver-users at lists.osgeo.org Sent: Thursday, 14 August, 2008 11:01:43 Subject: Re: [mapserver-users] Re WFS server error. Incomplete WFS request:SERVICE parameter missing Hi Derek, I can confirm this is a bug. Maybe Tom Kralidis or Daniel could comment on this more? The only way around it now is to add service=WMS to your request, but as you indicate the OGC spec only requires this for GetCapabilities. Best regards, Bart > Hi > > I tried removing the ampesand as suggested by Jukka but that made no > difference. I downloaded an http debugger tool and checked the getmap > request, here it is split up over a number of lines for readability. I > checked with the WMS 1.1.1 spec and it complies with GetMap. It does not > require a SERVICE parameter and WFS is not specified. I also tried the GET > in a web browser and got the same error. > > Could one of the developers confirm that the GET conforms to what > mapserver requires for v1.1.1 > > I need someone to give me some advice as I seem to be going around in > circles and not getting anywhere i.e. I can't see the wood for the trees > > many many many thanks in advance > > Derek > PS My map file is in my initial post if anyone wants to check it out > > GET /cgi-bin/mapserv.exe? > request=GetMap& > layers=DEPCNT& > TRANSPARENT=TRUE& > BGCOLOR=0xFF00FF& > map=d:/MyTestData/Shapes.map& > srs=EPSG:4326& > width=512& > height=512& > bbox=-81.5625,25.3125,-78.75,28.125& > format=image/png& > version=1.1.1& > styles= HTTP/1.1 > > > User-Agent: World Wind v1.4.0.0 (Microsoft Windows NT 5.1.2600 Service > Pack 3, en-GB) > Host: localhost:8082 > Connection: Keep-Alive > > > HTTP/1.1 200 OK > Date: Thu, 14 Aug 2008 08:47:24 GMT > Server: Apache/2.2.9 (Win32) > Keep-Alive: timeout=5, max=100 > Connection: Keep-Alive > Transfer-Encoding: chunked > Content-Type: text/xml > > > xmlns:ows="http://www.opengis.net/ows/1.1" version="1.1.1" > xml:lang="en-US" xsi:schemaLocation="http://www.opengis.net/ows/1.1 > http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"> > > msWFSDispatch(): WFS server error. Incomplete WFS > request: SERVICE parameter missing > > > > GET > /cgi-bin/mapserv.exe?request=GetMap&layers=DEPCNT&TRANSPARENT=TRUE&BGCOLOR=0xFF00FF&map=d:/SeeTrack_Missions/MyTestData/Shapes.map&srs=EPSG:4326&width=512&height=512&bbox=-84.375,25.3125,-81.5625,28.125&format=image/png&version=1.1.1&styles= > HTTP/1.1 > User-Agent: World Wind v1.4.0.0 (Microsoft Windows NT 5.1.2600 Service > Pack 3, en-GB) > Host: localhost:8082 > > > HTTP/1.1 200 OK > Date: Thu, 14 Aug 2008 08:47:24 GMT > Server: Apache/2.2.9 (Win32) > Content-Length: 552 > Content-Type: text/xml > > > xmlns:ows="http://www.opengis.net/ows/1.1" version="1.1.1" > xml:lang="en-US" xsi:schemaLocation="http://www.opengis.net/ows/1.1 > http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"> > > msWFSDispatch(): WFS server error. Incomplete WFS > request: SERVICE parameter missing > > > > Send instant messages to your online friends http://uk.messenger.yahoo.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Thu Aug 14 04:16:22 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Thu, 14 Aug 2008 13:16:22 +0200 (CEST) Subject: [mapserver-users] Re WFS server error. Incomplete WFS request:SERVICE parameter missing In-Reply-To: <26189.11073.qm@web23002.mail.ird.yahoo.com> References: <26189.11073.qm@web23002.mail.ird.yahoo.com> Message-ID: <5014.145.50.39.11.1218712582.squirrel@webmail.hostingdiscounter.nl> Hi Derek, I think the appropriate ticket to watch is: http://trac.osgeo.org/mapserver/ticket/2531 you can add yourself to the cc if you have an OSGEO Trac account. Best regards, Bart > Thanks Bart > > That works within a URL in a browser, all I have to do is to modify the > source code for world wind and add a temp fix until a patch is issued for > Mapserver. How do I know when Mapserver has been updated? > > Again many thanks > > Derek > > > > > ----- Original Message ---- > From: "bartvde at osgis.nl" > To: Derek Bain > Cc: mapserver-users at lists.osgeo.org > Sent: Thursday, 14 August, 2008 11:01:43 > Subject: Re: [mapserver-users] Re WFS server error. Incomplete WFS > request:SERVICE parameter missing > > Hi Derek, > > I can confirm this is a bug. Maybe Tom Kralidis or Daniel could comment on > this more? > > The only way around it now is to add service=WMS to your request, but as > you indicate the OGC spec only requires this for GetCapabilities. > > Best regards, > Bart > >> Hi >> >> I tried removing the ampesand as suggested by Jukka but that made no >> difference. I downloaded an http debugger tool and checked the getmap >> request, here it is split up over a number of lines for readability. I >> checked with the WMS 1.1.1 spec and it complies with GetMap. It does not >> require a SERVICE parameter and WFS is not specified. I also tried the >> GET >> in a web browser and got the same error. >> >> Could one of the developers confirm that the GET conforms to what >> mapserver requires for v1.1.1 >> >> I need someone to give me some advice as I seem to be going around in >> circles and not getting anywhere i.e. I can't see the wood for the trees >> >> many many many thanks in advance >> >> Derek >> PS My map file is in my initial post if anyone wants to check it out >> >> GET /cgi-bin/mapserv.exe? >> request=GetMap& >> layers=DEPCNT& >> TRANSPARENT=TRUE& >> BGCOLOR=0xFF00FF& >> map=d:/MyTestData/Shapes.map& >> srs=EPSG:4326& >> width=512& >> height=512& >> bbox=-81.5625,25.3125,-78.75,28.125& >> format=image/png& >> version=1.1.1& >> styles= HTTP/1.1 >> >> >> User-Agent: World Wind v1.4.0.0 (Microsoft Windows NT 5.1.2600 Service >> Pack 3, en-GB) >> Host: localhost:8082 >> Connection: Keep-Alive >> >> >> HTTP/1.1 200 OK >> Date: Thu, 14 Aug 2008 08:47:24 GMT >> Server: Apache/2.2.9 (Win32) >> Keep-Alive: timeout=5, max=100 >> Connection: Keep-Alive >> Transfer-Encoding: chunked >> Content-Type: text/xml >> >> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xmlns:ows="http://www.opengis.net/ows/1.1" version="1.1.1" >> xml:lang="en-US" xsi:schemaLocation="http://www.opengis.net/ows/1.1 >> http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"> >> > locator="MissingParameterValue"> >> msWFSDispatch(): WFS server error. Incomplete WFS >> request: SERVICE parameter missing >> >> >> >> GET >> /cgi-bin/mapserv.exe?request=GetMap&layers=DEPCNT&TRANSPARENT=TRUE&BGCOLOR=0xFF00FF&map=d:/SeeTrack_Missions/MyTestData/Shapes.map&srs=EPSG:4326&width=512&height=512&bbox=-84.375,25.3125,-81.5625,28.125&format=image/png&version=1.1.1&styles= >> HTTP/1.1 >> User-Agent: World Wind v1.4.0.0 (Microsoft Windows NT 5.1.2600 Service >> Pack 3, en-GB) >> Host: localhost:8082 >> >> >> HTTP/1.1 200 OK >> Date: Thu, 14 Aug 2008 08:47:24 GMT >> Server: Apache/2.2.9 (Win32) >> Content-Length: 552 >> Content-Type: text/xml >> >> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xmlns:ows="http://www.opengis.net/ows/1.1" version="1.1.1" >> xml:lang="en-US" xsi:schemaLocation="http://www.opengis.net/ows/1.1 >> http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"> >> > locator="MissingParameterValue"> >> msWFSDispatch(): WFS server error. Incomplete WFS >> request: SERVICE parameter missing >> >> >> >> Send instant messages to your online friends >> http://uk.messenger.yahoo.com >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > Send instant messages to your online friends http://uk.messenger.yahoo.com > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Steve.Lime at dnr.state.mn.us Thu Aug 14 05:57:48 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 14 Aug 2008 07:57:48 -0500 Subject: [MAPSERVER-USERS] Problems calculating MAXSCALES Message-ID: <48A3E57D0200008F0001A933@co5.dnr.state.mn.us> Your assuming that an extent in ESRI represents the same thing MapServer. It doesn't assuming an ESRI extent is UL corner of UL pixel and the LR corner of the LR pixel for the rendered map. MapServer would use the centers of each pixel. You need to account for those differences when comparing the two. (MapServer has roots with ERDAS Imagine and that was the model it used at the time.) Compute cellsize from the ESRI extent (maxx-minx)/width and then offset the extent by 1/2 cellsize (UL + cellsize, LR - cellsize) to get the MapServer equivalent. If you do that then the scales will match. Perhaps this will change at some point and lead to even more confusion. Steve >>> Rob 08/14/08 3:04 AM >>> >2) ESRI desktop scale computations do not match MapServer computations. Again true probably because >the number of pixels per inch value used in each package is different. The underlying pixel/extent model >shouldn't matter I guess. We had to modify the RESOLUTION in the mapfile to 96 to match the ESRI values. Hence our scale calculations agreed with theirs previously. > In this case I think Rob is seeing the effect of 1) and if so would need to adjust his layer MAXSCALE and > move on. Unless I'm mistaken though, the margin of error is based on the image size, and this could be different values depending on the map size selected on the GIS client. That means that whilst modifying the MAXSCALE values I can reduce the margin of error by estimating a standard size, but it will never be right for all clients. I haven't tried a later build yet, but if the code hasn't changed I'd imagine my problem remains also. From beartreeyoga at yahoo.co.uk Thu Aug 14 06:19:53 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Thu, 14 Aug 2008 13:19:53 +0000 (GMT) Subject: [mapserver-users] DNC - msOGRFileOpen(): OGR error Message-ID: <558564.68448.qm@web23008.mail.ird.yahoo.com> Hi I am back to trying to fix my DNC problem. If I run the shp2img within FWTools, then the generated .png file contains my DNC image. However running the shp2img supplied with MapServer gives the following error msDrawMap(): Image handling error. Failed to draw layer named 'hydarea_hyd_area'.
msOGRFileOpen(): OGR error. Open failed for OGR connection in layer `hydarea_hyd_area'. File not found or unsupported format.
If I understand what happens, MapServer uses shp2img to generate a temp image file which it then sends back to the WMS Client. I have tried copying the shp2img (and all its dlls etc) from FWTools to MapServer but that did not work, so I assume it is a bit more complicated than that. Could someone tell me what FWTools source files I would need to copy to the MapServer gdal folder so I can recompile MapServer and when compiled what files do I copy to ms4w and to which folders as there seems to be some duplication of files in ms4w. many thanks Derek Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Thu Aug 14 06:40:00 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Thu, 14 Aug 2008 09:40:00 -0400 Subject: [mapserver-users] DNC - msOGRFileOpen(): OGR error In-Reply-To: <558564.68448.qm@web23008.mail.ird.yahoo.com> References: <558564.68448.qm@web23008.mail.ird.yahoo.com> Message-ID: <931f8ea90808140640h1a8ae1e4le01505d0710d44d7@mail.gmail.com> On Thu, Aug 14, 2008 at 9:19 AM, Derek Bain wrote: > Hi > > I am back to trying to fix my DNC problem. If I run the shp2img within > FWTools, then the generated .png file contains my DNC image. However running > the shp2img supplied with MapServer gives the following error > > msDrawMap(): Image handling error. Failed to draw layer named > 'hydarea_hyd_area'.
> msOGRFileOpen(): OGR error. Open failed for OGR connection in layer > `hydarea_hyd_area'. File not found or unsupported format.
> > If I understand what happens, MapServer uses shp2img to generate a temp > image file which it then sends back to the WMS Client. > > I have tried copying the shp2img (and all its dlls etc) from FWTools to > MapServer but that did not work, so I assume it is a bit more complicated > than that. > > Could someone tell me what FWTools source files I would need to copy to the > MapServer gdal folder so I can recompile MapServer and when compiled what > files do I copy to ms4w and to which folders as there seems to be some > duplication of files in ms4w. Derek, You cannot generally mix FWTools and standard binaries. The FWTools binaries deliberately use distinct naming because they are not a release level ABI. I presume the DNC files are not working with the standard mapserver binaries because they use a GDAL/OGR version that does not include OGDI support. The OGDI gateway for GDAL/OGR is an optional item and not include in simple builds. I would note that OSGeo4W (http://trac.osgeo.org/osgeo4w) also includes OGDI support. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From dmorissette at mapgears.com Thu Aug 14 07:00:31 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 14 Aug 2008 10:00:31 -0400 Subject: [mapserver-users] Re WFS server error. Incomplete WFS request:SERVICE parameter missing In-Reply-To: <5014.145.50.39.11.1218712582.squirrel@webmail.hostingdiscounter.nl> References: <26189.11073.qm@web23002.mail.ird.yahoo.com> <5014.145.50.39.11.1218712582.squirrel@webmail.hostingdiscounter.nl> Message-ID: <48A43A7F.90805@mapgears.com> I have created a ticket for this issue and will try to look into it today: http://trac.osgeo.org/mapserver/ticket/2737 BTW, I don't think this is directly related to ticket #2351... the fix for 2531 might fix this as well, but this issue may have been introduced by some changes to the WFS support in MapServer 5.2.0. Daniel bartvde at osgis.nl wrote: > Hi Derek, > > I think the appropriate ticket to watch is: > > http://trac.osgeo.org/mapserver/ticket/2531 > > you can add yourself to the cc if you have an OSGEO Trac account. > > Best regards, > Bart > >> Thanks Bart >> >> That works within a URL in a browser, all I have to do is to modify the >> source code for world wind and add a temp fix until a patch is issued for >> Mapserver. How do I know when Mapserver has been updated? >> >> Again many thanks >> >> Derek >> >> >> >> >> ----- Original Message ---- >> From: "bartvde at osgis.nl" >> To: Derek Bain >> Cc: mapserver-users at lists.osgeo.org >> Sent: Thursday, 14 August, 2008 11:01:43 >> Subject: Re: [mapserver-users] Re WFS server error. Incomplete WFS >> request:SERVICE parameter missing >> >> Hi Derek, >> >> I can confirm this is a bug. Maybe Tom Kralidis or Daniel could comment on >> this more? >> >> The only way around it now is to add service=WMS to your request, but as >> you indicate the OGC spec only requires this for GetCapabilities. >> >> Best regards, >> Bart >> >>> Hi >>> >>> I tried removing the ampesand as suggested by Jukka but that made no >>> difference. I downloaded an http debugger tool and checked the getmap >>> request, here it is split up over a number of lines for readability. I >>> checked with the WMS 1.1.1 spec and it complies with GetMap. It does not >>> require a SERVICE parameter and WFS is not specified. I also tried the >>> GET >>> in a web browser and got the same error. >>> >>> Could one of the developers confirm that the GET conforms to what >>> mapserver requires for v1.1.1 >>> >>> I need someone to give me some advice as I seem to be going around in >>> circles and not getting anywhere i.e. I can't see the wood for the trees >>> >>> many many many thanks in advance >>> >>> Derek >>> PS My map file is in my initial post if anyone wants to check it out >>> >>> GET /cgi-bin/mapserv.exe? >>> request=GetMap& >>> layers=DEPCNT& >>> TRANSPARENT=TRUE& >>> BGCOLOR=0xFF00FF& >>> map=d:/MyTestData/Shapes.map& >>> srs=EPSG:4326& >>> width=512& >>> height=512& >>> bbox=-81.5625,25.3125,-78.75,28.125& >>> format=image/png& >>> version=1.1.1& >>> styles= HTTP/1.1 >>> >>> >>> User-Agent: World Wind v1.4.0.0 (Microsoft Windows NT 5.1.2600 Service >>> Pack 3, en-GB) >>> Host: localhost:8082 >>> Connection: Keep-Alive >>> >>> >>> HTTP/1.1 200 OK >>> Date: Thu, 14 Aug 2008 08:47:24 GMT >>> Server: Apache/2.2.9 (Win32) >>> Keep-Alive: timeout=5, max=100 >>> Connection: Keep-Alive >>> Transfer-Encoding: chunked >>> Content-Type: text/xml >>> >>> >>> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xmlns:ows="http://www.opengis.net/ows/1.1" version="1.1.1" >>> xml:lang="en-US" xsi:schemaLocation="http://www.opengis.net/ows/1.1 >>> http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"> >>> >> locator="MissingParameterValue"> >>> msWFSDispatch(): WFS server error. Incomplete WFS >>> request: SERVICE parameter missing >>> >>> >>> >>> GET >>> /cgi-bin/mapserv.exe?request=GetMap&layers=DEPCNT&TRANSPARENT=TRUE&BGCOLOR=0xFF00FF&map=d:/SeeTrack_Missions/MyTestData/Shapes.map&srs=EPSG:4326&width=512&height=512&bbox=-84.375,25.3125,-81.5625,28.125&format=image/png&version=1.1.1&styles= >>> HTTP/1.1 >>> User-Agent: World Wind v1.4.0.0 (Microsoft Windows NT 5.1.2600 Service >>> Pack 3, en-GB) >>> Host: localhost:8082 >>> >>> >>> HTTP/1.1 200 OK >>> Date: Thu, 14 Aug 2008 08:47:24 GMT >>> Server: Apache/2.2.9 (Win32) >>> Content-Length: 552 >>> Content-Type: text/xml >>> >>> >>> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> xmlns:ows="http://www.opengis.net/ows/1.1" version="1.1.1" >>> xml:lang="en-US" xsi:schemaLocation="http://www.opengis.net/ows/1.1 >>> http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"> >>> >> locator="MissingParameterValue"> >>> msWFSDispatch(): WFS server error. Incomplete WFS >>> request: SERVICE parameter missing >>> >>> >>> >>> Send instant messages to your online friends >>> http://uk.messenger.yahoo.com >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> Send instant messages to your online friends http://uk.messenger.yahoo.com >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Thu Aug 14 07:14:03 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 14 Aug 2008 10:14:03 -0400 Subject: [mapserver-users] PHP Mapscript $layerObj->set("data", $dataString) doesn't work with long Strings (2036 characters) In-Reply-To: <293618.85362.qm@web50806.mail.re2.yahoo.com> References: <293618.85362.qm@web50806.mail.re2.yahoo.com> Message-ID: <48A43DAB.7030300@mapgears.com> Michael, Can you please try setting the same DATA line directly in the mapfile instead of via $layerObj->set() and confirm that you get the same error? The $layerObj->set() method uses a dynamic buffer allocation, so there is no reason for it to bail on buffers larger than a specific size. I suspect the problem may be in MapServer's Oracle Spatial driver code that may be using a static buffer to build the SQL statement. I see that there is already ticket #2694 that seems to be about the same thing: http://trac.osgeo.org/mapserver/ticket/2694 Daniel Michael H?rtel wrote: > Dear List! > > It seems that I found a bug concerning PHP Mapscript or MapScript in general. The result is a "Premature end of script headers: php-cgi.exe" and a "Internal Server error 500" > > In our web application I dynamically change the "DATA" attribute of one layer to retrieve the correct objects out of the Oracle 10g database. This works great as long the data String is not longer than 2036 characters. > > In php I set the DATA string with "$layerObj->set("data" , $dataString);". A var_dump($dataString) shows that it is 2037 characters long. But debugging at the database side showed that only 1524 characters are included in the select statement. So a total of 513 (Not 512?) characters are cut off. A $dataString containing 2036 characters work fine. > > Because the DATA string is only a part of the total SQL string that is submitted to the database (when navigating a map, a " WHERE SDO_FILTER" clause is added) the total SQL string for retrieving the objects (that are burnt into the WMS GETMAP image) gets about 2215 characters long which works fine with sqlplus. > > It seems that the "$layerObj->set("data" , $dataString);" line doesn't work for strings longer than 2036 characters. > > Can someone confirm this? > > Thanks for any reply, > > Michael > --- > I use "ms4w_2.2.7" zip that includes mapserver 5.0.2. The mapscript.dll 225.280 bytes and is from february, 5th 2008 > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From st at aquaterra.be Thu Aug 14 07:17:15 2008 From: st at aquaterra.be (Stijn Tallir) Date: Thu, 14 Aug 2008 16:17:15 +0200 Subject: [mapserver-users] Stress test wms demo application Message-ID: <19F99C8C1DB44B5FA9976A663A935491@stijnt> Hi, My company plans to deliver our raster catalog through a mapserver powered WMS and I need the server to be real world stress tested. Please check out my demo application for showcasing our new mapservice: http://www.aquaterra. be/nl/mapservice/mapservice_demo/ Thanks, Stijn -------------- next part -------------- An HTML attachment was scrubbed... URL: From janos.gonzales at gmail.com Thu Aug 14 07:29:58 2008 From: janos.gonzales at gmail.com (=?ISO-8859-1?Q?J=E1nos?=) Date: Thu, 14 Aug 2008 08:29:58 -0600 Subject: [mapserver-users] ming compile Message-ID: <647a4d110808140729y49e4f842gc57d88020fe1a46e@mail.gmail.com> Hi, Has anybody been able to compile ming 0.4.0rc1 on Windows? I'm looking for a makefile.vc . I'm running Microsoft Visual Studio 2005. Thanks From ssteve52 at yahoo.com Thu Aug 14 11:01:06 2008 From: ssteve52 at yahoo.com (Steve Smith) Date: Thu, 14 Aug 2008 11:01:06 -0700 (PDT) Subject: [mapserver-users] libssl.so.6 error Message-ID: <122474.44437.qm@web45604.mail.sp1.yahoo.com> I am running mapserver 5.2, on a AMD 64 bit machine. I just upgraded from fedora core 8 to fedora core 9. After upgrading I began getting an error telling me that libssl.so.6 does not exist.? Fedora core 9 uses openssl-0.98g-9.fc9.x86_64 and 686, which have a slew of important dependences. If I attempt to install older versions, such as openssl-098g-6, I am told that it conflicts with the current versions. How do I get mapserver to work with the current version of openssl? Thanks Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From greenkov at gmail.com Thu Aug 14 13:42:48 2008 From: greenkov at gmail.com (Alexander Petkov) Date: Thu, 14 Aug 2008 14:42:48 -0600 Subject: [mapserver-users] Re: GetCoverage request and time-idexed coverage using postgis In-Reply-To: References: Message-ID: I would like to clarify that the problem below is for using postgis-based tileindex for WCS GetCoverage requests (WMS GetMap requests work fine). I did some more poking around. In particular, I tried to use the postgis-based tileindex, but this time through the OGR driver: LAYER STATUS ON NAME "time_idx" TYPE POLYGON DATA "select * from sometable" DEBUG 5 METADATA "wms_srs" "EPSG:2613" "wms_extent" "-2050500.000 -2136500.000 2536500.000 752500.000" "wms_title" "TIME INDEX for departure from average images" END CONNECTION "PG:dbname=blah user=blah host=blah" CONNECTIONTYPE ogr EXTENT -2050500.000 -2136500.000 2536500.000 752500.000 PROJECTION "init=epsg:2163" END END This now seems to work, except that looks like I explicitly need to explicitly specify each and every time position in my raster layer: "wcs_timeposition" "2000-01-06,....,2005-12-27" Does anyone use WCS for GetCoverage requests with a postgis-based tileindex, either through a postgis or OGR connection? Thanks in advance, Alex From maurerj at nsidc.org Thu Aug 14 14:42:49 2008 From: maurerj at nsidc.org (John Maurer) Date: Thu, 14 Aug 2008 22:42:49 +0100 Subject: [mapserver-users] How to display vector symbols (direction and magnitude) in MapServer? Message-ID: <48A4A6D9.8080107@nsidc.org> Dear MapServer Users, Does anybody have experience displaying vectors in MapServer? By "vectors", I don't mean the usual vector vs. raster difference. What I mean is displaying data like wind vectors, which are point locations that have both a direction (degrees) and magnitude (e.g. meters per second). Usually these are displayed as arrows, which each point in a certain direction and whose tails vary in length depending on the magnitude each measurement. Is this possible in MapServer? Thanks for any suggestions! Best Regards, John Maurer -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj ------------------------------------ "Without geography, you're nowhere!" From Steve.Lime at dnr.state.mn.us Thu Aug 14 15:03:39 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 14 Aug 2008 17:03:39 -0500 Subject: [mapserver-users] Stress test wms demo application In-Reply-To: <19F99C8C1DB44B5FA9976A663A935491@stijnt> References: <19F99C8C1DB44B5FA9976A663A935491@stijnt> Message-ID: <48A4656B.5157.008F.0@dnr.state.mn.us> Very cool, nice looking app and maps. I like the mouse icon you use when drag/pan! Steve >>> On 8/14/2008 at 9:17 AM, in message <19F99C8C1DB44B5FA9976A663A935491 at stijnt>, "Stijn Tallir" wrote: > Hi, > > > > My company plans to deliver our raster catalog through a mapserver powered > WMS and I need the server to be real world stress tested. > > > > Please check out my demo application for showcasing our new mapservice: > http://www.aquaterra. > > be/nl/mapservice/mapservice_demo/ > > > > Thanks, > > > > Stijn From pramsey at cleverelephant.ca Thu Aug 14 16:46:27 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Thu, 14 Aug 2008 16:46:27 -0700 Subject: [mapserver-users] libssl.so.6 error In-Reply-To: <122474.44437.qm@web45604.mail.sp1.yahoo.com> References: <122474.44437.qm@web45604.mail.sp1.yahoo.com> Message-ID: <30fe546d0808141646w3a5829a8n2ea97acd14a742d0@mail.gmail.com> I'm thinking: recompile. If your old compile had a dependency on an old library and your upgrade removed it... recompile so it depends on your new libraries. P. On Thu, Aug 14, 2008 at 11:01 AM, Steve Smith wrote: > I am running mapserver 5.2, on a AMD 64 bit machine. I just upgraded from > fedora > core 8 to fedora core 9. After upgrading I began getting an error telling me > that > libssl.so.6 does not exist. Fedora core 9 uses openssl-0.98g-9.fc9.x86_64 > and 686, > which have a slew of important dependences. If I attempt to install older > versions, > such as openssl-098g-6, I am told that it conflicts with the current > versions. How do > I get mapserver to work with the current version of openssl? > > Thanks > Steve > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From ssteve52 at yahoo.com Thu Aug 14 20:16:48 2008 From: ssteve52 at yahoo.com (Steve Smith) Date: Thu, 14 Aug 2008 20:16:48 -0700 (PDT) Subject: [mapserver-users] libssl.so.6 error In-Reply-To: <30fe546d0808141646w3a5829a8n2ea97acd14a742d0@mail.gmail.com> Message-ID: <204718.23397.qm@web45606.mail.sp1.yahoo.com> Paul, Luigi Castro Cardeles, suggested I make a symbolic link from libssl.so to libssl.so.6. I did that and it did not look like it worked, but after taking a closer look it had. However, I was getting a similar error message for libcrypto.so.6, so I did that same thing. Now I am getting a memory error for glibc: [Thu Aug 14 23:00:54 2008] [error] [client 71.120.222.68] *** glibc detected *** /var/www/cgi-bin/mapserv: malloc(): memory corruption: 0x0000000000b4c3d0 ***, r There is no option for ssl in the configure file. I do see links to it in my make out put. However, I have not found reference to it in mapserver documentation. Do you know if it is required? If I am having this problem it must be. Jim --- On Thu, 8/14/08, Paul Ramsey wrote: From: Paul Ramsey Subject: Re: [mapserver-users] libssl.so.6 error To: ssteve52 at yahoo.com Cc: mapserver-users at lists.osgeo.org Date: Thursday, August 14, 2008, 11:46 PM I'm thinking: recompile. If your old compile had a dependency on an old library and your upgrade removed it... recompile so it depends on your new libraries. P. On Thu, Aug 14, 2008 at 11:01 AM, Steve Smith wrote: > I am running mapserver 5.2, on a AMD 64 bit machine. I just upgraded from > fedora > core 8 to fedora core 9. After upgrading I began getting an error telling me > that > libssl.so.6 does not exist. Fedora core 9 uses openssl-0.98g-9.fc9.x86_64 > and 686, > which have a slew of important dependences. If I attempt to install older > versions, > such as openssl-098g-6, I am told that it conflicts with the current > versions. How do > I get mapserver to work with the current version of openssl? > > Thanks > Steve > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ubiluv at gmail.com Thu Aug 14 20:54:20 2008 From: ubiluv at gmail.com (u_b_i) Date: Fri, 15 Aug 2008 11:54:20 +0800 Subject: [mapserver-users] Fwd: Newbie want to know how to create my own wms server In-Reply-To: <9fb92bc20808130859y18e5b988u6226ef1b953711a0@mail.gmail.com> References: <9fb92bc20808130859y18e5b988u6226ef1b953711a0@mail.gmail.com> Message-ID: <9fb92bc20808142054j5a8ad12bya30451439b023a5b@mail.gmail.com> ---------- Forwarded message ---------- From: u_b_i Date: Wed, Aug 13, 2008 at 11:59 PM Subject: Newbie want to know how to create my own wms server To: jeffmckenna at gmail.com Hai Jeff....since like it`s the first time i'm ask question to u....actually i have the problem to create my own wms server.....i've followed all of your instruction on your thread WMS Servers with Mapserver - UMN Mapserver...but i still cant create my own WMS server....for your information i'm using MS4W 4.4.2 installer as server for my Windows which comes already with WMS/WFS support....i like use the data to shown on flamingo mc- Flash based WMS client....below are what i've done following your instruction...please check either wrong or i've miss something...... 1. I've created my MAP file's using Quantum GIS (using export to MAP file plugin)....i seen that the MAP file have a lot of WMS tag requirements for WMS....so i didn't alter anything on there...the MAP file i've named it as *kv.map*..and below are my WMS server setting on the MAP file.... * # WMS server settings METADATA 'wms_title' 'klang valley' 'wms_onlineresource' ' http://localhost/cgi-bin/testowms.exe?map=c:\ms4w\apps\kv\kv.map& ' 'wms_srs' 'EPSG:4326' END *and every my layers have auto generated by qGIS with metadata of * wms_title* * * 2. I've copy *mapserv.exe* from my *C:\ms4w\Apache\cgi-bin* and paste on the same path....and i've named it *testowms.exe *without changing anything on that EXE file..... 3. I've also change *httpd.conf* file by adding parameter on the very last line - *SetEnvIf Request_URI "/cgi-bin/testowms.exe" MS_MAPFILE=c:\ms4w\apps\kv\kv.map * 4. and then i've test my WMS server by insert url * http://localhost/cgi-bin/testowms.exe?map=c:\ms4w\apps\kv\kv.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities *then i've got download windows of *testowms.exe *Is it any problem or wrong on my changes....how do i know that i've got the right request from my server....... Hope u can help it..... -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at mmmtike.fi Thu Aug 14 22:01:15 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 15 Aug 2008 08:01:15 +0300 Subject: [mapserver-users] Fwd: Newbie want to know how to create my own wmsserver References: <9fb92bc20808130859y18e5b988u6226ef1b953711a0@mail.gmail.com> <9fb92bc20808142054j5a8ad12bya30451439b023a5b@mail.gmail.com> Message-ID: Hi, Just save the file "testowms.exe" on your disk and open it with text editor. Most probably it is the correct xml file, but your browser just do not recognise the special mime type of it. -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: u_b_i L?hetetty: pe 15.8.2008 6:54 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] Fwd: Newbie want to know how to create my own wmsserver ---------- Forwarded message ---------- From: u_b_i Date: Wed, Aug 13, 2008 at 11:59 PM Subject: Newbie want to know how to create my own wms server To: jeffmckenna at gmail.com Hai Jeff....since like it`s the first time i'm ask question to u....actually i have the problem to create my own wms server.....i've followed all of your instruction on your thread WMS Servers with Mapserver - UMN Mapserver...but i still cant create my own WMS server....for your information i'm using MS4W 4.4.2 installer as server for my Windows which comes already with WMS/WFS support....i like use the data to shown on flamingo mc- Flash based WMS client....below are what i've done following your instruction...please check either wrong or i've miss something...... 1. I've created my MAP file's using Quantum GIS (using export to MAP file plugin)....i seen that the MAP file have a lot of WMS tag requirements for WMS....so i didn't alter anything on there...the MAP file i've named it as *kv.map*..and below are my WMS server setting on the MAP file.... * # WMS server settings METADATA 'wms_title' 'klang valley' 'wms_onlineresource' ' http://localhost/cgi-bin/testowms.exe?map=c:\ms4w\apps\kv\kv.map& ' 'wms_srs' 'EPSG:4326' END *and every my layers have auto generated by qGIS with metadata of * wms_title* * * 2. I've copy *mapserv.exe* from my *C:\ms4w\Apache\cgi-bin* and paste on the same path....and i've named it *testowms.exe *without changing anything on that EXE file..... 3. I've also change *httpd.conf* file by adding parameter on the very last line - *SetEnvIf Request_URI "/cgi-bin/testowms.exe" MS_MAPFILE=c:\ms4w\apps\kv\kv.map * 4. and then i've test my WMS server by insert url * http://localhost/cgi-bin/testowms.exe?map=c:\ms4w\apps\kv\kv.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities *then i've got download windows of *testowms.exe *Is it any problem or wrong on my changes....how do i know that i've got the right request from my server....... Hope u can help it..... From james.mapserver at gmail.com Fri Aug 15 01:21:04 2008 From: james.mapserver at gmail.com (James Mapserver) Date: Fri, 15 Aug 2008 09:21:04 +0100 Subject: [mapserver-users] FastCGI on IIS6 - how to test ? Message-ID: Hi, I have been playing with installing this using Microsofts FastCGI addin. I am using the latest mapserv build from MS4W - which has fastcgi enabled I seem to have it all up and running (in that if a alter Microsoft configuration it stops working!) But how do I test if its really working as it should - and giving me the supposed benefits. In task manager - I still see lots of mapserv processes appearing and disappearing - belonging to IIS_USR - but there is a mapserv process that hangs around for quite a while belonging to NETWORK_SERVICES - which I didn't used to have. Is there any easy way to test this - other than just under heavy loading conditions ?? Thaks James -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.pulles at gmail.com Fri Aug 15 01:46:07 2008 From: john.pulles at gmail.com (John Pulles) Date: Fri, 15 Aug 2008 10:46:07 +0200 Subject: [mapserver-users] escape double quotes in data option Message-ID: <77e806670808150146w7f812ff3x132125695830ad38@mail.gmail.com> Hi list, I would like to define a map file layer with data coming from postgis and containing a (double) quoted postgis field and single quoted literals. For example: DATA "way from (select * from planet_osm_polygon where landuse='reservoir' or landuse='water' or "natural" in ('lake','water','land') order by z_order) as water using unique osm_id using srid = 28992" Reversing the single and double quotes does not work since postgresql needs double quotes around the "natural" column name. Doubling the quotes or using a back-slash does not work. Is it possible to escape double quotes in a map file? Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.pulles at gmail.com Fri Aug 15 02:10:53 2008 From: john.pulles at gmail.com (John Pulles) Date: Fri, 15 Aug 2008 11:10:53 +0200 Subject: [mapserver-users] Stress test wms demo application In-Reply-To: <19F99C8C1DB44B5FA9976A663A935491@stijnt> References: <19F99C8C1DB44B5FA9976A663A935491@stijnt> Message-ID: <77e806670808150210g4f021b8fla39c14e1cc36925a@mail.gmail.com> Hi Stijn, A nice and fast Flamingo map client implementation! I noticed that your wms capabilities contain a wrong service url part: http://www.mapservice.be/maps/mnr/bel/map? should be replaced by http://www.mapservice.be/maps/mnr/bel/aquaterra.be/map? in order to return maps. Regards, John 2008/8/14 Stijn Tallir > Hi, > > > > My company plans to deliver our raster catalog through a mapserver powered > WMS and I need the server to be real world stress tested. > > > > Please check out my demo application for showcasing our new mapservice: > http://www.aquaterra.be/nl/mapservice/mapservice_demo/ > > > > Thanks, > > > > Stijn > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri Aug 15 04:28:38 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 15 Aug 2008 07:28:38 -0400 Subject: [mapserver-users] libssl.so.6 error In-Reply-To: <204718.23397.qm@web45606.mail.sp1.yahoo.com> References: <204718.23397.qm@web45606.mail.sp1.yahoo.com> Message-ID: <48A56866.3020007@mapgears.com> Steve Smith wrote: > > There is no option for ssl in the configure file. I do see links to it > in my make out put. > However, I have not found reference to it in mapserver documentation. Do > you know > if it is required? If I am having this problem it must be. > libssl is probably pulled by libcurl. As Paul wrote, you are better recompile on the new platform. Symlinks may work if you're lucky, but can also cause all sorts of runtime errors like the memory corruption errors that you got. Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Fri Aug 15 05:59:35 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 15 Aug 2008 08:59:35 -0400 Subject: [mapserver-users] How to display vector symbols (direction and magnitude) in MapServer? In-Reply-To: <48A4A6D9.8080107@nsidc.org> References: <48A4A6D9.8080107@nsidc.org> Message-ID: <48A57DB7.2080800@mapgears.com> John Maurer wrote: > Dear MapServer Users, > Does anybody have experience displaying vectors in MapServer? By > "vectors", I don't mean the usual vector vs. raster difference. What I > mean is displaying data like wind vectors, which are point locations > that have both a direction (degrees) and magnitude (e.g. meters per > second). Usually these are displayed as arrows, which each point in a > certain direction and whose tails vary in length depending on the > magnitude each measurement. Is this possible in MapServer? Thanks for > any suggestions! You could bind the symbol size and angle to an attribute in your layer definition. If you can precompute the size in pixels based on the wind speed and store that to an 'arrowsize' attribute then you could use a layer defn's like this: LAYER TYPE POINT ... CLASS SYMBOL 'arrow' ANGLE [direction] SIZE [arrowsize] COLOR 0 0 0 END END If you can't precompute the arrow size in pixels, then you could use classes based on the wind speed attribute: LAYER TYPE POINT ... CLASSITEM 'windspeed' CLASS EXPRESSION ([windspeed] < 5) SYMBOL 'arrow' ANGLE [direction] SIZE 10 COLOR 0 0 0 END CLASS EXPRESSION ([windspeed] < 25) SYMBOL 'arrow' ANGLE [direction] SIZE 15 COLOR 0 0 0 END CLASS EXPRESSION ([windspeed] < 100) SYMBOL 'arrow' ANGLE [direction] SIZE 20 COLOR 0 0 0 END CLASS # No expression ... catch all for windspeed > 100 SYMBOL 'arrow' ANGLE [direction] SIZE 25 COLOR 0 0 0 END END Daniel -- Daniel Morissette http://www.mapgears.com/ From adube at mapgears.com Fri Aug 15 06:38:09 2008 From: adube at mapgears.com (Alexandre Dube) Date: Fri, 15 Aug 2008 09:38:09 -0400 Subject: [mapserver-users] FastCGI on IIS6 - how to test ? In-Reply-To: References: Message-ID: <48A586C1.60508@mapgears.com> Hi James, I already did many tests a couple of months ago to see if fastCGI was worth the efforts, and as soon as it worked, I noticed a good difference of performances. The map loaded much faster. At the bottom left of my internet browser, files transfered from the server were downloaded much faster in fastCGI mode than normal. But I also did real actual tests using a small application called http_load, you can get it at : http://www.acme.com/software/http_load/ Well, maybe Jeff McKenna knows a better way to do it... I definitively noticed a difference in performance between normal CGI and fastCGI. Try to make a file containing url of a GetMap request and test it with http_load with normal CGI and fastCGI configurations to see the difference. To disable fastCGI, add quotes to your httpd.conf where the module is loaded : #LoadModule fcgid_module modules/mod_fcgid.so This should be enough to disable it without problems. Then restart Apache. You can also see which modules are currently loaded with : go to --> /ms4w/Apache/bin type the following --> httpd -t -D DUMP_MODULES and see if your fastCGI module is there or not. A tip : when you start/restart/stop apache, be sure do it in a command window and not by clicking on the .bat file in windows mode. That way, you will be able to see if there is any error message. Best regards, Alexandre James Mapserver wrote: > Hi, > > I have been playing with installing this using Microsofts FastCGI addin. > I am using the latest mapserv build from MS4W - which has fastcgi enabled > > I seem to have it all up and running (in that if a alter Microsoft > configuration it stops working!) > > But how do I test if its really working as it should - and giving me > the supposed benefits. > > In task manager - I still see lots of mapserv processes appearing and > disappearing - belonging to IIS_USR - but there is a mapserv process > that hangs around for quite a while belonging to NETWORK_SERVICES - > which I didn't used to have. > > Is there any easy way to test this - other than just under heavy > loading conditions ?? > > Thaks > James > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Alexandre Dub? Mapgears www.mapgears.com From adube at mapgears.com Fri Aug 15 06:48:15 2008 From: adube at mapgears.com (Alexandre Dube) Date: Fri, 15 Aug 2008 09:48:15 -0400 Subject: [mapserver-users] FastCGI on IIS6 - how to test ? In-Reply-To: <48A586C1.60508@mapgears.com> References: <48A586C1.60508@mapgears.com> Message-ID: <48A5891F.1090000@mapgears.com> Sorry James, Just realized you use FastCGI on IIS, which I don't know how it works. Sorry. Alexandre Alexandre Dube wrote: > Hi James, > > I already did many tests a couple of months ago to see if fastCGI > was worth the efforts, and as soon as it worked, I noticed a good > difference of performances. The map loaded much faster. At the > bottom left of my internet browser, files transfered from the server > were downloaded much faster in fastCGI mode than normal. > > But I also did real actual tests using a small application called > http_load, you can get it at : http://www.acme.com/software/http_load/ > > Well, maybe Jeff McKenna knows a better way to do it... > > I definitively noticed a difference in performance between normal > CGI and fastCGI. Try to make a file containing url of a GetMap > request and test it with http_load with normal CGI and fastCGI > configurations to see the difference. > > To disable fastCGI, add quotes to your httpd.conf where the module > is loaded : > > #LoadModule fcgid_module modules/mod_fcgid.so > > This should be enough to disable it without problems. Then restart > Apache. > > You can also see which modules are currently loaded with : > > go to --> /ms4w/Apache/bin > type the following --> httpd -t -D DUMP_MODULES > > and see if your fastCGI module is there or not. > > A tip : when you start/restart/stop apache, be sure do it in a > command window and not by clicking on the .bat file in windows mode. > That way, you will be able to see if there is any error message. > > Best regards, > > Alexandre > > James Mapserver wrote: >> Hi, >> >> I have been playing with installing this using Microsofts FastCGI addin. >> I am using the latest mapserv build from MS4W - which has fastcgi >> enabled >> >> I seem to have it all up and running (in that if a alter Microsoft >> configuration it stops working!) >> >> But how do I test if its really working as it should - and giving me >> the supposed benefits. >> >> In task manager - I still see lots of mapserv processes appearing and >> disappearing - belonging to IIS_USR - but there is a mapserv process >> that hangs around for quite a while belonging to NETWORK_SERVICES - >> which I didn't used to have. >> >> Is there any easy way to test this - other than just under heavy >> loading conditions ?? >> >> Thaks >> James >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -- Alexandre Dub? Mapgears www.mapgears.com From bfischer at houstonengineeringinc.com Fri Aug 15 07:52:33 2008 From: bfischer at houstonengineeringinc.com (Fischer, Brian) Date: Fri, 15 Aug 2008 09:52:33 -0500 Subject: [mapserver-users] WMS Request issue Message-ID: <2EF6E1058C047344B4DE0FD141119167C9E016@hex01.houstonengineeringinc.com> MapServer users: Has anyone else ran into this issue. I am trying to access a WMS service I setup through a web browser to test it and the browser keeps prompting me to download mapserv.exe instead of executing it. Any ideas why it works on a non-wms request and not the wms getmap request? Both are using the same location and .exe on the server. It is using MapServer 5.2 from MS4W 2.2.8. Thanks, Brian If I do a non-wms request it works (example below): http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOO SE/douglas/maps_douglas/douglas_ogc.map&mapext=276595%205065831%20342552 %205113395&mapsize=821%20638&mode=map&layers = If I do a WMS GetMap request it prompts me to download the .exe: http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOO SE/douglas/maps_douglas/douglas_ogc.map&service=WMS&version=1.1.1&reques t=GetMap&layers=parcelwms&styles=default&srs=EPSG:26915&bbox=276595,5065 831,342552,5113395&width=600&height=500&format=image/png The mapfile is pretty straightforward as well. MAP NAME 'DouglasOGC' SIZE 800 650 STATUS ON EXTENT 5069486 285288 5109721 334186 UNITS METERS FONTSET 'fonts/fontset.list' SYMBOLSET 'symbols/symbol.sym' CONFIG "PROJ_LIB" "C:\proj\nad" PROJECTION "init=epsg:26915" END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "Douglas County WMS Server" "wms_onlineresource" "http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMO OSE/douglas/maps_douglas/douglas_ogc.map&" "wms_srs" "EPSG:26915" "wms_abstract" "The Douglas County WMS server has been setup for testing purposes only. The data should not be used for any official decisions" "wfs_title" "Douglas County WFS Server" "wfs_onlineresource" "http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMO OSE/douglas/maps_douglas/douglas_ogc.map&" "wfs_srs" "EPSG:26915" "wfs_abstract" "The Douglas County WFS server has been setup for testing purposes only. The data should not be used for any official decisions" END END LEGEND STATUS ON END LAYER # Parcel Polygon Layer NAME parcels METADATA "wms_title" "parcelwms" 'WMS_FEATURE_INFO_MIME_TYPE' 'text/plain' "wfs_title" "parcelwfs" "gml_featureid" "FID" "gml_include_items" "PIN,GIS_ACRES,TAXPAYER" END DATA 'ogc/parcels_utm15' DUMP TRUE #MAXSCALE 50000 #MINSCALE 500 STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:26915" END CLASS NAME "Parcels" SYMBOL 'plainline' COLOR -1 -1 -1 OUTLINECOLOR 153 255 153 SIZE 1.5 END END # Parcels Polygon Layer END ## end Map Brian Fischer, CFM GIS Project Manager Houston Engineering, Inc. | Leave Nothing to ChanceTM 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: 763.493.4522 / Fax: 763.493.5572 Email: bfischer at houstonengineeringinc.com Website: www.houstonengineeringinc.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Fri Aug 15 08:04:57 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Fri, 15 Aug 2008 11:04:57 -0400 Subject: [mapserver-users] WMS Request issue References: <2EF6E1058C047344B4DE0FD141119167C9E016@hex01.houstonengineeringinc.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC389@ecburexch1.ontario.int.ec.gc.ca> Brian: what you're actually getting back is a service exception (try saving and opening the output in a text editor such as Notepad), which states invalid layers given. In your WMS GetMap request, you specify the layer "parcelwms" which does exists in your mapfile (i.e. LAYER.NAME). When I try changing the layer name to "parcels", i.e.: http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&service=WMS&version=1.1.1&request=GetMap&layers=parcels&styles=default&srs=EPSG:26915&bbox=276595,5065831,342552,5113395&width=600&height=500&format=image/png I get a valid response back. ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Fischer, Brian Sent: Fri 15-Aug-08 10:52 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] WMS Request issue MapServer users: Has anyone else ran into this issue. I am trying to access a WMS service I setup through a web browser to test it and the browser keeps prompting me to download mapserv.exe instead of executing it. Any ideas why it works on a non-wms request and not the wms getmap request? Both are using the same location and .exe on the server. It is using MapServer 5.2 from MS4W 2.2.8. Thanks, Brian If I do a non-wms request it works (example below): http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOO SE/douglas/maps_douglas/douglas_ogc.map&mapext=276595%205065831%20342552 %205113395&mapsize=821%20638&mode=map&layers = If I do a WMS GetMap request it prompts me to download the .exe: http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOO SE/douglas/maps_douglas/douglas_ogc.map&service=WMS&version=1.1.1&reques t=GetMap&layers=parcelwms&styles=default&srs=EPSG:26915&bbox=276595,5065 831,342552,5113395&width=600&height=500&format=image/png The mapfile is pretty straightforward as well. MAP NAME 'DouglasOGC' SIZE 800 650 STATUS ON EXTENT 5069486 285288 5109721 334186 UNITS METERS FONTSET 'fonts/fontset.list' SYMBOLSET 'symbols/symbol.sym' CONFIG "PROJ_LIB" "C:\proj\nad" PROJECTION "init=epsg:26915" END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "Douglas County WMS Server" "wms_onlineresource" "http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMO OSE/douglas/maps_douglas/douglas_ogc.map&" "wms_srs" "EPSG:26915" "wms_abstract" "The Douglas County WMS server has been setup for testing purposes only. The data should not be used for any official decisions" "wfs_title" "Douglas County WFS Server" "wfs_onlineresource" "http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMO OSE/douglas/maps_douglas/douglas_ogc.map&" "wfs_srs" "EPSG:26915" "wfs_abstract" "The Douglas County WFS server has been setup for testing purposes only. The data should not be used for any official decisions" END END LEGEND STATUS ON END LAYER # Parcel Polygon Layer NAME parcels METADATA "wms_title" "parcelwms" 'WMS_FEATURE_INFO_MIME_TYPE' 'text/plain' "wfs_title" "parcelwfs" "gml_featureid" "FID" "gml_include_items" "PIN,GIS_ACRES,TAXPAYER" END DATA 'ogc/parcels_utm15' DUMP TRUE #MAXSCALE 50000 #MINSCALE 500 STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:26915" END CLASS NAME "Parcels" SYMBOL 'plainline' COLOR -1 -1 -1 OUTLINECOLOR 153 255 153 SIZE 1.5 END END # Parcels Polygon Layer END ## end Map Brian Fischer, CFM GIS Project Manager Houston Engineering, Inc. | Leave Nothing to ChanceTM 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: 763.493.4522 / Fax: 763.493.5572 Email: bfischer at houstonengineeringinc.com Website: www.houstonengineeringinc.com From plieger at knmi.nl Fri Aug 15 08:13:11 2008 From: plieger at knmi.nl (Maarten Plieger) Date: Fri, 15 Aug 2008 15:13:11 +0000 Subject: [mapserver-users] WMS Request issue In-Reply-To: <2EF6E1058C047344B4DE0FD141119167C9E016@hex01.houstonengineeringinc.com> References: <2EF6E1058C047344B4DE0FD141119167C9E016@hex01.houstonengineeringinc.com> Message-ID: <48A59D07.2010409@knmi.nl> Hi Brian, Mapserver is actually executed and sends an error report back to you: msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. Your layers parameter is wrong, it should be parcels instead of parcelswms: http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&service=WMS&version=1.1.1&request=GetMap&layers=parcels&styles=default&srs=EPSG:26915&bbox=276595,5065831,342552,5113395&width=600&height=500&format=image/png When you use version 1.0.0 instead of 1.1.1 the error is reported as an image, so you can read it in your browser. Regards, Maarten Plieger Fischer, Brian schreef: > MapServer users: > > Has anyone else ran into this issue. I am trying to access a WMS > service I setup through a web browser to test it and the browser keeps > prompting me to download mapserv.exe instead of executing it. Any > ideas why it works on a non-wms request and not the wms getmap > request? Both are using the same location and .exe on the server. It > is using MapServer 5.2 from MS4W 2.2.8. Thanks, Brian > > If I do a non-wms request it works (example below): > http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&mapext=276595%205065831%20342552%205113395&mapsize=821%20638&mode=map&layers > = > > If I do a WMS GetMap request it prompts me to download the .exe: > http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&service=WMS&version=1.1.1&request=GetMap&layers=parcelwms&styles=default&srs=EPSG:26915&bbox=276595,5065831,342552,5113395&width=600&height=500&format=image/png > > > The mapfile is pretty straightforward as well. > MAP > NAME 'DouglasOGC' > SIZE 800 650 > STATUS ON > EXTENT 5069486 285288 5109721 334186 > UNITS METERS > FONTSET 'fonts/fontset.list' > SYMBOLSET 'symbols/symbol.sym' > CONFIG "PROJ_LIB" "C:\proj\nad" > PROJECTION > "init=epsg:26915" > END > > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > "wms_title" "Douglas County WMS Server" > > "wms_onlineresource" "http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&" > "wms_srs" "EPSG:26915" > "wms_abstract" "The Douglas County WMS server has been setup for > testing purposes only. The data should not be used for any official > decisions" > "wfs_title" "Douglas County WFS Server" > "wfs_onlineresource" > "http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&" > "wfs_srs" "EPSG:26915" > "wfs_abstract" "The Douglas County WFS server has been setup for > testing purposes only. The data should not be used for any official > decisions" > END > END > > LEGEND > STATUS ON > END > > LAYER # Parcel Polygon Layer > NAME parcels > METADATA > "wms_title" "parcelwms" > 'WMS_FEATURE_INFO_MIME_TYPE' 'text/plain' > "wfs_title" "parcelwfs" > "gml_featureid" "FID" > "gml_include_items" "PIN,GIS_ACRES,TAXPAYER" > END > DATA 'ogc/parcels_utm15' > DUMP TRUE > #MAXSCALE 50000 > #MINSCALE 500 > STATUS DEFAULT > TYPE POLYGON > PROJECTION > "init=epsg:26915" > END > CLASS > NAME "Parcels" > SYMBOL 'plainline' > COLOR -1 -1 -1 > OUTLINECOLOR 153 255 153 > SIZE 1.5 > END > END # Parcels Polygon Layer > END ## end Map > > *Brian Fischer,* CFM > GIS Project Manager > */Houston Engineering, Inc./* | Leave Nothing to Chance^TM > 6901 East Fish Lake Road, Suite 140 > Maple Grove, MN 55369 > Phone: 763.493.4522 / Fax: 763.493.5572 > Email: _bfischer at houstonengineeringinc.com_ > > Website: _www.houstonengineeringinc.com_ > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Maarten Plieger KNMI, R&D Information and Observation Technology, De Bilt (t) +31 30 2206330 From Jukka.Rahkonen at mmmtike.fi Fri Aug 15 08:19:37 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Fri, 15 Aug 2008 18:19:37 +0300 Subject: [mapserver-users] WMS Request issue References: <2EF6E1058C047344B4DE0FD141119167C9E016@hex01.houstonengineeringinc.com> Message-ID: Hi, File you are prompted to download is not the mapserv.exe you believe. It is xml text file and if you just download it and open it you'll see: msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS parameter. However, using layers=parcels does not give an image either, but this message this time: msEvalRegex(): Regular expression error. String (/ms4w/apps/GeoMOOSE/douglas/maps_douglas/douglas_ogc.map&service=WMS&version=1.1.1&request=GetMap&layers=parcels&styles=default&srs=EPSG:26915&bbox=276595,5065831,342552,5113395&width=600&height=500&format=image/jpeg) failed expression test. Go on trying, we will certainly do it! -Jukka Rahkonen- -----Alkuper?inen viesti----- L?hett?j?: mapserver-users-bounces at lists.osgeo.org puolesta: Fischer, Brian L?hetetty: pe 15.8.2008 17:52 Vastaanottaja: mapserver-users at lists.osgeo.org Aihe: [mapserver-users] WMS Request issue MapServer users: Has anyone else ran into this issue. I am trying to access a WMS service I setup through a web browser to test it and the browser keeps prompting me to download mapserv.exe instead of executing it. Any ideas why it works on a non-wms request and not the wms getmap request? Both are using the same location and .exe on the server. It is using MapServer 5.2 from MS4W 2.2.8. Thanks, Brian If I do a non-wms request it works (example below): http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOO SE/douglas/maps_douglas/douglas_ogc.map&mapext=276595%205065831%20342552 %205113395&mapsize=821%20638&mode=map&layers = If I do a WMS GetMap request it prompts me to download the .exe: http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMOO SE/douglas/maps_douglas/douglas_ogc.map&service=WMS&version=1.1.1&reques t=GetMap&layers=parcelwms&styles=default&srs=EPSG:26915&bbox=276595,5065 831,342552,5113395&width=600&height=500&format=image/png The mapfile is pretty straightforward as well. MAP NAME 'DouglasOGC' SIZE 800 650 STATUS ON EXTENT 5069486 285288 5109721 334186 UNITS METERS FONTSET 'fonts/fontset.list' SYMBOLSET 'symbols/symbol.sym' CONFIG "PROJ_LIB" "C:\proj\nad" PROJECTION "init=epsg:26915" END WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "Douglas County WMS Server" "wms_onlineresource" "http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMO OSE/douglas/maps_douglas/douglas_ogc.map&" "wms_srs" "EPSG:26915" "wms_abstract" "The Douglas County WMS server has been setup for testing purposes only. The data should not be used for any official decisions" "wfs_title" "Douglas County WFS Server" "wfs_onlineresource" "http://douglas.houstoneng.com/cgi-bin2/mapserv.exe?map=/ms4w/apps/GeoMO OSE/douglas/maps_douglas/douglas_ogc.map&" "wfs_srs" "EPSG:26915" "wfs_abstract" "The Douglas County WFS server has been setup for testing purposes only. The data should not be used for any official decisions" END END LEGEND STATUS ON END LAYER # Parcel Polygon Layer NAME parcels METADATA "wms_title" "parcelwms" 'WMS_FEATURE_INFO_MIME_TYPE' 'text/plain' "wfs_title" "parcelwfs" "gml_featureid" "FID" "gml_include_items" "PIN,GIS_ACRES,TAXPAYER" END DATA 'ogc/parcels_utm15' DUMP TRUE #MAXSCALE 50000 #MINSCALE 500 STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:26915" END CLASS NAME "Parcels" SYMBOL 'plainline' COLOR -1 -1 -1 OUTLINECOLOR 153 255 153 SIZE 1.5 END END # Parcels Polygon Layer END ## end Map Brian Fischer, CFM GIS Project Manager Houston Engineering, Inc. | Leave Nothing to ChanceTM 6901 East Fish Lake Road, Suite 140 Maple Grove, MN 55369 Phone: 763.493.4522 / Fax: 763.493.5572 Email: bfischer at houstonengineeringinc.com Website: www.houstonengineeringinc.com From oldbucsfan at hotmail.com Fri Aug 15 08:29:26 2008 From: oldbucsfan at hotmail.com (john) Date: Fri, 15 Aug 2008 10:29:26 -0500 Subject: [mapserver-users] MySQL Blob vs Text issue with mapserver Message-ID: I am connected to mysql through a ms layer but am receiving a text layer in hex numbers as if it were a blob. SiteName and cultaffil are TEXT layers, but are interpreted as blobs as far as I can tell. Is there either a fix for this or a workaround? Thanks LAYER NAME "Sites" STATUS OFF GROUP "Sites" TYPE POINT TOLERANCE 8 TOLERANCEUNITS pixels CONNECTIONTYPE OGR CONNECTION "MYSQL:test,user=username,password=pass" DATA "Select * from site_point" TEMPLATE "void" METADATA "DESCRIPTION" "Sites" "RESULT_FIELDS" "SiteNumber,SiteName,cultaffil" "RESULT_HEADERS" "Site Number,Site Name,Cultural Affiliation" "RESULT_HYPERLINK" "SiteNumber" "LAYER_ENCODING" "UTF-8" "ows_title" "Sites" END # Metadata END -------------- next part -------------- An HTML attachment was scrubbed... URL: From greenkov at gmail.com Fri Aug 15 08:49:27 2008 From: greenkov at gmail.com (Alexander Petkov) Date: Fri, 15 Aug 2008 09:49:27 -0600 Subject: [mapserver-users] wcs_timeposition: explicit listing or start/end range? Message-ID: I am trying to allow data downloads via a GetCoverage requests from a mapserver-backed web coverage service. >From the documentation, it would appear that the wcs_timeposition in a layers' metadata section can specify the start and end time positions for the layer. wcs_timeposition * Description: (Optional) A list of the start and end time of a given coverage (i.e. "2000-11-11T11:11:11Z,2001-11-11T11:11:11Z"), used when advertising GetCapabilities. However, in practice, it looks like each time position needs to be listed explicitly, or else an exception is thrown: msWCSGetCoverage(): WCS server error. The coverage does not have a time position of 2005-12-20. Is it possible to define the time extent with start and end time stamps, and time resolution, similar to the wms_timeextent parameter? Otherwise, my time position list would end up being rather long for a coverage that has data for several years... TIA, Alex From darenas2001 at yahoo.es Fri Aug 15 09:11:08 2008 From: darenas2001 at yahoo.es (daa32) Date: Fri, 15 Aug 2008 09:11:08 -0700 (PDT) Subject: [MAPSERVER-USERS] how to avoid overlapping points Message-ID: <19000618.post@talk.nabble.com> Hi folks! I?m making a WMS using a point layer. The questions is that those points are very close each other and get overlapping. Do anyone know how to avoid that problem? thanks a million David Arenas (Spain) -- View this message in context: http://www.nabble.com/how-to-avoid-overlapping-points-tp19000618p19000618.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Fri Aug 15 09:59:30 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 15 Aug 2008 11:59:30 -0500 Subject: [mapserver-users] wcs_timeposition: explicit listing or start/endrange? In-Reply-To: References: Message-ID: <48A56FA3.5157.008F.0@dnr.state.mn.us> Hi Alex: A present no, you have to be explicit. If you file a bug I'll make sure this gets synced with the WMS implementation. Steve >>> On 8/15/2008 at 10:49 AM, in message , "Alexander Petkov" wrote: > I am trying to allow data downloads via a GetCoverage requests from a > mapserver-backed web coverage service. > >>From the documentation, it would appear that the wcs_timeposition in > a layers' metadata section can specify the start and end time > positions for the layer. > wcs_timeposition > > * Description: (Optional) A list of the start and end time of a > given coverage (i.e. "2000-11-11T11:11:11Z,2001-11-11T11:11:11Z"), > used when advertising GetCapabilities. > > However, in practice, it looks like each time position needs to be > listed explicitly, or else an exception is thrown: > xsi:schemaLocation="http://www.opengis.net/ogc > http://schemas.opengis.net/wcs/1.0.0/OGC-exception.xsd"> > > msWCSGetCoverage(): WCS server error. The coverage does not have a > time position of 2005-12-20. > > > > > Is it possible to define the time extent with start and end time > stamps, and time resolution, similar to the wms_timeextent parameter? > Otherwise, my time position list would end up being rather long for a > coverage that has data for several years... > > TIA, > Alex > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From greenkov at gmail.com Fri Aug 15 10:07:01 2008 From: greenkov at gmail.com (Alexander Petkov) Date: Fri, 15 Aug 2008 11:07:01 -0600 Subject: [mapserver-users] wcs_timeposition: explicit listing or start/endrange? In-Reply-To: <48A56FA3.5157.008F.0@dnr.state.mn.us> References: <48A56FA3.5157.008F.0@dnr.state.mn.us> Message-ID: OK, I will see how I can do that. A brief glance at the code shows intent to figure out time positions from the wcs_timeitem parameter if wcs_timeposition is being set to "AUTO" Alex On Fri, Aug 15, 2008 at 10:59 AM, Steve Lime wrote: > Hi Alex: A present no, you have to be explicit. If you file a bug I'll make sure this > gets synced with the WMS implementation. > > Steve > >>>> On 8/15/2008 at 10:49 AM, in message > , "Alexander > Petkov" wrote: >> I am trying to allow data downloads via a GetCoverage requests from a >> mapserver-backed web coverage service. >> >>>From the documentation, it would appear that the wcs_timeposition in >> a layers' metadata section can specify the start and end time >> positions for the layer. >> wcs_timeposition >> >> * Description: (Optional) A list of the start and end time of a >> given coverage (i.e. "2000-11-11T11:11:11Z,2001-11-11T11:11:11Z"), >> used when advertising GetCapabilities. >> >> However, in practice, it looks like each time position needs to be >> listed explicitly, or else an exception is thrown: >> > xsi:schemaLocation="http://www.opengis.net/ogc >> http://schemas.opengis.net/wcs/1.0.0/OGC-exception.xsd"> >> >> msWCSGetCoverage(): WCS server error. The coverage does not have a >> time position of 2005-12-20. >> >> >> >> >> Is it possible to define the time extent with start and end time >> stamps, and time resolution, similar to the wms_timeextent parameter? >> Otherwise, my time position list would end up being rather long for a >> coverage that has data for several years... >> >> TIA, >> Alex >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From Steve.Lime at dnr.state.mn.us Fri Aug 15 10:09:48 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 15 Aug 2008 12:09:48 -0500 Subject: [MAPSERVER-USERS] how to avoid overlapping points In-Reply-To: <19000618.post@talk.nabble.com> References: <19000618.post@talk.nabble.com> Message-ID: <48A5720C.5157.008F.0@dnr.state.mn.us> What are you after instead? If you use an annotation layer a marker is considered part of the label and is used in collision avoidance. Steve >>> On 8/15/2008 at 11:11 AM, in message <19000618.post at talk.nabble.com>, daa32 wrote: > Hi folks! > > I?m making a WMS using a point layer. The questions is that those points are > very close each other and get overlapping. Do anyone know how to avoid that > problem? > > thanks a million > > David Arenas (Spain) > -- > View this message in context: > http://www.nabble.com/how-to-avoid-overlapping-points-tp19000618p19000618.htm > l > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Fri Aug 15 10:11:10 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 15 Aug 2008 12:11:10 -0500 Subject: [mapserver-users] wcs_timeposition: explicit listing orstart/endrange? In-Reply-To: References: <48A56FA3.5157.008F.0@dnr.state.mn.us> Message-ID: <48A5725F.5157.008F.0@dnr.state.mn.us> The WCS 1.1 implementation might be more flexible than the 1.0 one. Frank would be able to comment further I suspect. Steve >>> On 8/15/2008 at 12:07 PM, in message , "Alexander Petkov" wrote: > OK, I will see how I can do that. > > A brief glance at the code shows intent to figure out time positions > from the wcs_timeitem parameter if wcs_timeposition is being set to > "AUTO" > > Alex > > On Fri, Aug 15, 2008 at 10:59 AM, Steve Lime > wrote: >> Hi Alex: A present no, you have to be explicit. If you file a bug I'll make > sure this >> gets synced with the WMS implementation. >> >> Steve >> >>>>> On 8/15/2008 at 10:49 AM, in message >> , "Alexander >> Petkov" wrote: >>> I am trying to allow data downloads via a GetCoverage requests from a >>> mapserver-backed web coverage service. >>> >>>>From the documentation, it would appear that the wcs_timeposition in >>> a layers' metadata section can specify the start and end time >>> positions for the layer. >>> wcs_timeposition >>> >>> * Description: (Optional) A list of the start and end time of a >>> given coverage (i.e. "2000-11-11T11:11:11Z,2001-11-11T11:11:11Z"), >>> used when advertising GetCapabilities. >>> >>> However, in practice, it looks like each time position needs to be >>> listed explicitly, or else an exception is thrown: >>> >> xsi:schemaLocation="http://www.opengis.net/ogc >>> http://schemas.opengis.net/wcs/1.0.0/OGC-exception.xsd"> >>> >>> msWCSGetCoverage(): WCS server error. The coverage does not have a >>> time position of 2005-12-20. >>> >>> >>> >>> >>> Is it possible to define the time extent with start and end time >>> stamps, and time resolution, similar to the wms_timeextent parameter? >>> Otherwise, my time position list would end up being rather long for a >>> coverage that has data for several years... >>> >>> TIA, >>> Alex >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From john.pulles at gmail.com Fri Aug 15 11:37:48 2008 From: john.pulles at gmail.com (John Pulles) Date: Fri, 15 Aug 2008 20:37:48 +0200 Subject: [mapserver-users] escape double quotes in data option In-Reply-To: <972899.10746.qm@web38203.mail.mud.yahoo.com> References: <77e806670808150146w7f812ff3x132125695830ad38@mail.gmail.com> <972899.10746.qm@web38203.mail.mud.yahoo.com> Message-ID: <77e806670808151137j3cddc490sf6a1ca8284b6590a@mail.gmail.com> 2008/8/15 Carlos Ruiz > try using [natural] to see what happens. I had some problem like that > before, like having table names wich start with a number. > Thanks for your suggestion. But no, using [natural] returns a "syntax error at or near [". In http://mapserver.gis.umn.edu/docs/howto/msexpressions I found that quotes can be escaped in mapserver expressions. But apparently not in the data option. John. -------------- next part -------------- An HTML attachment was scrubbed... URL: From john.pulles at gmail.com Fri Aug 15 11:57:27 2008 From: john.pulles at gmail.com (John Pulles) Date: Fri, 15 Aug 2008 20:57:27 +0200 Subject: [mapserver-users] escape double quotes in data option In-Reply-To: <194233.24138.qm@web38207.mail.mud.yahoo.com> References: <77e806670808151137j3cddc490sf6a1ca8284b6590a@mail.gmail.com> <194233.24138.qm@web38207.mail.mud.yahoo.com> Message-ID: <77e806670808151157x2bfa81f7t17b719720b9c6ce0@mail.gmail.com> 2008/8/15 Carlos Ruiz > Yes, indeed. I tried with \" but it didn't work. Don't know what to do when > i had that problem. Maybe we could work with the source file of the parser > to be able to allow double quotes. In this case I can work around it by renaming the database column to something that doesn't require the quotes. Mapserver should probably support escaping quotes, but I guess it's not a priority. Thanks, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From oldbucsfan at hotmail.com Fri Aug 15 13:06:34 2008 From: oldbucsfan at hotmail.com (john) Date: Fri, 15 Aug 2008 15:06:34 -0500 Subject: [mapserver-users] MySQL Blob vs Text issue with mapserver In-Reply-To: References: Message-ID: Found a workaround: http://ifelse.co.uk/archives/2004/09/18/hex-to-ascii-php-script/ Modified function here for hex data to string: However, I have yet to find a way to test if a string is hex (as opposed to an int or a character string that just happens to have a few hex chars in it), otherwise I will have to do it on each field individually which really is not the best way to handle this. This needs to be fixed when the results are queried out of the database where MySQL returns flags that determine if a field is Blob or Text. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssteve52 at yahoo.com Fri Aug 15 13:34:25 2008 From: ssteve52 at yahoo.com (Steve Smith) Date: Fri, 15 Aug 2008 13:34:25 -0700 (PDT) Subject: [mapserver-users] libssl.so.6 error In-Reply-To: <48A56866.3020007@mapgears.com> Message-ID: <556255.45837.qm@web45602.mail.sp1.yahoo.com> --- On Fri, 8/15/08, Daniel Morissette wrote: > From: Daniel Morissette > Subject: Re: [mapserver-users] libssl.so.6 error > To: mapserver-users at lists.osgeo.org > Date: Friday, August 15, 2008, 11:28 AM > Steve Smith wrote: > > > > There is no option for ssl in the configure file. I do > see links to it > > in my make out put. > > However, I have not found reference to it in mapserver > documentation. Do > > you know > > if it is required? If I am having this problem it must > be. > > > > libssl is probably pulled by libcurl. > > As Paul wrote, you are better recompile on the new > platform. Symlinks > may work if you're lucky, but can also cause all sorts > of runtime errors > like the memory corruption errors that you got. > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users Thanks for the reference to libcurl. I had been recompiling mapserver, however I was using libcurl from /usr/lib. For what ever reason this seemed to be the problem. I compiled an older version of curl and put it in /usr/local/lib, and then recompile mapserver. After that it worked. Know on to bigger and better problems! From darenas2001 at yahoo.es Fri Aug 15 13:38:19 2008 From: darenas2001 at yahoo.es (daa32) Date: Fri, 15 Aug 2008 13:38:19 -0700 (PDT) Subject: [MAPSERVER-USERS] how to avoid overlapping points In-Reply-To: <48A5720C.5157.008F.0@dnr.state.mn.us> References: <19000618.post@talk.nabble.com> <48A5720C.5157.008F.0@dnr.state.mn.us> Message-ID: <19004959.post@talk.nabble.com> Hi Steve, I?m using a point shape. Here you can see part of my map file: LAYER NAME 'prueba' DATA 'G:\shapes\prueba' TYPE POINT STATUS on MAXSCALEDENOM 500000 OPACITY ALPHA TOLERANCE 4 DUMP TRUE DEBUG OFF PROCESSING "CLOSE_CONNECTION=DEFER" SYMBOLSCALEDENOM 1000000 CLASSITEM 'CENTRO' CLASS NAME 'Aeropuertos' EXPRESSION ('[CENTRO]' = '5') STYLE COLOR 0 0 0 SYMBOL 'aeropuertos' SIZE 10 #MINSIZE 1 MAXSIZE 14 END #STYLE END #CLASS CLASS NAME 'helipuertos' EXPRESSION ('[CENTRO]' = '2') STYLE COLOR 0 0 0 SYMBOL 'helipuertos' SIZE 10 #MINSIZE 1 MAXSIZE 14 END #STYLE END #CLASS then, I understood from your advice I have to use "TYPE ANNOTATION" , better than "TYPE POINT" to avoid overlapping , haven?t I? I?ve attached a screen capture where you can check my problem http://www.nabble.com/file/p19004959/prueba.jpg Thanks again Steve Lime wrote: > > What are you after instead? If you use an annotation layer a marker is > considered part of the > label and is used in collision avoidance. > > Steve > >>>> On 8/15/2008 at 11:11 AM, in message > <19000618.post at talk.nabble.com>, daa32 > wrote: > >> Hi folks! >> >> I?m making a WMS using a point layer. The questions is that those > points are >> very close each other and get overlapping. Do anyone know how to > avoid that >> problem? >> >> thanks a million >> >> David Arenas (Spain) >> -- >> View this message in context: >> > http://www.nabble.com/how-to-avoid-overlapping-points-tp19000618p19000618.htm > >> l >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/how-to-avoid-overlapping-points-tp19000618p19004959.html Sent from the Mapserver - User mailing list archive at Nabble.com. From boommonge at gmail.com Fri Aug 15 21:44:15 2008 From: boommonge at gmail.com (LMonge) Date: Fri, 15 Aug 2008 21:44:15 -0700 Subject: [mapserver-users] loadWeb(): General error message.URL-based TEMPLATE... Message-ID: <390b64100808152144v4163a75fh3aa4f4a1ea3cb3c6@mail.gmail.com> Hello everybody ! I do not understand this error: loadWeb(): General error message. URL-based TEMPLATE configuration failed pattern validation. somebody can help me? I have verified the code in my templetes, but I didn?t find the error. I have installed in my pc: mapserver 5.2 and MapServer 5.x Demo Application thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulborodaev at gmail.com Sat Aug 16 03:56:18 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Sat, 16 Aug 2008 03:56:18 -0700 (PDT) Subject: [MAPSERVER-USERS] FastCGI on IIS6 - how to test ? In-Reply-To: References: Message-ID: <19010517.post@talk.nabble.com> Guys, please (!!!) post here a kind of step-by-step instructions - how to setup mapserv fcgi (with module from iis.net) on iis6. I tried to do it but without success. With http://www.caraveo.com/fastcgi/ mapserv works but not very well. -- View this message in context: http://www.nabble.com/FastCGI-on-IIS6---how-to-test---tp18995376p19010517.html Sent from the Mapserver - User mailing list archive at Nabble.com. From james.perrins at gmail.com Sat Aug 16 05:22:29 2008 From: james.perrins at gmail.com (James Perrins) Date: Sat, 16 Aug 2008 13:22:29 +0100 Subject: [MAPSERVER-USERS] FastCGI on IIS6 - how to test ? In-Reply-To: <19010517.post@talk.nabble.com> References: <19010517.post@talk.nabble.com> Message-ID: Hi, I'd be happy to post what I did - but I'm not yet sure that its actually working - hence this post - I'd like some way of testing before I start posting incorrect instructions ... I've not used to FastGIS so I'm not really sure what I should be looking for On Sat, Aug 16, 2008 at 11:56 AM, BrainDrain wrote: > > Guys, please (!!!) post here a kind of step-by-step instructions - how to > setup mapserv fcgi (with module from iis.net) on iis6. I tried to do it but > without success. With http://www.caraveo.com/fastcgi/ mapserv works but not > very well. > -- > View this message in context: http://www.nabble.com/FastCGI-on-IIS6---how-to-test---tp18995376p19010517.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- Dr James Perrins exeGesIS SDM Ltd Great House Barn New Street, Talgarth Powys LD3 0AH. Direct Line: 01646 686650 Tel: 01874 711145 Fax: 01874 711156 Email: JamesP at esdm.co.uk This E-mail and any files transmitted with it are private and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, the E-mail and any files have been transmitted to you in error and any copying, distribution or other use of the information contained in them is strictly prohibited. Nothing in this E-mail message amounts to a contractual or other legal commitment on the part of exeGesIS SDM Ltd unless confirmed by a signed communication. exeGesIS SDM Ltd will make every effort to keep its network free of viruses. However, the recipient of this message will need to scan this message, and any attachments, for viruses, as exeGesIS SDM Ltd can take no responsibility for any computer virus that might be transferred by this e-mail. From paulborodaev at gmail.com Sat Aug 16 07:39:20 2008 From: paulborodaev at gmail.com (BrainDrain) Date: Sat, 16 Aug 2008 07:39:20 -0700 (PDT) Subject: [MAPSERVER-USERS] FastCGI on IIS6 - how to test ? In-Reply-To: References: <19010517.post@talk.nabble.com> Message-ID: <19011960.post@talk.nabble.com> look at the isapi filters section in inetmgr - iis shows if your dll already loaded (after some map request of course) James Perrins-2 wrote: > > Hi, > > I'd be happy to post what I did - but I'm not yet sure that its > actually working - hence this post - I'd like some way of testing > before I start posting incorrect instructions ... > > I've not used to FastGIS so I'm not really sure what I should be looking > for > > On Sat, Aug 16, 2008 at 11:56 AM, BrainDrain > wrote: >> >> Guys, please (!!!) post here a kind of step-by-step instructions - how to >> setup mapserv fcgi (with module from iis.net) on iis6. I tried to do it >> but >> without success. With http://www.caraveo.com/fastcgi/ mapserv works but >> not >> very well. >> -- >> View this message in context: >> http://www.nabble.com/FastCGI-on-IIS6---how-to-test---tp18995376p19010517.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > -- > Dr James Perrins > exeGesIS SDM Ltd > Great House Barn > New Street, Talgarth > Powys LD3 0AH. > Direct Line: 01646 686650 > Tel: 01874 711145 > Fax: 01874 711156 > Email: JamesP at esdm.co.uk > > This E-mail and any files transmitted with it are private and intended > solely for the use of the individual or entity to whom they are > addressed. If you are not the intended recipient, the E-mail and any > files have been transmitted to you in error and any copying, > distribution or other use of the information contained in them is > strictly prohibited. > > Nothing in this E-mail message amounts to a contractual or other legal > commitment on the part of exeGesIS SDM Ltd unless confirmed by a > signed communication. > > exeGesIS SDM Ltd will make every effort to keep its network free of > viruses. However, the recipient of this message will need to scan this > message, and any attachments, for viruses, as exeGesIS SDM Ltd can > take no responsibility for any computer virus that might be > transferred by this e-mail. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/FastCGI-on-IIS6---how-to-test---tp18995376p19011960.html Sent from the Mapserver - User mailing list archive at Nabble.com. From felix1 at gmail.com Sat Aug 16 08:48:48 2008 From: felix1 at gmail.com (Felix) Date: Sat, 16 Aug 2008 11:48:48 -0400 Subject: [mapserver-users] Mapserver TIF Layer Message-ID: <454075e60808160848r73e70bfeic6345b0ab1cdfa48@mail.gmail.com> Hi, I'm having some difficulty getting a map to show up. I've setup the latest version of MapServer and I have a TIF with a TFW file. I don't fully understand how EXTENT works, and I can't find any decent explanation in the documentation. I'm trying to display a portion of my map based on latitude and longitude. What do I need to put in my EXTENT field so that I can get a map with top-left (40.846823/-74.153979) and bottom-right (40.685928/-73.795132). Thank you for any assistance! Felix Here is my TFW file: 63.545941999999989 0.0 0.0 -63.545941999999989 -421692.82776298042 -15874.371420191659 And my Map File: MAP NAME NY77SOUTH STATUS ON IMAGETYPE PNG SIZE 500 500 SHAPEPATH "/var/www/html" #West South East North EXTENT -421692.82776298042 -15874.371420191659 0 0 UNITS METERS PROJECTION "proj=lcc" "lat_1=46.666667" "lat_2=41.333333" "lon_0=-72.833333" "lat_0=42.1" "x_0=0.0" "y_0=0.0" "ellps=GRS80" "datum=NAD83" END WEB IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" END LAYER NAME "chart" TYPE RASTER STATUS ON DATA "/var/www/html/NewYork77South.tif" END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From Albrecht.Weiser at hzd.hessen.de Mon Aug 18 00:19:50 2008 From: Albrecht.Weiser at hzd.hessen.de (Albrecht.Weiser at hzd.hessen.de) Date: Mon, 18 Aug 2008 09:19:50 +0200 Subject: [mapserver-users] RE: Stress test wms demo application In-Reply-To: <20080814160030.915E1E01FE3@lists.osgeo.org> References: <20080814160030.915E1E01FE3@lists.osgeo.org> Message-ID: Hi Stijn, the Service works very good. Especially the client does its job very well! Which client did youo use? Best Albrecht Albrecht Weiser, E6, GIS Center Hessische Zentrale f?r Datenverarbeitung (HZD) Mainzer Stra?e 29, 65185 Wiesbaden Tel.: 0611 340-3113 Fax: 0611 340-5113 E-Mail: albrecht.weiser-at-hzd.hessen.de > Message: 3 > Date: Thu, 14 Aug 2008 16:17:15 +0200 > From: "Stijn Tallir" > Subject: [mapserver-users] Stress test wms demo application > To: > Message-ID: <19F99C8C1DB44B5FA9976A663A935491 at stijnt> > Content-Type: text/plain; charset="us-ascii" > > Hi, > > > > My company plans to deliver our raster catalog through a > mapserver powered > WMS and I need the server to be real world stress tested. > > > > Please check out my demo application for showcasing our new > mapservice: > http://www.aquaterra. > > be/nl/mapservice/mapservice_demo/ > > > > Thanks, > > > > Stijn From bartvde at osgis.nl Mon Aug 18 01:19:32 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Mon, 18 Aug 2008 10:19:32 +0200 (CEST) Subject: [mapserver-users] RE: Stress test wms demo application In-Reply-To: References: <20080814160030.915E1E01FE3@lists.osgeo.org> Message-ID: <1503.145.50.39.11.1219047572.squirrel@webmail.hostingdiscounter.nl> Hi Albrecht, the client used is Flamingo Map Components, an open source Flash client originating from The Netherlands, see: http://www.flamingo-mc.org/ Best regards, Bart > Hi Stijn, > the Service works very good. Especially the client does its job very well! > Which client did youo use? > Best > Albrecht > > Albrecht Weiser, > E6, GIS Center > > > > Hessische Zentrale f?r Datenverarbeitung (HZD) > Mainzer Stra?e 29, 65185 Wiesbaden > Tel.: 0611 340-3113 > Fax: 0611 340-5113 > E-Mail: albrecht.weiser-at-hzd.hessen.de > > >> Message: 3 >> Date: Thu, 14 Aug 2008 16:17:15 +0200 >> From: "Stijn Tallir" >> Subject: [mapserver-users] Stress test wms demo application >> To: >> Message-ID: <19F99C8C1DB44B5FA9976A663A935491 at stijnt> >> Content-Type: text/plain; charset="us-ascii" >> >> Hi, >> >> >> >> My company plans to deliver our raster catalog through a >> mapserver powered >> WMS and I need the server to be real world stress tested. >> >> >> >> Please check out my demo application for showcasing our new >> mapservice: >> http://www.aquaterra. >> >> be/nl/mapservice/mapservice_demo/ >> >> >> >> Thanks, >> >> >> >> Stijn > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From maurerj at nsidc.org Mon Aug 18 04:30:39 2008 From: maurerj at nsidc.org (John Maurer) Date: Mon, 18 Aug 2008 12:30:39 +0100 Subject: [mapserver-users] How to display vector symbols (direction and magnitude) in MapServer? In-Reply-To: <48A57DB7.2080800@mapgears.com> References: <48A4A6D9.8080107@nsidc.org> <48A57DB7.2080800@mapgears.com> Message-ID: <48A95D5F.2070606@nsidc.org> Thanks for the suggestion, Daniel! I was unaware of the ANGLE parameter in MapServer 5.0. One remaining concern I have, though, is how the angle will be interpreted by MapServer? Will -90 degrees always point to the South Pole regardless of the map projection I'm using (e.g. a polar stereo map centered on the South Pole), or will it always just point to the bottom of the map image regardless of the projection? i.e. Does MapServer interpret the degrees spatially or just in terms of the image? Unfortunately, if the latter is the case (which I suspect it probably is) it will not solve my problem. Do you know? Thanks again! Cheers, John Maurer Daniel Morissette wrote: > John Maurer wrote: >> Dear MapServer Users, >> Does anybody have experience displaying vectors in MapServer? By >> "vectors", I don't mean the usual vector vs. raster difference. What >> I mean is displaying data like wind vectors, which are point >> locations that have both a direction (degrees) and magnitude (e.g. >> meters per second). Usually these are displayed as arrows, which each >> point in a certain direction and whose tails vary in length depending >> on the magnitude each measurement. Is this possible in MapServer? >> Thanks for any suggestions! > > You could bind the symbol size and angle to an attribute in your layer > definition. > > If you can precompute the size in pixels based on the wind speed and > store that to an 'arrowsize' attribute then you could use a layer > defn's like this: > > LAYER > TYPE POINT > ... > CLASS > SYMBOL 'arrow' > ANGLE [direction] > SIZE [arrowsize] > COLOR 0 0 0 > END > END > > > If you can't precompute the arrow size in pixels, then you could use > classes based on the wind speed attribute: > > LAYER > TYPE POINT > ... > CLASSITEM 'windspeed' > CLASS > EXPRESSION ([windspeed] < 5) > SYMBOL 'arrow' > ANGLE [direction] > SIZE 10 > COLOR 0 0 0 > END > CLASS > EXPRESSION ([windspeed] < 25) > SYMBOL 'arrow' > ANGLE [direction] > SIZE 15 > COLOR 0 0 0 > END > CLASS > EXPRESSION ([windspeed] < 100) > SYMBOL 'arrow' > ANGLE [direction] > SIZE 20 > COLOR 0 0 0 > END > CLASS > # No expression ... catch all for windspeed > 100 > SYMBOL 'arrow' > ANGLE [direction] > SIZE 25 > COLOR 0 0 0 > END > END > > > Daniel -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 ------------------------------------ "Without geography, you're nowhere!" From lysholm at tut.by Mon Aug 18 06:25:00 2008 From: lysholm at tut.by (George A. Dubin) Date: Mon, 18 Aug 2008 16:25:00 +0300 Subject: [mapserver-users] WFS server configuration problems... Message-ID: Hi all again =) Nowadays I?m trying to fire up a WFS server based on Mapserver 5.0.2, but I have a problem with it. This is what I have: 1) mapserv ?v output: MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE 2) My MAP file: MAP UNITS METERS EXTENT 1373.000000 1663.000000 2073.000000 2163.000000 SIZE 1095 565 SHAPEPATH "/var/www/map/shapes" SYMBOLSET "/var/www/map/symbols/symbols.sym" FONTSET "/var/www/map/fonts/fonts.list" IMAGECOLOR 255 255 255 TEMPLATEPATTERN 'map*' WEB TEMPLATE '/var/www/map/map.html' IMAGEPATH '/var/www/map/tmp/' IMAGEURL '/map/tmp/' METADATA wfs_title "WFS Demo" wfs_onlineresource "http://localhost/cgi-bin/mapserv?map=wfs.map&" wfs_srs "EPSG:32235" END END PROJECTION "init=epsg:32235" END LAYER NAME "Housepoints" CONNECTIONTYPE postgis CONNECTION "user=mapserv dbname=mapserv host=127.0.0.1 port=5432" DATA "wkb_geometry from polymap" STATUS ON TYPE POINT LABELITEM "label" TOLERANCE 7 HEADER '/var/www/map/templates/templ_head.html' FOOTER '/var/www/map/templates/templ_footer.html' DUMP TRUE METADATA wfs_title "houses" gml_featureid "msGeometry" gml_include_items "all" END PROJECTION "init=epsg:32235" END CLASS NAME "housepoints" TEMPLATE '/var/www/map/templates/templ_query.html' STYLE SYMBOL 'circle' COLOR [color] OUTLINECOLOR 0 0 0 SIZE [size] END LABEL COLOR 0 0 255 POSITION AUTO PARTIALS TRUE MINDISTANCE 100 BUFFER 2 ENCODING CP1251 WRAP '~' END END END END This mapfile is a working one, only ?metadata? sections added. 3) A part of http://localhost/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities output: ... Housepoints houses EPSG:32235 ... 4) http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Housepoints output: 5) And now - http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=Housepoints output: missing Why am I having ?missing? here? =/ -- ?????????? M2, ????????????? ???????? ?????????? Opera: http://www.opera.com/mail/ From jepibr at yahoo.com.br Mon Aug 18 06:32:37 2008 From: jepibr at yahoo.com.br (Jefferson Bauer) Date: Mon, 18 Aug 2008 06:32:37 -0700 (PDT) Subject: [mapserver-users] Change a class name by url Message-ID: <215877.39323.qm@web34503.mail.mud.yahoo.com> Hello I was upgrading my mapserver from 4.6 to 5.2 (using MS4W v2.2.8 ) and everything was ok utntil i run a function that change the name of a CLASS by URL. My mapfile have a layer like: LAYER NAME municipio ... CLASS NAME "sedes" ... END END I'm using mapserver as CGI and to do the change in 4.6 i use this: &map_municipio_sedes_name=newname Now in 5.2 i read this article: http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages So, the new way to do what i want must be something like: &map_layer[municipio]_class[sedes]_name=newname or &map_layer[0]_class[0]_name=newname But it's not working... I receive this error: loadClass(): Unknown identifier. Parsing error near (name):(line 1) Am i doing something wrong or this change is not allowed anymore? Thanks, Jefferson Bauer Novos endere?os, o Yahoo! que voc? conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. http://br.new.mail.yahoo.com/addresses From bartvde at osgis.nl Mon Aug 18 06:44:32 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Mon, 18 Aug 2008 15:44:32 +0200 (CEST) Subject: [mapserver-users] WFS server configuration problems... In-Reply-To: References: Message-ID: <52267.145.50.39.11.1219067072.squirrel@webmail.hostingdiscounter.nl> Is you data inside of the MAP->extent? Best regards, Bart > Hi all again =) > Nowadays I???m trying to fire up a WFS server based on Mapserver 5.0.2, > but > I have a problem with it. This is what I have: > > 1) mapserv ???v output: > > MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=TIFF > INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > 2) My MAP file: > > MAP > UNITS METERS > EXTENT 1373.000000 1663.000000 2073.000000 2163.000000 > SIZE 1095 565 > SHAPEPATH "/var/www/map/shapes" > SYMBOLSET "/var/www/map/symbols/symbols.sym" > FONTSET "/var/www/map/fonts/fonts.list" > IMAGECOLOR 255 255 255 > TEMPLATEPATTERN 'map*' > > WEB > TEMPLATE '/var/www/map/map.html' > IMAGEPATH '/var/www/map/tmp/' > IMAGEURL '/map/tmp/' > METADATA > wfs_title "WFS Demo" > wfs_onlineresource > "http://localhost/cgi-bin/mapserv?map=wfs.map&" > wfs_srs "EPSG:32235" > END > END > > PROJECTION > "init=epsg:32235" > END > > LAYER > NAME "Housepoints" > CONNECTIONTYPE postgis > CONNECTION "user=mapserv dbname=mapserv host=127.0.0.1 > port=5432" > DATA "wkb_geometry from polymap" > STATUS ON > TYPE POINT > LABELITEM "label" > TOLERANCE 7 > HEADER '/var/www/map/templates/templ_head.html' > FOOTER '/var/www/map/templates/templ_footer.html' > DUMP TRUE > > METADATA > wfs_title "houses" > gml_featureid "msGeometry" > gml_include_items "all" > END > > > PROJECTION > "init=epsg:32235" > END > > CLASS > NAME "housepoints" > TEMPLATE '/var/www/map/templates/templ_query.html' > STYLE > SYMBOL 'circle' > COLOR [color] > OUTLINECOLOR 0 0 0 > SIZE [size] > END > LABEL > COLOR 0 0 255 > POSITION AUTO > PARTIALS TRUE > MINDISTANCE 100 > BUFFER 2 > ENCODING CP1251 > WRAP '~' > END > END > > END > > END > > This mapfile is a working one, only ???metadata??? sections added. > > > > 3) A part of > http://localhost/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities > output: > > ... > > > > > > Housepoints > houses > EPSG:32235 > maxy="8.24225e+12"/> > > > ... > > > > 4) > http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Housepoints > output: > > elementFormDefault="qualified" version="0.1"> > schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/> > substitutionGroup="gml:_Feature"/> > > > > > maxOccurs="1"/> > > > > > > > > > > > > > > 5) And now - > http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=Housepoints > output: > > > > missing > > > > Why am I having ???missing??? here? =/ > > > -- > ???????????????????? M2, ?????????????????????????? ???????????????? > ???????????????????? Opera: > http://www.opera.com/mail/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From David.Fawcett at state.mn.us Mon Aug 18 06:51:21 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 18 Aug 2008 08:51:21 -0500 Subject: [mapserver-users] Mapserver TIF Layer In-Reply-To: <454075e60808160848r73e70bfeic6345b0ab1cdfa48@mail.gmail.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBFC1@s-sp22.pca.state.mn.us> Felix, Extent defines the bounding box that you want do display as a default for your map. The values need to be expressed in the same units as your output spatial reference system. (e.g. if your data is in decimal degrees of lat/long, your extent should be in decimal degrees). The format is [minimum x value] [minimum y value] [maximum x value] [maximum y value] . UNITS also needs to reflect the units of your output SRS. Try: EXTENT -73.795132 40.685928 -74.153979 40.846823 UNITS dd Unless you are calling the layer by name in the URL request, change STATUS to DEFAULT to ensure that the layer shows up. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Felix Sent: Saturday, August 16, 2008 10:49 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Mapserver TIF Layer Hi, I'm having some difficulty getting a map to show up. I've setup the latest version of MapServer and I have a TIF with a TFW file. I don't fully understand how EXTENT works, and I can't find any decent explanation in the documentation. I'm trying to display a portion of my map based on latitude and longitude. What do I need to put in my EXTENT field so that I can get a map with top-left (40.846823/-74.153979) and bottom-right (40.685928/-73.795132). Thank you for any assistance! Felix Here is my TFW file: 63.545941999999989 0.0 0.0 -63.545941999999989 -421692.82776298042 -15874.371420191659 And my Map File: MAP NAME NY77SOUTH STATUS ON IMAGETYPE PNG SIZE 500 500 SHAPEPATH "/var/www/html" #West South East North EXTENT -421692.82776298042 -15874.371420191659 0 0 UNITS METERS PROJECTION "proj=lcc" "lat_1=46.666667" "lat_2=41.333333" "lon_0=-72.833333" "lat_0=42.1" "x_0=0.0" "y_0=0.0" "ellps=GRS80" "datum=NAD83" END WEB IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" END LAYER NAME "chart" TYPE RASTER STATUS ON DATA "/var/www/html/NewYork77South.tif" END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From lysholm at tut.by Mon Aug 18 06:59:28 2008 From: lysholm at tut.by (George A. Dubin) Date: Mon, 18 Aug 2008 16:59:28 +0300 Subject: [mapserver-users] WFS server configuration problems... In-Reply-To: <90a5e5b30808180647s370920a2u51c03b380f09e411@mail.gmail.com> References: <90a5e5b30808180647s370920a2u51c03b380f09e411@mail.gmail.com> Message-ID: =)) Nope... I hadn't... After changing EXTENT to EXTENT 0 0 12000 16300 everything works fine! Really big TNX for quick answers! I was struggling with this problem since friday =/ On Mon, 18 Aug 2008 16:47:06 +0300, Rafael Almeida Fernandez Soto wrote: > George > > Did you have a some features in this extent = 1373.000000 1663.000000 > 2073.000000 2163.000000 ? > > > 2008/8/18 George A. Dubin > >> Hi all again =) >> Nowadays I'm trying to fire up a WFS server based on Mapserver 5.0.2, >> but I >> have a problem with it. This is what I have: >> >> 1) mapserv ?v output: >> >> MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=WMS_SERVER >> SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7 >> INPUT=POSTGIS >> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> 2) My MAP file: >> >> MAP >> UNITS METERS >> EXTENT 1373.000000 1663.000000 2073.000000 2163.000000 >> SIZE 1095 565 >> SHAPEPATH "/var/www/map/shapes" >> SYMBOLSET "/var/www/map/symbols/symbols.sym" >> FONTSET "/var/www/map/fonts/fonts.list" >> IMAGECOLOR 255 255 255 >> TEMPLATEPATTERN 'map*' >> >> WEB >> TEMPLATE '/var/www/map/map.html' >> IMAGEPATH '/var/www/map/tmp/' >> IMAGEURL '/map/tmp/' >> METADATA >> wfs_title "WFS Demo" >> wfs_onlineresource " >> http://localhost/cgi-bin/mapserv?map=wfs.map&" >> wfs_srs "EPSG:32235" >> END >> END >> >> PROJECTION >> "init=epsg:32235" >> END >> >> LAYER >> NAME "Housepoints" >> CONNECTIONTYPE postgis >> CONNECTION "user=mapserv dbname=mapserv >> host=127.0.0.1port=5432" >> DATA "wkb_geometry from polymap" >> STATUS ON >> TYPE POINT >> LABELITEM "label" >> TOLERANCE 7 >> HEADER '/var/www/map/templates/templ_head.html' >> FOOTER '/var/www/map/templates/templ_footer.html' >> DUMP TRUE >> >> METADATA >> wfs_title "houses" >> gml_featureid "msGeometry" >> gml_include_items "all" >> END >> >> >> PROJECTION >> "init=epsg:32235" >> END >> >> CLASS >> NAME "housepoints" >> TEMPLATE '/var/www/map/templates/templ_query.html' >> STYLE >> SYMBOL 'circle' >> COLOR [color] >> OUTLINECOLOR 0 0 0 >> SIZE [size] >> END >> LABEL >> COLOR 0 0 255 >> POSITION AUTO >> PARTIALS TRUE >> MINDISTANCE 100 >> BUFFER 2 >> ENCODING CP1251 >> WRAP '~' >> END >> END >> >> END >> >> END >> >> This mapfile is a working one, only "metadata" sections added. >> >> >> >> 3) A part of >> http://localhost/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities >> output: >> >> ... >> >> >> >> >> >> Housepoints >> houses >> EPSG:32235 >> > maxy="8.24225e+12"/> >> >> >> ... >> >> >> >> 4) >> http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Housepointsoutput: >> >> > elementFormDefault="qualified" version="0.1"> >> >> > substitutionGroup="gml:_Feature"/> >> >> >> >> >> > maxOccurs="1"/> >> >> >> >> >> >> >> >> >> >> >> >> >> >> 5) And now - >> http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=Housepointsoutput: >> >> >> >> missing >> >> >> >> Why am I having "missing" here? =/ >> >> >> -- >> ?????????? M2, ????????????? ???????? ?????????? Opera: >> http://www.opera.com/mail/ >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > -- ?????????? M2, ????????????? ???????? ?????????? Opera: http://www.opera.com/mail/ From lysholm at tut.by Mon Aug 18 07:06:24 2008 From: lysholm at tut.by (George A. Dubin) Date: Mon, 18 Aug 2008 17:06:24 +0300 Subject: [mapserver-users] WFS server configuration problems... In-Reply-To: <52267.145.50.39.11.1219067072.squirrel@webmail.hostingdiscounter.nl> References: <52267.145.50.39.11.1219067072.squirrel@webmail.hostingdiscounter.nl> Message-ID: =)) Nope... I hadn't... After changing EXTENT to EXTENT 0 0 12000 16300 everything works fine! Really big TNX for quick answers! I was struggling with this problem since friday =/ On Mon, 18 Aug 2008 16:44:32 +0300, wrote: > Is you data inside of the MAP->extent? > > Best regards, > Bart > >> Hi all again =) >> Nowadays I'm trying to fire up a WFS server based on Mapserver 5.0.2, >> but >> I have a problem with it. This is what I have: >> >> 1) mapserv -v output: >> >> MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE >> SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER INPUT=TIFF >> INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> 2) My MAP file: >> >> MAP >> UNITS METERS >> EXTENT 1373.000000 1663.000000 2073.000000 2163.000000 >> SIZE 1095 565 >> SHAPEPATH "/var/www/map/shapes" >> SYMBOLSET "/var/www/map/symbols/symbols.sym" >> FONTSET "/var/www/map/fonts/fonts.list" >> IMAGECOLOR 255 255 255 >> TEMPLATEPATTERN 'map*' >> >> WEB >> TEMPLATE '/var/www/map/map.html' >> IMAGEPATH '/var/www/map/tmp/' >> IMAGEURL '/map/tmp/' >> METADATA >> wfs_title "WFS Demo" >> wfs_onlineresource >> "http://localhost/cgi-bin/mapserv?map=wfs.map&" >> wfs_srs "EPSG:32235" >> END >> END >> >> PROJECTION >> "init=epsg:32235" >> END >> >> LAYER >> NAME "Housepoints" >> CONNECTIONTYPE postgis >> CONNECTION "user=mapserv dbname=mapserv host=127.0.0.1 >> port=5432" >> DATA "wkb_geometry from polymap" >> STATUS ON >> TYPE POINT >> LABELITEM "label" >> TOLERANCE 7 >> HEADER '/var/www/map/templates/templ_head.html' >> FOOTER '/var/www/map/templates/templ_footer.html' >> DUMP TRUE >> >> METADATA >> wfs_title "houses" >> gml_featureid "msGeometry" >> gml_include_items "all" >> END >> >> >> PROJECTION >> "init=epsg:32235" >> END >> >> CLASS >> NAME "housepoints" >> TEMPLATE '/var/www/map/templates/templ_query.html' >> STYLE >> SYMBOL 'circle' >> COLOR [color] >> OUTLINECOLOR 0 0 0 >> SIZE [size] >> END >> LABEL >> COLOR 0 0 255 >> POSITION AUTO >> PARTIALS TRUE >> MINDISTANCE 100 >> BUFFER 2 >> ENCODING CP1251 >> WRAP '~' >> END >> END >> >> END >> >> END >> >> This mapfile is a working one, only "metadata" sections added. >> >> >> >> 3) A part of >> http://localhost/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getcapabilities >> output: >> >> ... >> >> >> >> >> >> Housepoints >> houses >> EPSG:32235 >> > maxy="8.24225e+12"/> >> >> >> ... >> >> >> >> 4) >> http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Housepoints >> output: >> >> > elementFormDefault="qualified" version="0.1"> >> > schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/> >> > substitutionGroup="gml:_Feature"/> >> >> >> >> >> > maxOccurs="1"/> >> >> >> >> >> >> >> >> >> >> >> >> >> >> 5) And now - >> http://172.20.200.200:8080/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.0.0&REQUEST=getfeature&TYPENAME=Housepoints >> output: >> >> >> >> missing >> >> >> >> Why am I having "missing" here? =/ >> >> >> -- >> ???????????????????? M2, ?????????????????????????? ???????????????? >> ???????????????????? Opera: >> http://www.opera.com/mail/ >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > -- ?????????? M2, ????????????? ???????? ?????????? Opera: http://www.opera.com/mail/ From group.ritesh at gmail.com Mon Aug 18 07:34:17 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Mon, 18 Aug 2008 07:34:17 -0700 (PDT) Subject: [MAPSERVER-USERS] Use of "gutter" parameter with tilecache Message-ID: <19033034.post@talk.nabble.com> I want to specify "gutter" parameter while using tilecache. This is the code snippet from my "tilecache.cfg" file: [cache] type=Disk base=/var/www/tilecache # My MapServer layer configuration. [mycity] type=MapServer layers=layer1,layer2,layer3 mapfile=/var/www/mymap/mymap.map levels= 7 resolutions = 66.14, 26.45, 13.22,6.614,2.64,1.322,0.26 maxResolution = 66.14 srs=EPSG:4326 bbox = -1008136, 2136130, -937979, 2198657 I do know how to specify the "gutter" parameter while accessing these tiles via openlayers. I am looking for the config lines for generating tiles while using this "gutter" param. Regards, Ritesh Ambastha -- View this message in context: http://www.nabble.com/Use-of-%22gutter%22-parameter-with-tilecache-tp19033034p19033034.html Sent from the Mapserver - User mailing list archive at Nabble.com. From haerta at yahoo.com Mon Aug 18 07:56:00 2008 From: haerta at yahoo.com (=?iso-8859-1?Q?Michael_H=E4rtel?=) Date: Mon, 18 Aug 2008 07:56:00 -0700 (PDT) Subject: [mapserver-users] PHP Mapscript $layerObj->set("data", $dataString) doesn't work with long Strings (2036 characters) In-Reply-To: <48A43DAB.7030300@mapgears.com> Message-ID: <349990.37494.qm@web50805.mail.re2.yahoo.com> Hello Daniel and List I changed the mapfile and defined a layer with a "DATA" string which consists of 2036 characters. That works fine but as soon as I change it to 2037 characters I get the "Server Error 500": premature End of script headers again. So it doesn't make a difference whether I set it with mapscript or define it directly. regards, Michael --- On Thu, 8/14/08, Daniel Morissette wrote: > From: Daniel Morissette > Subject: Re: [mapserver-users] PHP Mapscript $layerObj->set("data", $dataString) doesn't work with long Strings (2036 characters) > To: haerta at yahoo.com > Cc: mapserver-users at lists.osgeo.org > Date: Thursday, August 14, 2008, 4:14 PM > Michael, > > Can you please try setting the same DATA line directly in > the mapfile > instead of via $layerObj->set() and confirm that you get > the same error? > > The $layerObj->set() method uses a dynamic buffer > allocation, so there > is no reason for it to bail on buffers larger than a > specific size. I > suspect the problem may be in MapServer's Oracle > Spatial driver code > that may be using a static buffer to build the SQL > statement. > > I see that there is already ticket #2694 that seems to be > about the same > thing: http://trac.osgeo.org/mapserver/ticket/2694 > > Daniel > > Michael H?rtel wrote: > > Dear List! > > > > It seems that I found a bug concerning PHP Mapscript > or MapScript in general. The result is a "Premature end > of script headers: php-cgi.exe" and a "Internal > Server error 500" > > > > In our web application I dynamically change the > "DATA" attribute of one layer to retrieve the > correct objects out of the Oracle 10g database. This works > great as long the data String is not longer than 2036 > characters. > > > > In php I set the DATA string with > "$layerObj->set("data" , > $dataString);". A var_dump($dataString) shows that it > is 2037 characters long. But debugging at the database side > showed that only 1524 characters are included in the select > statement. So a total of 513 (Not 512?) characters are cut > off. A $dataString containing 2036 characters work fine. > > > > Because the DATA string is only a part of the total > SQL string that is submitted to the database (when > navigating a map, a " WHERE SDO_FILTER" clause is > added) the total SQL string for retrieving the objects (that > are burnt into the WMS GETMAP image) gets about 2215 > characters long which works fine with sqlplus. > > > > It seems that the > "$layerObj->set("data" , > $dataString);" line doesn't work for strings longer > than 2036 characters. > > > > Can someone confirm this? > > > > Thanks for any reply, > > > > Michael > > --- > > I use "ms4w_2.2.7" zip that includes > mapserver 5.0.2. The mapscript.dll 225.280 bytes and is from > february, 5th 2008 > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > -- > Daniel Morissette > http://www.mapgears.com/ From zhaops at hotmail.com Mon Aug 18 09:12:23 2008 From: zhaops at hotmail.com (zhao peisheng) Date: Mon, 18 Aug 2008 16:12:23 +0000 Subject: [mapserver-users] image classifying Message-ID: Hi all, I am a new user of MapServer. I am currently serving some HDF files using MapServer WMS and rendering them in classification. May I just assign a color for a specific pixel value, such as value 0 using red and value 0.0001 using yellow? I follow the MapServer document to do classifying and get the result of value 0 and value 1 always in same color. How to figure it out? Thanks. Peisheng _________________________________________________________________ Get ideas on sharing photos from people like you. Find new ways to share. http://www.windowslive.com/explore/photogallery/posts?ocid=TXT_TAGLM_WL_Photo_Gallery_082008 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at gmail.com Mon Aug 18 09:17:26 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Mon, 18 Aug 2008 12:17:26 -0400 Subject: [mapserver-users] attach text to displayed features that are coming from postgis Message-ID: Hi, I would like to be able to attach text to displayed features that are coming from postgis. Currently I am just displaying points (layer displayed below) as an ellipse from postgis, but I would like to have text on top of each ellipse based on the contents of a field uniquely associated to each point. John LAYER # name of layer NAME "gv:tasmania_cities" GROUP "Collaboration" # what type of data is this? TYPE POINT # always returned with interface STATUS ON TRANSPARENCY 100 CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=gvdb host=localhost port=5432 password=password1117" DATA "the_geom from tasmania_cities" CLASS STYLE symbol "dot" SIZE 8 COLOR 0 0 0 END END END -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Mon Aug 18 10:38:59 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 18 Aug 2008 12:38:59 -0500 Subject: [mapserver-users] How to display vector symbols (direction andmagnitude) in MapServer? In-Reply-To: <48A95D5F.2070606@nsidc.org> References: <48A4A6D9.8080107@nsidc.org> <48A57DB7.2080800@mapgears.com> <48A95D5F.2070606@nsidc.org> Message-ID: <48A96D62.5157.008F.0@dnr.state.mn.us> Just in terms of the image... Steve >>> On 8/18/2008 at 6:30 AM, in message <48A95D5F.2070606 at nsidc.org>, John Maurer wrote: > Thanks for the suggestion, Daniel! I was unaware of the ANGLE parameter > in MapServer 5.0. One remaining concern I have, though, is how the angle > will be interpreted by MapServer? Will -90 degrees always point to the > South Pole regardless of the map projection I'm using (e.g. a polar > stereo map centered on the South Pole), or will it always just point to > the bottom of the map image regardless of the projection? i.e. Does > MapServer interpret the degrees spatially or just in terms of the image? > Unfortunately, if the latter is the case (which I suspect it probably > is) it will not solve my problem. Do you know? Thanks again! > Cheers, > John Maurer > > Daniel Morissette wrote: >> John Maurer wrote: >>> Dear MapServer Users, >>> Does anybody have experience displaying vectors in MapServer? By >>> "vectors", I don't mean the usual vector vs. raster difference. What >>> I mean is displaying data like wind vectors, which are point >>> locations that have both a direction (degrees) and magnitude (e.g. >>> meters per second). Usually these are displayed as arrows, which each >>> point in a certain direction and whose tails vary in length depending >>> on the magnitude each measurement. Is this possible in MapServer? >>> Thanks for any suggestions! >> >> You could bind the symbol size and angle to an attribute in your layer >> definition. >> >> If you can precompute the size in pixels based on the wind speed and >> store that to an 'arrowsize' attribute then you could use a layer >> defn's like this: >> >> LAYER >> TYPE POINT >> ... >> CLASS >> SYMBOL 'arrow' >> ANGLE [direction] >> SIZE [arrowsize] >> COLOR 0 0 0 >> END >> END >> >> >> If you can't precompute the arrow size in pixels, then you could use >> classes based on the wind speed attribute: >> >> LAYER >> TYPE POINT >> ... >> CLASSITEM 'windspeed' >> CLASS >> EXPRESSION ([windspeed] < 5) >> SYMBOL 'arrow' >> ANGLE [direction] >> SIZE 10 >> COLOR 0 0 0 >> END >> CLASS >> EXPRESSION ([windspeed] < 25) >> SYMBOL 'arrow' >> ANGLE [direction] >> SIZE 15 >> COLOR 0 0 0 >> END >> CLASS >> EXPRESSION ([windspeed] < 100) >> SYMBOL 'arrow' >> ANGLE [direction] >> SIZE 20 >> COLOR 0 0 0 >> END >> CLASS >> # No expression ... catch all for windspeed > 100 >> SYMBOL 'arrow' >> ANGLE [direction] >> SIZE 25 >> COLOR 0 0 0 >> END >> END >> >> >> Daniel From Steve.Lime at dnr.state.mn.us Mon Aug 18 11:30:50 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 18 Aug 2008 13:30:50 -0500 Subject: [mapserver-users] attach text to displayed features that are comingfrom postgis In-Reply-To: References: Message-ID: <48A97989.5157.008F.0@dnr.state.mn.us> Check out the LABELITEM property for a layer. You'll also need to define a LABEL for your class. Steve >>> On 8/18/2008 at 11:17 AM, in message , "John Mitchell" wrote: > Hi, > > I would like to be able to attach text to displayed features that are coming > from postgis. Currently I am just displaying points (layer displayed below) > as an ellipse from postgis, but I would like to have text on top of each > ellipse based on the contents of a field uniquely associated to each point. > > John > > LAYER > # name of layer > NAME "gv:tasmania_cities" > GROUP "Collaboration" > > # what type of data is this? > TYPE POINT > > # always returned with interface > STATUS ON > > TRANSPARENCY 100 > > CONNECTIONTYPE postgis > > CONNECTION "user=postgres dbname=gvdb host=localhost port=5432 > password=password1117" > DATA "the_geom from tasmania_cities" > > > CLASS > STYLE > symbol "dot" > SIZE 8 > COLOR 0 0 0 > END > END > END > From David.Fawcett at state.mn.us Mon Aug 18 12:07:04 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Mon, 18 Aug 2008 14:07:04 -0500 Subject: [mapserver-users] attach text to displayed features thatare comingfrom postgis In-Reply-To: <48A97989.5157.008F.0@dnr.state.mn.us> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBFC7@s-sp22.pca.state.mn.us> To be able to use a label, you will likely also have to modify your select statement to include the columns that you want to use in labels or expressions. Try something like: DATA "the_geom from (select myLabelColumn, the_geom from myTable) as foo using unique gid using SRID=4326" Of course, you will want to make sure that you are specifying the actual names of your unique id column and your SRID. David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Steve Lime Sent: Monday, August 18, 2008 1:31 PM To: John Mitchell; mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] attach text to displayed features thatare comingfrom postgis Check out the LABELITEM property for a layer. You'll also need to define a LABEL for your class. Steve >>> On 8/18/2008 at 11:17 AM, in message , "John Mitchell" wrote: > Hi, > > I would like to be able to attach text to displayed features that are > coming from postgis. Currently I am just displaying points (layer > displayed below) as an ellipse from postgis, but I would like to have > text on top of each ellipse based on the contents of a field uniquely > associated to each point. > > John > > LAYER > # name of layer > NAME "gv:tasmania_cities" > GROUP "Collaboration" > > # what type of data is this? > TYPE POINT > > # always returned with interface > STATUS ON > > TRANSPARENCY 100 > > CONNECTIONTYPE postgis > > CONNECTION "user=postgres dbname=gvdb host=localhost port=5432 > password=password1117" > DATA "the_geom from tasmania_cities" > > > CLASS > STYLE > symbol "dot" > SIZE 8 > COLOR 0 0 0 > END > END > END > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From group.ritesh at gmail.com Mon Aug 18 14:00:16 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Mon, 18 Aug 2008 14:00:16 -0700 (PDT) Subject: [MAPSERVER-USERS] attach text to displayed features that are coming from postgis In-Reply-To: References: Message-ID: <19039906.post@talk.nabble.com> Dear John, You just need to use these additional lines in your class definition: CLASS ----- ------- LABELITEM "column_name" LABEL COLOR 150 150 150 FONT sans TYPE truetype SIZE 10 PARTIALS FALSE END ------- ------- END #class Regards, Ritesh Ambastha John Mitchell-3 wrote: > > Hi, > > I would like to be able to attach text to displayed features that are > coming > from postgis. Currently I am just displaying points (layer displayed > below) > as an ellipse from postgis, but I would like to have text on top of each > ellipse based on the contents of a field uniquely associated to each > point. > > John > > LAYER > # name of layer > NAME "gv:tasmania_cities" > GROUP "Collaboration" > > # what type of data is this? > TYPE POINT > > # always returned with interface > STATUS ON > > TRANSPARENCY 100 > > CONNECTIONTYPE postgis > > CONNECTION "user=postgres dbname=gvdb host=localhost port=5432 > password=password1117" > DATA "the_geom from tasmania_cities" > > > CLASS > STYLE > symbol "dot" > SIZE 8 > COLOR 0 0 0 > END > END > END > > > -- > John J. Mitchell > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/attach-text-to-displayed-features-that-are-coming-from-postgis-tp19035021p19039906.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mitchelljj98 at gmail.com Mon Aug 18 14:21:16 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Mon, 18 Aug 2008 17:21:16 -0400 Subject: [mapserver-users] msGetLabelSize(): TrueType Font error. Requested font (sans) not found. Message-ID: Hi, Within a map file I am trying to draws labels based on an attribute value and I get the following error within the label object: msGetLabelSize(): TrueType Font error. Requested font (sans) not found. Below is part of the map file: LABELITEM "type" CLASS STYLE COLOR 255 0 0 WIDTH 2 END LABEL COLOR 150 150 150 OUTLINECOLOR 255 255 255 FONT sans TYPE truetype SIZE 6 POSITION AUTO PARTIALS FALSE END END Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at gmail.com Mon Aug 18 14:24:11 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Mon, 18 Aug 2008 17:24:11 -0400 Subject: [mapserver-users] Re: msGetLabelSize(): TrueType Font error. Requested font (sans) not found. In-Reply-To: References: Message-ID: Sorry for the extra email. I forgot to ask my question to the below email which is: How do I know what fonts that are available to my mapserver. On Mon, Aug 18, 2008 at 5:21 PM, John Mitchell wrote: > Hi, > > Within a map file I am trying to draws labels based on an attribute value > and I get the following error within the label object: > msGetLabelSize(): TrueType Font error. Requested font (sans) not found. > > Below is part of the map file: > > LABELITEM "type" > > CLASS > STYLE > COLOR 255 0 0 > WIDTH 2 > END > > LABEL > COLOR 150 150 150 > OUTLINECOLOR 255 255 255 > FONT sans > TYPE truetype > SIZE 6 > POSITION AUTO > PARTIALS FALSE > END > > END > > Thanks, > > -- > John J. Mitchell > -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Mon Aug 18 15:06:24 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 19 Aug 2008 00:06:24 +0200 Subject: [mapserver-users] Re: msGetLabelSize(): TrueType Font error. Requested font (sans) not found. In-Reply-To: References: Message-ID: John, You should specify the fonts to be used by mapserver in a fontset file and add the FONTSET section in your mapfile accordingly. For more information see: http://mapserver.gis.umn.edu/docs/reference/fontset/fontset/ Best regards, Tamas 2008/8/18 John Mitchell : > Sorry for the extra email. I forgot to ask my question to the below email > which is: > How do I know what fonts that are available to my mapserver. > > > On Mon, Aug 18, 2008 at 5:21 PM, John Mitchell > wrote: >> >> Hi, >> >> Within a map file I am trying to draws labels based on an attribute value >> and I get the following error within the label object: >> msGetLabelSize(): TrueType Font error. Requested font (sans) not found. >> >> Below is part of the map file: >> >> LABELITEM "type" >> >> CLASS >> STYLE >> COLOR 255 0 0 >> WIDTH 2 >> END >> >> LABEL >> COLOR 150 150 150 >> OUTLINECOLOR 255 255 255 >> FONT sans >> TYPE truetype >> SIZE 6 >> POSITION AUTO >> PARTIALS FALSE >> END >> >> END >> >> Thanks, >> >> -- >> John J. Mitchell > > > > -- > John J. Mitchell > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From blake at hailmail.net Mon Aug 18 15:16:53 2008 From: blake at hailmail.net (Dane Springmeyer) Date: Mon, 18 Aug 2008 15:16:53 -0700 Subject: [mapserver-users] Fractional line widths? Message-ID: <729CD047-F166-4D5C-A7CC-282F20B440AA@hailmail.net> I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/ style that only integers are supported for the Style > Width parameter. Are thinner lines (a float type) a possibility or have they been considered in the MapServer code base? I can't find anything in trac to suggest so, but I thought to check here before filing a ticket. Thanks, Dane From szekerest at gmail.com Mon Aug 18 15:53:17 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 19 Aug 2008 00:53:17 +0200 Subject: [mapserver-users] Fractional line widths? In-Reply-To: <729CD047-F166-4D5C-A7CC-282F20B440AA@hailmail.net> References: <729CD047-F166-4D5C-A7CC-282F20B440AA@hailmail.net> Message-ID: Dane, I think it's reasonable but would only be feasible for the AGG renderer though. Best regards, Tamas 2008/8/19 Dane Springmeyer : > I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/style > that only integers are supported for the Style > Width parameter. > > Are thinner lines (a float type) a possibility or have they been considered > in the MapServer code base? > > I can't find anything in trac to suggest so, but I thought to check here > before filing a ticket. > > Thanks, > > Dane > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From woklist at kyngchaos.com Mon Aug 18 16:05:06 2008 From: woklist at kyngchaos.com (William Kyngesburye) Date: Mon, 18 Aug 2008 18:05:06 -0500 Subject: [mapserver-users] Fractional line widths? In-Reply-To: References: <729CD047-F166-4D5C-A7CC-282F20B440AA@hailmail.net> Message-ID: On Aug 18, 2008, at 5:53 PM, Tamas Szekeres wrote: > Dane, > > I think it's reasonable but would only be feasible for the AGG > renderer though. > And for PDF output. > Best regards, > > Tamas > > 2008/8/19 Dane Springmeyer : >> I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/style >> that only integers are supported for the Style > Width parameter. >> >> Are thinner lines (a float type) a possibility or have they been >> considered >> in the MapServer code base? >> >> I can't find anything in trac to suggest so, but I thought to check >> here >> before filing a ticket. >> >> Thanks, >> >> Dane >> ----- William Kyngesburye http://www.kyngchaos.com/ "History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history." - Hitchhiker's Guide to the Galaxy From mitchelljj98 at gmail.com Mon Aug 18 16:10:31 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Mon, 18 Aug 2008 19:10:31 -0400 Subject: [mapserver-users] adhoc requests to the end of the WMS request within mapserver map file Message-ID: Below I have listed a sample layer section which does a WMS call to a local geoserver and this work fine, but what I would like to now do is be able to add to this WMS request a filter parameter (e.g. &filter=fieldname=fieldvalue) which geoserver can accept. How can I add adhoc requests like the filter example listed above to the end of the WMS request when mapserver is making a WMS request? Thanks, John LAYER # name of layer NAME "vector:sangis_unexploded_ordnance_child" GROUP "SanGIS_parent" # what type of data is this? TYPE RASTER # always returned with interface STATUS ON TRANSPARENCY 100 CONNECTION "http://localhost:8080/geoserver/wms" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "vector:sangis_unexploded_ordnance" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_style" "sangis_unexploded_ordnance_style" END END -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From blake at hailmail.net Mon Aug 18 16:26:18 2008 From: blake at hailmail.net (Dane Springmeyer) Date: Mon, 18 Aug 2008 16:26:18 -0700 Subject: [mapserver-users] Fractional line widths? In-Reply-To: References: <729CD047-F166-4D5C-A7CC-282F20B440AA@hailmail.net> Message-ID: <468BD1B6-AF80-4A08-BC1C-6597047B66E7@hailmail.net> Tamas, Great, thanks!. I'll file a ticket then regarding the agg render and adding a FORMATOPTION for generating 'thinner' looking lines. My question comes from the context of comparing Mapnik's agg output to mapserver. Mapnik seems to interpret user-entered fractional widths in a clever way, by lightening the color and intensity. I'm comparing this graphic generated with a width=0.1 with Mapnik: http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/xml_config/map/hello_world_using_xml_config.png to this graphic generated with Mapserver with Width 1.0: http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile.png It fully possible that my mapfile is not doing an equal comparison, so if anyone has suggestions I've pasted it below. Thanks, Dane ------------ # This mapfile mirrors the mapnik hello world example here: http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/pure_python/ # A map can be generated from it by running shp2img. # For example: # $ shp2img -m world.map -o map/hello_world_with_mapserver_mapfile.png # or # once you have installed the mapserv cgi use this url: # http://localhost/cgi-bin/mapserv?map=/path/to/this/mapfile/world.map&layers=world&mode=map MAP IMAGETYPE AGG EXTENT -180 -93 180 86 SIZE 600 300 SHAPEPATH "../../data/" IMAGECOLOR 70 130 180 OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB MIMETYPE "image/png" END LAYER NAME world DATA world_borders.shp STATUS ON TYPE POLYGON CLASS NAME "World" STYLE COLOR 242 239 249 OUTLINECOLOR 127 127 127 WIDTH 1 END END END END On Aug 18, 2008, at 3:53 PM, Tamas Szekeres wrote: > Dane, > > I think it's reasonable but would only be feasible for the AGG > renderer though. > > > Best regards, > > Tamas > > > > 2008/8/19 Dane Springmeyer : >> I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/style >> that only integers are supported for the Style > Width parameter. >> >> Are thinner lines (a float type) a possibility or have they been >> considered >> in the MapServer code base? >> >> I can't find anything in trac to suggest so, but I thought to check >> here >> before filing a ticket. >> >> Thanks, >> >> Dane >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Mon Aug 18 17:05:17 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 19 Aug 2008 02:05:17 +0200 Subject: [mapserver-users] Fractional line widths? In-Reply-To: <468BD1B6-AF80-4A08-BC1C-6597047B66E7@hailmail.net> References: <729CD047-F166-4D5C-A7CC-282F20B440AA@hailmail.net> <468BD1B6-AF80-4A08-BC1C-6597047B66E7@hailmail.net> Message-ID: Dane, I think it would be implemented by means of replacing the int-s with doubles at the style and the symbol definitions and the corresponding interfaces since AGG have already been using doubles internally in the code. Best regards, Tamas 2008/8/19 Dane Springmeyer : > Tamas, > Great, thanks!. I'll file a ticket then regarding the agg render and adding > a FORMATOPTION for generating 'thinner' looking lines. > My question comes from the context of comparing Mapnik's agg output to > mapserver. Mapnik seems to interpret user-entered fractional widths in a > clever way, by lightening the color and intensity. > I'm comparing this graphic generated with a width=0.1 with Mapnik: > http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/xml_config/map/hello_world_using_xml_config.png > to this graphic generated with Mapserver with Width 1.0: > http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile.png > It fully possible that my mapfile is not doing an equal comparison, so if > anyone has suggestions I've pasted it below. > > Thanks, > Dane > ------------ > > # This mapfile mirrors the mapnik hello world example > here: http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/pure_python/ > # A map can be generated from it by running shp2img. > # For example: > # $ shp2img -m world.map -o map/hello_world_with_mapserver_mapfile.png > # or > # once you have installed the mapserv cgi use this url: > # > http://localhost/cgi-bin/mapserv?map=/path/to/this/mapfile/world.map&layers=world&mode=map > MAP > IMAGETYPE AGG > EXTENT -180 -93 180 86 > SIZE 600 300 > SHAPEPATH "../../data/" > IMAGECOLOR 70 130 180 > > OUTPUTFORMAT > NAME 'AGG' > DRIVER AGG/PNG > IMAGEMODE RGB > MIMETYPE "image/png" > END > LAYER > NAME world > DATA world_borders.shp > STATUS ON > TYPE POLYGON > CLASS > NAME "World" > STYLE > COLOR 242 239 249 > OUTLINECOLOR 127 127 127 > WIDTH 1 > END > > END > END > END > > > On Aug 18, 2008, at 3:53 PM, Tamas Szekeres wrote: > > Dane, > > I think it's reasonable but would only be feasible for the AGG renderer > though. > > > Best regards, > > Tamas > > > > 2008/8/19 Dane Springmeyer : > > I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/style > > that only integers are supported for the Style > Width parameter. > > Are thinner lines (a float type) a possibility or have they been considered > > in the MapServer code base? > > I can't find anything in trac to suggest so, but I thought to check here > > before filing a ticket. > > Thanks, > > Dane > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > From jmckenna at gatewaygeomatics.com Mon Aug 18 22:10:45 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 18 Aug 2008 22:10:45 -0700 Subject: [mapserver-users] Change a class name by url In-Reply-To: <215877.39323.qm@web34503.mail.mud.yahoo.com> References: <215877.39323.qm@web34503.mail.mud.yahoo.com> Message-ID: <48AA55D5.2020805@gatewaygeomatics.com> hmm, u might also refer to the 5.0 migration guide, in case it helps you: http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT I have also seen a variation of this error: http://lists.osgeo.org/pipermail/mapserver-users/2008-May/055877.html -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Jefferson Bauer wrote: > Hello > > I was upgrading my > mapserver from 4.6 to 5.2 (using MS4W v2.2.8 ) and everything was ok > utntil i run a function that change the name of a CLASS by URL. My > mapfile have a layer like: > > LAYER > > NAME municipio > ... > > CLASS > NAME > "sedes" > ... > > END > END > > I'm using mapserver as > CGI and to do the change in 4.6 i use this: > &map_municipio_sedes_name=newname > > Now in 5.2 i read this > article: > http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages > > So, the new way to do > what i want must be something > like: > &map_layer[municipio]_class[sedes]_name=newname > or > &map_layer[0]_class[0]_name=newname > > But it's not working... I receive this error: > > loadClass(): Unknown identifier. Parsing error near (name):(line 1) > > Am i doing something > wrong or this change is not allowed anymore? > > Thanks, > Jefferson Bauer > > From flavio at tydac.ch Mon Aug 18 22:53:43 2008 From: flavio at tydac.ch (Flavio Hendry) Date: Tue, 19 Aug 2008 07:53:43 +0200 Subject: [mapserver-users] Fractional line widths? In-Reply-To: <729CD047-F166-4D5C-A7CC-282F20B440AA@hailmail.net> References: <729CD047-F166-4D5C-A7CC-282F20B440AA@hailmail.net> Message-ID: Hi Dane You might try to use SIZEUNITS ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch TYDAC SwissMaps: http://www.mapplus.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 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/luternauweg/12 ---------------------------------------------------------------- -----Original Message----- From: Dane Springmeyer To: mapserver-users at lists.osgeo.org Date: Mon, 18 Aug 2008 15:16:53 -0700 Subject: [mapserver-users] Fractional line widths? > I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/ > style that only integers are supported for the Style > Width > parameter. > > Are thinner lines (a float type) a possibility or have they been > considered in the MapServer code base? > > I can't find anything in trac to suggest so, but I thought to check > here before filing a ticket. > > Thanks, > > Dane > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From hellomps at gmail.com Mon Aug 18 23:51:22 2008 From: hellomps at gmail.com (ramya srinivasan) Date: Tue, 19 Aug 2008 12:21:22 +0530 Subject: [mapserver-users] Pix2geo Message-ID: <3702658f0808182351w2cc1865ame40b26252f6e57d1@mail.gmail.com> Hi, Can u get me an exaple for pix2geo function implementation?how to display the user given co-ordinates on the map? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitchelljj98 at gmail.com Tue Aug 19 01:04:05 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Tue, 19 Aug 2008 04:04:05 -0400 Subject: [mapserver-users] Instead of having an embedded class/style/label statement could a map file instead reference a .sld file? Message-ID: Hi, Instead of having an embedded class/style/label statement like listed below could a map file instead reference a .sld file? Thanks, John CLASS STYLE COLOR 255 0 0 WIDTH 2 END LABEL COLOR 150 150 150 OUTLINECOLOR 255 255 255 FONT arial TYPE truetype SIZE 6 POSITION AUTO PARTIALS FALSE END END -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Tue Aug 19 01:09:02 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Tue, 19 Aug 2008 10:09:02 +0200 (CEST) Subject: [mapserver-users] Instead of having an embedded class/style/label statement could a map file instead reference a .sld file? In-Reply-To: References: Message-ID: <19970.145.50.39.11.1219133342.squirrel@webmail.hostingdiscounter.nl> No, this is not yet possible. It will need some funding to get done most likely. Best regards, Bart > Hi, > > Instead of having an embedded class/style/label statement like listed > below > could a map file instead reference a .sld file? > > Thanks, > > John > > CLASS > STYLE > COLOR 255 0 0 > WIDTH 2 > END > > LABEL > COLOR 150 150 150 > OUTLINECOLOR 255 255 255 > FONT arial > TYPE truetype > SIZE 6 > POSITION AUTO > PARTIALS FALSE > END > > END > > -- > John J. Mitchell > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From havard.tveite at umb.no Tue Aug 19 01:06:29 2008 From: havard.tveite at umb.no (Havard Tveite) Date: Tue, 19 Aug 2008 10:06:29 +0200 Subject: [mapserver-users] How to display vector symbols (direction and magnitude) in MapServer? In-Reply-To: <48A95D5F.2070606@nsidc.org> References: <48A4A6D9.8080107@nsidc.org> <48A57DB7.2080800@mapgears.com> <48A95D5F.2070606@nsidc.org> Message-ID: <48AA7F05.1060706@umb.no> I don't think ANGLE can be used in your case (if you do not use scripting to calculate the ANGLEs yourself for each generated map). Is there a need for a new TAG - for instance with the name "ORIENTATION", that could be used to specify compass directions (0=north, 90=east, 180=south, 270=west) for point symbols? H?vard Tveite John Maurer wrote: > Thanks for the suggestion, Daniel! I was unaware of the ANGLE parameter > in MapServer 5.0. One remaining concern I have, though, is how the angle > will be interpreted by MapServer? Will -90 degrees always point to the > South Pole regardless of the map projection I'm using (e.g. a polar > stereo map centered on the South Pole), or will it always just point to > the bottom of the map image regardless of the projection? i.e. Does > MapServer interpret the degrees spatially or just in terms of the image? > Unfortunately, if the latter is the case (which I suspect it probably > is) it will not solve my problem. Do you know? Thanks again! > Cheers, > John Maurer > > Daniel Morissette wrote: >> John Maurer wrote: >>> Dear MapServer Users, >>> Does anybody have experience displaying vectors in MapServer? By >>> "vectors", I don't mean the usual vector vs. raster difference. What >>> I mean is displaying data like wind vectors, which are point >>> locations that have both a direction (degrees) and magnitude (e.g. >>> meters per second). Usually these are displayed as arrows, which each >>> point in a certain direction and whose tails vary in length depending >>> on the magnitude each measurement. Is this possible in MapServer? >>> Thanks for any suggestions! >> You could bind the symbol size and angle to an attribute in your layer >> definition. >> >> If you can precompute the size in pixels based on the wind speed and >> store that to an 'arrowsize' attribute then you could use a layer >> defn's like this: >> >> LAYER >> TYPE POINT >> ... >> CLASS >> SYMBOL 'arrow' >> ANGLE [direction] >> SIZE [arrowsize] >> COLOR 0 0 0 >> END >> END >> >> >> If you can't precompute the arrow size in pixels, then you could use >> classes based on the wind speed attribute: >> >> LAYER >> TYPE POINT >> ... >> CLASSITEM 'windspeed' >> CLASS >> EXPRESSION ([windspeed] < 5) >> SYMBOL 'arrow' >> ANGLE [direction] >> SIZE 10 >> COLOR 0 0 0 >> END >> CLASS >> EXPRESSION ([windspeed] < 25) >> SYMBOL 'arrow' >> ANGLE [direction] >> SIZE 15 >> COLOR 0 0 0 >> END >> CLASS >> EXPRESSION ([windspeed] < 100) >> SYMBOL 'arrow' >> ANGLE [direction] >> SIZE 20 >> COLOR 0 0 0 >> END >> CLASS >> # No expression ... catch all for windspeed > 100 >> SYMBOL 'arrow' >> ANGLE [direction] >> SIZE 25 >> COLOR 0 0 0 >> END >> END >> >> >> Daniel > > -- > John Maurer > Web/Database Applications Engineer > National Snow and Ice Data Center (NSIDC) > University of Colorado at Boulder > http://cires.colorado.edu/~maurerj > +1-303-586-1677 > ------------------------------------ > "Without geography, you're nowhere!" > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- H?vard Tveite Department of Mathematical Sciences and Technology, UMB Dr?bakveien 31, POBox 5003, N-1432 ?s, NORWAY Phone: +47 64965483 Fax: +47 64965401 http://www.umb.no/imt/ From yjacolin at free.fr Tue Aug 19 02:24:35 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Tue, 19 Aug 2008 11:24:35 +0200 Subject: [mapserver-users] build mapserver 5.2.0 with proj 4.6.0 Message-ID: <200808191124.36036.yjacolin@free.fr> Hello, I am trying to build mapserver 5.2.0 with proj-4.6.0. The ./configure script tells me : "configure: error: This version of PROJ is too old. PROJ4.4.2 or later is required." , here is the configure comande line: ./configure --with-postgis --with-wmsclient --with-wfsclient --with-geos --with-proj=/usr/local/ --with-gdal --with-ogr --with-freetype=/usr/bin/freetype-config --with-eppl --with-xpm=/usr/X11R6/lib/ --with-gd=/usr/ --with-agg=/mnt/data/compil/agg-2.5/ --with-curl-config=/usr/bin/curl-config --with-tiff --with-xml2-config=/usr/bin/xml2-config Do you know how to resolv this? Thanks Y. -- Yves Jacolin --- http://softlibre.gloobe.org -- Yves Jacolin --- http://softlibre.gloobe.org From guillaume.sueur at neogeo-online.net Tue Aug 19 02:31:36 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 19 Aug 2008 11:31:36 +0200 Subject: [mapserver-users] build mapserver 5.2.0 with proj 4.6.0 In-Reply-To: <200808191124.36036.yjacolin@free.fr> References: <200808191124.36036.yjacolin@free.fr> Message-ID: <48AA92F8.608@neogeo-online.net> make sure you don't have any pre-installed Proj lib which would get linked during the ./configure Jacolin Yves a ?crit : > Hello, > > I am trying to build mapserver 5.2.0 with proj-4.6.0. The ./configure script > tells me : "configure: error: This version of PROJ is too old. PROJ4.4.2 or > later is required." , here is the configure comande line: > ./configure > --with-postgis > --with-wmsclient --with-wfsclient > --with-geos > --with-proj=/usr/local/ > --with-gdal --with-ogr > --with-freetype=/usr/bin/freetype-config --with-eppl --with-xpm=/usr/X11R6/lib/ > --with-gd=/usr/ --with-agg=/mnt/data/compil/agg-2.5/ > --with-curl-config=/usr/bin/curl-config > --with-tiff --with-xml2-config=/usr/bin/xml2-config > > Do you know how to resolv this? > > Thanks > > Y. -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From yjacolin at free.fr Tue Aug 19 02:36:45 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Tue, 19 Aug 2008 11:36:45 +0200 Subject: [mapserver-users] build mapserver 5.2.0 with proj 4.6.0 In-Reply-To: <48AA92F8.608@neogeo-online.net> References: <200808191124.36036.yjacolin@free.fr> <48AA92F8.608@neogeo-online.net> Message-ID: <200808191136.45277.yjacolin@free.fr> Hi Guillaume, This is a fresh system install from a "virtual private server" under OpenVZ, I tried to remove all packetage with apt-get remove, and nothing is removed ;) Furthermore I setup the option --with-proj which link to /usr/local/lib where libproj is installed (by myself). I built all main dependance (proj, gdal, geos, libecw and agg). It seems that configure script test pj_transform in proj and if this is not present, think it is an old proj release. I ma going to check in the proj ML to know more about this. Regards, Y. Le Tuesday 19 August 2008 11:31:36 Guillaume Sueur, vous avez ?crit?: > make sure you don't have any pre-installed Proj lib which would get > linked during the ./configure > > Jacolin Yves a ?crit : > > Hello, > > > > I am trying to build mapserver 5.2.0 with proj-4.6.0. The ./configure > > script tells me : "configure: error: This version of PROJ is too old. > > PROJ4.4.2 or later is required." , here is the configure comande line: > > ./configure > > --with-postgis > > --with-wmsclient --with-wfsclient > > --with-geos > > --with-proj=/usr/local/ > > --with-gdal --with-ogr > > --with-freetype=/usr/bin/freetype-config --with-eppl > > --with-xpm=/usr/X11R6/lib/ --with-gd=/usr/ > > --with-agg=/mnt/data/compil/agg-2.5/ > > --with-curl-config=/usr/bin/curl-config > > --with-tiff --with-xml2-config=/usr/bin/xml2-config > > > > Do you know how to resolv this? > > > > Thanks > > > > Y. -- Yves Jacolin --- http://softlibre.gloobe.org From guillaume.sueur at neogeo-online.net Tue Aug 19 02:44:00 2008 From: guillaume.sueur at neogeo-online.net (Guillaume Sueur) Date: Tue, 19 Aug 2008 11:44:00 +0200 Subject: [mapserver-users] build mapserver 5.2.0 with proj 4.6.0 In-Reply-To: <200808191136.45277.yjacolin@free.fr> References: <200808191124.36036.yjacolin@free.fr> <48AA92F8.608@neogeo-online.net> <200808191136.45277.yjacolin@free.fr> Message-ID: <48AA95E0.1080802@neogeo-online.net> what is surprising is that I have here an Ubuntu box with proj 4.6.0 package and a mapserver 5.2.0 compiled on it without any problem. Jacolin Yves a ?crit : > Hi Guillaume, > > This is a fresh system install from a "virtual private server" under OpenVZ, I > tried to remove all packetage with apt-get remove, and nothing is removed ;) > > Furthermore I setup the option --with-proj which link to /usr/local/lib where > libproj is installed (by myself). > > I built all main dependance (proj, gdal, geos, libecw and agg). > > It seems that configure script test pj_transform in proj and if this is not > present, think it is an old proj release. I ma going to check in the proj ML > to know more about this. > > Regards, > > Y. > Le Tuesday 19 August 2008 11:31:36 Guillaume Sueur, vous avez ?crit : >> make sure you don't have any pre-installed Proj lib which would get >> linked during the ./configure >> >> Jacolin Yves a ?crit : >>> Hello, >>> >>> I am trying to build mapserver 5.2.0 with proj-4.6.0. The ./configure >>> script tells me : "configure: error: This version of PROJ is too old. >>> PROJ4.4.2 or later is required." , here is the configure comande line: >>> ./configure >>> --with-postgis >>> --with-wmsclient --with-wfsclient >>> --with-geos >>> --with-proj=/usr/local/ >>> --with-gdal --with-ogr >>> --with-freetype=/usr/bin/freetype-config --with-eppl >>> --with-xpm=/usr/X11R6/lib/ --with-gd=/usr/ >>> --with-agg=/mnt/data/compil/agg-2.5/ >>> --with-curl-config=/usr/bin/curl-config >>> --with-tiff --with-xml2-config=/usr/bin/xml2-config >>> >>> Do you know how to resolv this? >>> >>> Thanks >>> >>> Y. > > > From monicarob at libero.it Tue Aug 19 02:53:00 2008 From: monicarob at libero.it (monicarob at libero.it) Date: Tue, 19 Aug 2008 11:53:00 +0200 Subject: [mapserver-users] Layer and tranform Message-ID: Dear All, I've update the current version of mapserver with the new 5.2.0. When I put the layer in the map, I see the image "overturned". Any suggestions? Thanks, Monica From Albrecht.Weiser at hzd.hessen.de Tue Aug 19 03:00:29 2008 From: Albrecht.Weiser at hzd.hessen.de (Albrecht.Weiser at hzd.hessen.de) Date: Tue, 19 Aug 2008 12:00:29 +0200 Subject: [mapserver-users] Re: Instead of having an embedded class/style/label statement... In-Reply-To: <20080819092452.A68D8E0189B@lists.osgeo.org> References: <20080819092452.A68D8E0189B@lists.osgeo.org> Message-ID: Hi John, i was asking nearly the same question some weeks ago. Unfortunately there seems to be no way. In the near future the inspire guideline has to be implemented and it demands standards like SLD. We will also have the governmental specification to implement the standards configuration-side and not only output-side. But this means, that the service itself binds the SLD and not to reference it during the request. That's an indispensable duty for services we provide for this job. I hope that there will be a support for this function in the near future. Best regards Albrecht > Hi, > > Instead of having an embedded class/style/label statement > like listed below > could a map file instead reference a .sld file? > > Thanks, > > John > > CLASS > STYLE > COLOR 255 0 0 > WIDTH 2 > END > > LABEL > COLOR 150 150 150 > OUTLINECOLOR 255 255 255 > FONT arial > TYPE truetype > SIZE 6 > POSITION AUTO > PARTIALS FALSE > END > > END > > -- > John J. Mitchell > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.osgeo.org/pipermail/mapserver-users/attachments/2 > 0080819/c28e2009/attachment-0001.html > From yjacolin at free.fr Tue Aug 19 03:06:31 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Tue, 19 Aug 2008 12:06:31 +0200 Subject: [mapserver-users] build mapserver 5.2.0 with proj 4.6.0 In-Reply-To: <48AA95E0.1080802@neogeo-online.net> References: <200808191124.36036.yjacolin@free.fr> <200808191136.45277.yjacolin@free.fr> <48AA95E0.1080802@neogeo-online.net> Message-ID: <200808191206.31208.yjacolin@free.fr> Arg, I built again proj4 and I successfully run the masperver configure script :) Y. Le Tuesday 19 August 2008 11:44:00 Guillaume Sueur, vous avez ?crit?: > what is surprising is that I have here an Ubuntu box with proj 4.6.0 > package and a mapserver 5.2.0 compiled on it without any problem. > > Jacolin Yves a ?crit : > > Hi Guillaume, > > > > This is a fresh system install from a "virtual private server" under > > OpenVZ, I tried to remove all packetage with apt-get remove, and nothing > > is removed ;) > > > > Furthermore I setup the option --with-proj which link to /usr/local/lib > > where libproj is installed (by myself). > > > > I built all main dependance (proj, gdal, geos, libecw and agg). > > > > It seems that configure script test pj_transform in proj and if this is > > not present, think it is an old proj release. I ma going to check in the > > proj ML to know more about this. > > > > Regards, > > > > Y. > > > > Le Tuesday 19 August 2008 11:31:36 Guillaume Sueur, vous avez ?crit : > >> make sure you don't have any pre-installed Proj lib which would get > >> linked during the ./configure > >> > >> Jacolin Yves a ?crit : > >>> Hello, > >>> > >>> I am trying to build mapserver 5.2.0 with proj-4.6.0. The ./configure > >>> script tells me : "configure: error: This version of PROJ is too old. > >>> PROJ4.4.2 or later is required." , here is the configure comande line: > >>> ./configure > >>> --with-postgis > >>> --with-wmsclient --with-wfsclient > >>> --with-geos > >>> --with-proj=/usr/local/ > >>> --with-gdal --with-ogr > >>> --with-freetype=/usr/bin/freetype-config --with-eppl > >>> --with-xpm=/usr/X11R6/lib/ --with-gd=/usr/ > >>> --with-agg=/mnt/data/compil/agg-2.5/ > >>> --with-curl-config=/usr/bin/curl-config > >>> --with-tiff --with-xml2-config=/usr/bin/xml2-config > >>> > >>> Do you know how to resolv this? > >>> > >>> Thanks > >>> > >>> Y. -- Yves Jacolin --- http://softlibre.gloobe.org From mgleahy at alumni.uwaterloo.ca Tue Aug 19 03:35:49 2008 From: mgleahy at alumni.uwaterloo.ca (Mike Leahy) Date: Tue, 19 Aug 2008 22:35:49 +1200 Subject: [mapserver-users] Corrupt image output Message-ID: <48AAA205.7060104@alumni.uwaterloo.ca> Hello list, I'm wondering if anyone can help me figure out a problem I'm having with corrupted output from from a tiled geotiff dataset I'm using in a ka-Map environment. You can see what's happening to the imagery here: http://img527.imageshack.us/my.php?image=corrupthd1.png This generally happens when I'm zoomed in fairly close, and usually with this high-resolution image dataset. However, I can get corrupted output for other raster datasets (all geotiff, but not always tiled). It seems to happen when the machine is processing most intensively (i.e., usually when the imagery is being rendered by ka-Map). It also seems to be limited to the laptop I am using, which is running F7-x86_64. In contrast, I have an actual server (F8-x86_64), which has a virtually identical setup (with respect to MapServer and its various dependencies), but with lots more cpu cores and ram, and it's having no trouble at all (as far as I have noticed). The corruption in the output from the same application my laptop is not always the same - if I clear the cache for ka-Map and re-render the images, I'll get similar artifacts appearing in the output (red, green, blue and/or black rectangles), but they will vary in size and location. It happens for both GD/AGG drivers, and JPEG/PNG output formats. Until now, I figured it was just a problem with limited memory on my laptop (it was always around 100% when rendering this imagery on the web service + viewing the application in a browser), but now I've upgraded the ram - there's plenty of spare room and I'm still getting the same problem. I just finished upgrading Gdal from 1.5.0 to 1.5.2, and that didn't help any. Basically, the only real differences I can think of between my laptop and my server are the number of cpu cores (1 on my laptop vs. 8 on the server), and possibly the versions of some of the underlying libraries in the system. Does anyone know where I should start looking to find the cause of this? Or perhaps somebody recognizes this problem, and knows what I might be doing wrong... Thanks for any suggestions, Mike From mgleahy at alumni.uwaterloo.ca Tue Aug 19 04:04:28 2008 From: mgleahy at alumni.uwaterloo.ca (Mike Leahy) Date: Tue, 19 Aug 2008 23:04:28 +1200 Subject: [mapserver-users] Re: Corrupt image output In-Reply-To: <48AAA205.7060104@alumni.uwaterloo.ca> References: <48AAA205.7060104@alumni.uwaterloo.ca> Message-ID: <48AAA8BC.10701@alumni.uwaterloo.ca> Hello again, Just to follow-up on this, this problem isn't limited to just image rendering. I also get odd results from raster queries in php mapscript - about half the time, I'll get appropriate rgb values, but as you can see in this example (http://img411.imageshack.us/my.php?image=corrupt2rj9.png), I don't always get the correct results. Often, I'll get zeros for all three values, or just one value - in that sample image, the location on the map indicated by the red dot should have something returned for all three red/green/blue fields. So perhaps this is a problem somewhere between mapscript and the gdal library? Mike Mike Leahy wrote: > Hello list, > > I'm wondering if anyone can help me figure out a problem I'm having with > corrupted output from from a tiled geotiff dataset I'm using in a ka-Map > environment. You can see what's happening to the imagery here: > http://img527.imageshack.us/my.php?image=corrupthd1.png > > This generally happens when I'm zoomed in fairly close, and usually with > this high-resolution image dataset. However, I can get corrupted output > for other raster datasets (all geotiff, but not always tiled). It seems > to happen when the machine is processing most intensively (i.e., usually > when the imagery is being rendered by ka-Map). It also seems to be > limited to the laptop I am using, which is running F7-x86_64. In > contrast, I have an actual server (F8-x86_64), which has a virtually > identical setup (with respect to MapServer and its various > dependencies), but with lots more cpu cores and ram, and it's having no > trouble at all (as far as I have noticed). > > The corruption in the output from the same application my laptop is not > always the same - if I clear the cache for ka-Map and re-render the > images, I'll get similar artifacts appearing in the output (red, green, > blue and/or black rectangles), but they will vary in size and location. > It happens for both GD/AGG drivers, and JPEG/PNG output formats. > > Until now, I figured it was just a problem with limited memory on my > laptop (it was always around 100% when rendering this imagery on the web > service + viewing the application in a browser), but now I've upgraded > the ram - there's plenty of spare room and I'm still getting the same > problem. I just finished upgrading Gdal from 1.5.0 to 1.5.2, and that > didn't help any. > > Basically, the only real differences I can think of between my laptop > and my server are the number of cpu cores (1 on my laptop vs. 8 on the > server), and possibly the versions of some of the underlying libraries > in the system. Does anyone know where I should start looking to find > the cause of this? Or perhaps somebody recognizes this problem, and > knows what I might be doing wrong... > > Thanks for any suggestions, > Mike > > From Tom.Kralidis at ec.gc.ca Tue Aug 19 04:46:43 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Tue, 19 Aug 2008 07:46:43 -0400 Subject: [mapserver-users] adhoc requests to the end of the WMS requestwithin mapserver map file References: Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC39F@ecburexch1.ontario.int.ec.gc.ca> John: you could add the extra keyword-value pairs to the CONNECTION object, i.e.: CONNECTION "http://localhost:8080/geoserver/wms?filter=fieldname=fieldvalue" Hope this helps ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of John Mitchell Sent: Mon 18-Aug-08 19:10 To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] adhoc requests to the end of the WMS requestwithin mapserver map file Below I have listed a sample layer section which does a WMS call to a local geoserver and this work fine, but what I would like to now do is be able to add to this WMS request a filter parameter (e.g. &filter=fieldname=fieldvalue) which geoserver can accept. How can I add adhoc requests like the filter example listed above to the end of the WMS request when mapserver is making a WMS request? Thanks, John LAYER # name of layer NAME "vector:sangis_unexploded_ordnance_child" GROUP "SanGIS_parent" # what type of data is this? TYPE RASTER # always returned with interface STATUS ON TRANSPARENCY 100 CONNECTION "http://localhost:8080/geoserver/wms" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "vector:sangis_unexploded_ordnance" "wms_server_version" "1.1.1" "wms_format" "image/png" "wms_style" "sangis_unexploded_ordnance_style" END END -- John J. Mitchell From beartreeyoga at yahoo.co.uk Tue Aug 19 05:46:10 2008 From: beartreeyoga at yahoo.co.uk (Derek Bain) Date: Tue, 19 Aug 2008 12:46:10 +0000 (GMT) Subject: [mapserver-users] DNC's Message-ID: <912645.84226.qm@web23001.mail.ird.yahoo.com> Hi I am trying to get the color for each symbol/layer within a DNC. Using ogrinfo I can get the f_code for each layer however I cannot find the symbol number stored anywhere. Using document MIL-DTL-89045 I can get a table of symbol number mapped to color. However I need, if possible, to find a way of getting the symbol number from the DNC files OR a means of mapping f_code to color so I can complete the map file. I tried specifying STYLEITEM "AUTO" in one of my Layers to use the default colors within the layer but that does not seem to be supported by OGR and results in a white/blank image (tried empty Class). I have also tried searching through the files for a specific symbol number with no success. Has anyone any ideas of how to do find the symbol number Many thanks Derek Send instant messages to your online friends http://uk.messenger.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at dnr.state.mn.us Tue Aug 19 05:36:56 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 19 Aug 2008 07:36:56 -0500 Subject: [mapserver-users] Change a class name by url Message-ID: <48AA78180200008F0001AB21@co5.dnr.state.mn.us> Manipulation of parameters that don't go through some validation as part of parsing (e.g. most strings) is not supported in 5.0 and 5.2. The exceptions are data and template IF datapattern and templatepattern are set. I've realized this change is probably too limiting and intended to remedy for 5.4. Look for an RFC on the topic soon. Steve >>> Jeff McKenna 08/19/08 12:55 AM >>> hmm, u might also refer to the 5.0 migration guide, in case it helps you: http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT I have also seen a variation of this error: http://lists.osgeo.org/pipermail/mapserver-users/2008-May/055877.html -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Jefferson Bauer wrote: > Hello > > I was upgrading my > mapserver from 4.6 to 5.2 (using MS4W v2.2.8 ) and everything was ok > utntil i run a function that change the name of a CLASS by URL. My > mapfile have a layer like: > > LAYER > > NAME municipio > ... > > CLASS > NAME > "sedes" > ... > > END > END > > I'm using mapserver as > CGI and to do the change in 4.6 i use this: > &map_municipio_sedes_name=newname > > Now in 5.2 i read this > article: > http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages > > So, the new way to do > what i want must be something > like: > &map_layer[municipio]_class[sedes]_name=newname > or > &map_layer[0]_class[0]_name=newname > > But it's not working... I receive this error: > > loadClass(): Unknown identifier. Parsing error near (name):(line 1) > > Am i doing something > wrong or this change is not allowed anymore? > > Thanks, > Jefferson Bauer > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Tue Aug 19 05:39:20 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 19 Aug 2008 07:39:20 -0500 Subject: [mapserver-users] Fractional line widths? Message-ID: <48AA78A80200008F0001AB26@co5.dnr.state.mn.us> We've talked about this as part of a package of graphics-related enhancements. Look for it in 5.4 soon. Steve >>> "Tamas Szekeres" 08/18/08 7:06 PM >>> Dane, I think it would be implemented by means of replacing the int-s with doubles at the style and the symbol definitions and the corresponding interfaces since AGG have already been using doubles internally in the code. Best regards, Tamas 2008/8/19 Dane Springmeyer : > Tamas, > Great, thanks!. I'll file a ticket then regarding the agg render and adding > a FORMATOPTION for generating 'thinner' looking lines. > My question comes from the context of comparing Mapnik's agg output to > mapserver. Mapnik seems to interpret user-entered fractional widths in a > clever way, by lightening the color and intensity. > I'm comparing this graphic generated with a width=0.1 with Mapnik: > http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/xml_config/map/hello_world_using_xml_config.png > to this graphic generated with Mapserver with Width 1.0: > http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile.png > It fully possible that my mapfile is not doing an equal comparison, so if > anyone has suggestions I've pasted it below. > > Thanks, > Dane > ------------ > > # This mapfile mirrors the mapnik hello world example > here: http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/pure_python/ > # A map can be generated from it by running shp2img. > # For example: > # $ shp2img -m world.map -o map/hello_world_with_mapserver_mapfile.png > # or > # once you have installed the mapserv cgi use this url: > # > http://localhost/cgi-bin/mapserv?map=/path/to/this/mapfile/world.map&layers=world&mode=map > MAP > IMAGETYPE AGG > EXTENT -180 -93 180 86 > SIZE 600 300 > SHAPEPATH "../../data/" > IMAGECOLOR 70 130 180 > > OUTPUTFORMAT > NAME 'AGG' > DRIVER AGG/PNG > IMAGEMODE RGB > MIMETYPE "image/png" > END > LAYER > NAME world > DATA world_borders.shp > STATUS ON > TYPE POLYGON > CLASS > NAME "World" > STYLE > COLOR 242 239 249 > OUTLINECOLOR 127 127 127 > WIDTH 1 > END > > END > END > END > > > On Aug 18, 2008, at 3:53 PM, Tamas Szekeres wrote: > > Dane, > > I think it's reasonable but would only be feasible for the AGG renderer > though. > > > Best regards, > > Tamas > > > > 2008/8/19 Dane Springmeyer : > > I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/style > > that only integers are supported for the Style > Width parameter. > > Are thinner lines (a float type) a possibility or have they been considered > > in the MapServer code base? > > I can't find anything in trac to suggest so, but I thought to check here > > before filing a ticket. > > Thanks, > > Dane > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Tue Aug 19 06:38:21 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 19 Aug 2008 08:38:21 -0500 Subject: [mapserver-users] Layer and tranform In-Reply-To: References: Message-ID: <48AA867C.5157.008F.0@dnr.state.mn.us> Monica: Some examples of what "overturned" means would be helpful. Perhaps before and after image samples? Steve >>> On 8/19/2008 at 4:53 AM, in message , wrote: > Dear All, > I've update the current version of mapserver with the new 5.2.0. > When I put the layer in the map, I see the image "overturned". > Any suggestions? > > Thanks, > Monica > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Tue Aug 19 06:40:30 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 19 Aug 2008 08:40:30 -0500 Subject: [mapserver-users] How to display vector symbols (direction andmagnitude) in MapServer? In-Reply-To: <48AA7F05.1060706@umb.no> References: <48A4A6D9.8080107@nsidc.org> <48A57DB7.2080800@mapgears.com> <48A95D5F.2070606@nsidc.org> <48AA7F05.1060706@umb.no> Message-ID: <48AA86FD.5157.008F.0@dnr.state.mn.us> Or a way to alter the interpretation of angles, e.g. ANGLEMODE or something like that... Steve >>> On 8/19/2008 at 3:06 AM, in message <48AA7F05.1060706 at umb.no>, Havard Tveite wrote: > I don't think ANGLE can be used in your case (if you do not > use scripting to calculate the ANGLEs yourself for each > generated map). > > Is there a need for a new TAG - for instance with the name > "ORIENTATION", that could be used to specify compass > directions (0=north, 90=east, 180=south, 270=west) for > point symbols? > > H?vard Tveite > > John Maurer wrote: >> Thanks for the suggestion, Daniel! I was unaware of the ANGLE parameter >> in MapServer 5.0. One remaining concern I have, though, is how the angle >> will be interpreted by MapServer? Will -90 degrees always point to the >> South Pole regardless of the map projection I'm using (e.g. a polar >> stereo map centered on the South Pole), or will it always just point to >> the bottom of the map image regardless of the projection? i.e. Does >> MapServer interpret the degrees spatially or just in terms of the image? >> Unfortunately, if the latter is the case (which I suspect it probably >> is) it will not solve my problem. Do you know? Thanks again! >> Cheers, >> John Maurer >> >> Daniel Morissette wrote: >>> John Maurer wrote: >>>> Dear MapServer Users, >>>> Does anybody have experience displaying vectors in MapServer? By >>>> "vectors", I don't mean the usual vector vs. raster difference. What >>>> I mean is displaying data like wind vectors, which are point >>>> locations that have both a direction (degrees) and magnitude (e.g. >>>> meters per second). Usually these are displayed as arrows, which each >>>> point in a certain direction and whose tails vary in length depending >>>> on the magnitude each measurement. Is this possible in MapServer? >>>> Thanks for any suggestions! >>> You could bind the symbol size and angle to an attribute in your layer >>> definition. >>> >>> If you can precompute the size in pixels based on the wind speed and >>> store that to an 'arrowsize' attribute then you could use a layer >>> defn's like this: >>> >>> LAYER >>> TYPE POINT >>> ... >>> CLASS >>> SYMBOL 'arrow' >>> ANGLE [direction] >>> SIZE [arrowsize] >>> COLOR 0 0 0 >>> END >>> END >>> >>> >>> If you can't precompute the arrow size in pixels, then you could use >>> classes based on the wind speed attribute: >>> >>> LAYER >>> TYPE POINT >>> ... >>> CLASSITEM 'windspeed' >>> CLASS >>> EXPRESSION ([windspeed] < 5) >>> SYMBOL 'arrow' >>> ANGLE [direction] >>> SIZE 10 >>> COLOR 0 0 0 >>> END >>> CLASS >>> EXPRESSION ([windspeed] < 25) >>> SYMBOL 'arrow' >>> ANGLE [direction] >>> SIZE 15 >>> COLOR 0 0 0 >>> END >>> CLASS >>> EXPRESSION ([windspeed] < 100) >>> SYMBOL 'arrow' >>> ANGLE [direction] >>> SIZE 20 >>> COLOR 0 0 0 >>> END >>> CLASS >>> # No expression ... catch all for windspeed > 100 >>> SYMBOL 'arrow' >>> ANGLE [direction] >>> SIZE 25 >>> COLOR 0 0 0 >>> END >>> END >>> >>> >>> Daniel >> >> -- >> John Maurer >> Web/Database Applications Engineer >> National Snow and Ice Data Center (NSIDC) >> University of Colorado at Boulder >> http://cires.colorado.edu/~maurerj >> +1-303-586-1677 >> ------------------------------------ >> "Without geography, you're nowhere!" >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> From Steve.Lime at dnr.state.mn.us Tue Aug 19 06:41:25 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 19 Aug 2008 08:41:25 -0500 Subject: [mapserver-users] Instead of having an embedded class/style/label statement could a map file instead reference a .sld file? In-Reply-To: <19970.145.50.39.11.1219133342.squirrel@webmail.hostingdiscounter.nl> References: <19970.145.50.39.11.1219133342.squirrel@webmail.hostingdiscounter.nl> Message-ID: <48AA8734.5157.008F.0@dnr.state.mn.us> Is there a ticket for this? If not there should be. Steve >>> On 8/19/2008 at 3:09 AM, in message <19970.145.50.39.11.1219133342.squirrel at webmail.hostingdiscounter.nl>, wrote: > No, this is not yet possible. It will need some funding to get done most > likely. > > Best regards, > Bart > >> Hi, >> >> Instead of having an embedded class/style/label statement like listed >> below >> could a map file instead reference a .sld file? >> >> Thanks, >> >> John >> >> CLASS >> STYLE >> COLOR 255 0 0 >> WIDTH 2 >> END >> >> LABEL >> COLOR 150 150 150 >> OUTLINECOLOR 255 255 255 >> FONT arial >> TYPE truetype >> SIZE 6 >> POSITION AUTO >> PARTIALS FALSE >> END >> >> END >> >> -- >> John J. Mitchell >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Tue Aug 19 06:42:45 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 19 Aug 2008 08:42:45 -0500 Subject: [mapserver-users] Re: msGetLabelSize(): TrueType Font error.Requested font (sans) not found. In-Reply-To: References: Message-ID: <48AA8784.5157.008F.0@dnr.state.mn.us> Font references are stored in a fontset, a simple text file. You need to reference that in your map object and can look at it's contents to determine what's available. Steve >>> On 8/18/2008 at 4:24 PM, in message , "John Mitchell" wrote: > Sorry for the extra email. I forgot to ask my question to the below email > which is: > How do I know what fonts that are available to my mapserver. > > > On Mon, Aug 18, 2008 at 5:21 PM, John Mitchell wrote: > >> Hi, >> >> Within a map file I am trying to draws labels based on an attribute value >> and I get the following error within the label object: >> msGetLabelSize(): TrueType Font error. Requested font (sans) not found. >> >> Below is part of the map file: >> >> LABELITEM "type" >> >> CLASS >> STYLE >> COLOR 255 0 0 >> WIDTH 2 >> END >> >> LABEL >> COLOR 150 150 150 >> OUTLINECOLOR 255 255 255 >> FONT sans >> TYPE truetype >> SIZE 6 >> POSITION AUTO >> PARTIALS FALSE >> END >> >> END >> >> Thanks, >> >> -- >> John J. Mitchell >> > > From Steve.Lime at dnr.state.mn.us Tue Aug 19 06:49:02 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 19 Aug 2008 08:49:02 -0500 Subject: [mapserver-users] loadWeb(): General error message.URL-basedTEMPLATE... In-Reply-To: <390b64100808152144v4163a75fh3aa4f4a1ea3cb3c6@mail.gmail.com> References: <390b64100808152144v4163a75fh3aa4f4a1ea3cb3c6@mail.gmail.com> Message-ID: <48AA88FD.5157.008F.0@dnr.state.mn.us> When changing a template via a URL the value is compared against a regex stored in TEMPLATEPATTERN. If the value validates then the template is changed. Is this the stock MapServer demo or have you altered it? Steve >>> On 8/15/2008 at 11:44 PM, in message <390b64100808152144v4163a75fh3aa4f4a1ea3cb3c6 at mail.gmail.com>, LMonge wrote: > Hello everybody ! > > I do not understand this error: loadWeb(): General error message. URL-based > TEMPLATE configuration failed pattern validation. > somebody can help me? I have verified the code in my templetes, but I didn?t > find the error. > > I have installed in my pc: mapserver 5.2 and MapServer 5.x Demo > Application > > > > thank you From bartvde at osgis.nl Tue Aug 19 07:00:14 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Tue, 19 Aug 2008 16:00:14 +0200 (CEST) Subject: [mapserver-users] Instead of having an embedded class/style/label statement could a map file instead reference a .sld file? In-Reply-To: <48AA8734.5157.008F.0@dnr.state.mn.us> References: <19970.145.50.39.11.1219133342.squirrel@webmail.hostingdiscounter.nl> <48AA8734.5157.008F.0@dnr.state.mn.us> Message-ID: <29340.145.50.39.11.1219154414.squirrel@webmail.hostingdiscounter.nl> No I don't think there is a ticket already. Assefa did prepare an RFC once IIRC, but this never made it to mapserver-dev as the project fell through unfortunately. Best regards, Bart > Is there a ticket for this? If not there should be. > > Steve > >>>> On 8/19/2008 at 3:09 AM, in message > <19970.145.50.39.11.1219133342.squirrel at webmail.hostingdiscounter.nl>, > wrote: >> No, this is not yet possible. It will need some funding to get done most >> likely. >> >> Best regards, >> Bart >> >>> Hi, >>> >>> Instead of having an embedded class/style/label statement like listed >>> below >>> could a map file instead reference a .sld file? >>> >>> Thanks, >>> >>> John >>> >>> CLASS >>> STYLE >>> COLOR 255 0 0 >>> WIDTH 2 >>> END >>> >>> LABEL >>> COLOR 150 150 150 >>> OUTLINECOLOR 255 255 255 >>> FONT arial >>> TYPE truetype >>> SIZE 6 >>> POSITION AUTO >>> PARTIALS FALSE >>> END >>> >>> END >>> >>> -- >>> John J. Mitchell >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From szekerest at gmail.com Tue Aug 19 07:20:55 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 19 Aug 2008 16:20:55 +0200 Subject: [mapserver-users] Corrupt image output In-Reply-To: <48AAA205.7060104@alumni.uwaterloo.ca> References: <48AAA205.7060104@alumni.uwaterloo.ca> Message-ID: Mike, Did you experience the same problem when calling tile.php directly when rendering an individual tile? Best regards, Tamas 2008/8/19 Mike Leahy : > Hello list, > > I'm wondering if anyone can help me figure out a problem I'm having with > corrupted output from from a tiled geotiff dataset I'm using in a ka-Map > environment. You can see what's happening to the imagery here: > http://img527.imageshack.us/my.php?image=corrupthd1.png > > This generally happens when I'm zoomed in fairly close, and usually with > this high-resolution image dataset. However, I can get corrupted output for > other raster datasets (all geotiff, but not always tiled). It seems to > happen when the machine is processing most intensively (i.e., usually when > the imagery is being rendered by ka-Map). It also seems to be limited to > the laptop I am using, which is running F7-x86_64. In contrast, I have an > actual server (F8-x86_64), which has a virtually identical setup (with > respect to MapServer and its various dependencies), but with lots more cpu > cores and ram, and it's having no trouble at all (as far as I have noticed). > > The corruption in the output from the same application my laptop is not > always the same - if I clear the cache for ka-Map and re-render the images, > I'll get similar artifacts appearing in the output (red, green, blue and/or > black rectangles), but they will vary in size and location. It happens for > both GD/AGG drivers, and JPEG/PNG output formats. > > Until now, I figured it was just a problem with limited memory on my laptop > (it was always around 100% when rendering this imagery on the web service + > viewing the application in a browser), but now I've upgraded the ram - > there's plenty of spare room and I'm still getting the same problem. I just > finished upgrading Gdal from 1.5.0 to 1.5.2, and that didn't help any. > > Basically, the only real differences I can think of between my laptop and my > server are the number of cpu cores (1 on my laptop vs. 8 on the server), and > possibly the versions of some of the underlying libraries in the system. > Does anyone know where I should start looking to find the cause of this? > Or perhaps somebody recognizes this problem, and knows what I might be > doing wrong... > > Thanks for any suggestions, > Mike > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From blake at hailmail.net Tue Aug 19 07:28:17 2008 From: blake at hailmail.net (Dane Springmeyer) Date: Tue, 19 Aug 2008 07:28:17 -0700 Subject: [mapserver-users] Fractional line widths? In-Reply-To: <48AA78A80200008F0001AB26@co5.dnr.state.mn.us> References: <48AA78A80200008F0001AB26@co5.dnr.state.mn.us> Message-ID: <0712161B-993F-4054-AEB1-1450FCBFF6F1@hailmail.net> Fantastic, thanks for the feedback everyone. Dane On Aug 19, 2008, at 5:39 AM, Steve Lime wrote: > We've talked about this as part of a package of graphics-related > enhancements. Look for > it in 5.4 soon. > > Steve > >>>> "Tamas Szekeres" 08/18/08 7:06 PM >>> > Dane, > > I think it would be implemented by means of replacing the int-s with > doubles at the style and the symbol definitions and the corresponding > interfaces since AGG have already been using doubles internally in the > code. > > > Best regards, > > Tamas > > > 2008/8/19 Dane Springmeyer : >> Tamas, >> Great, thanks!. I'll file a ticket then regarding the agg render >> and adding >> a FORMATOPTION for generating 'thinner' looking lines. >> My question comes from the context of comparing Mapnik's agg output >> to >> mapserver. Mapnik seems to interpret user-entered fractional widths >> in a >> clever way, by lightening the color and intensity. >> I'm comparing this graphic generated with a width=0.1 with Mapnik: >> http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/xml_config/map/hello_world_using_xml_config.png >> to this graphic generated with Mapserver with Width 1.0: >> http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile.png >> It fully possible that my mapfile is not doing an equal comparison, >> so if >> anyone has suggestions I've pasted it below. >> >> Thanks, >> Dane >> ------------ >> >> # This mapfile mirrors the mapnik hello world example >> here: http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/pure_python/ >> # A map can be generated from it by running shp2img. >> # For example: >> # $ shp2img -m world.map -o map/ >> hello_world_with_mapserver_mapfile.png >> # or >> # once you have installed the mapserv cgi use this url: >> # >> http://localhost/cgi-bin/mapserv?map=/path/to/this/mapfile/world.map&layers=world&mode=map >> MAP >> IMAGETYPE AGG >> EXTENT -180 -93 180 86 >> SIZE 600 300 >> SHAPEPATH "../../data/" >> IMAGECOLOR 70 130 180 >> >> OUTPUTFORMAT >> NAME 'AGG' >> DRIVER AGG/PNG >> IMAGEMODE RGB >> MIMETYPE "image/png" >> END >> LAYER >> NAME world >> DATA world_borders.shp >> STATUS ON >> TYPE POLYGON >> CLASS >> NAME "World" >> STYLE >> COLOR 242 239 249 >> OUTLINECOLOR 127 127 127 >> WIDTH 1 >> END >> >> END >> END >> END >> >> >> On Aug 18, 2008, at 3:53 PM, Tamas Szekeres wrote: >> >> Dane, >> >> I think it's reasonable but would only be feasible for the AGG >> renderer >> though. >> >> >> Best regards, >> >> Tamas >> >> >> >> 2008/8/19 Dane Springmeyer : >> >> I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/style >> >> that only integers are supported for the Style > Width parameter. >> >> Are thinner lines (a float type) a possibility or have they been >> considered >> >> in the MapServer code base? >> >> I can't find anything in trac to suggest so, but I thought to check >> here >> >> before filing a ticket. >> >> Thanks, >> >> Dane >> >> >> >> _______________________________________________ >> >> mapserver-users mailing list >> >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From warmerdam at pobox.com Tue Aug 19 07:46:55 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 19 Aug 2008 10:46:55 -0400 Subject: [mapserver-users] DNC's In-Reply-To: <912645.84226.qm@web23001.mail.ird.yahoo.com> References: <912645.84226.qm@web23001.mail.ird.yahoo.com> Message-ID: <48AADCDF.5050409@pobox.com> Derek Bain wrote: > Hi > > I am trying to get the color for each symbol/layer within a DNC. Using > ogrinfo I can get the f_code for each layer however I cannot find the > symbol number stored anywhere. Using document MIL-DTL-89045 I can get a > table of symbol number mapped to color. However I need, if possible, to > find a way of getting the symbol number from the DNC files OR a means of > mapping f_code to color so I can complete the map file. I tried > specifying STYLEITEM "AUTO" in one of my Layers to use the default > colors within the layer but that does not seem to be supported by OGR > and results in a white/blank image (tried empty Class). I have also > tried searching through the files for a specific symbol number with no > success. > > Has anyone any ideas of how to do find the symbol number Derek, STYLEITEM "AUTO" is supported for a few OGR formats (Mapinfo, and DGN for instance), but not for anything via the OGDI gateway. I presume you are seeing attributes like this on your DNC features? OGRFeature(coastl at ecr(*)_line):0 id (Integer) = 1 f_code (String) = BA010 acc (Integer) = 1 slt (Integer) = 15 tile_id (Integer) = 1 edg_id (Integer) = 2 That's all I get anyways. I'm afraid I don't know how to get the symbol number. Either it isn't in the dataset or the OGDI VRF/VPF driver is not picking it up in association with the features. I am attaching the metadata output from the ogdi_info command for my DNC dataset in case it might have something useful for you. It does, for instance, associate longer text for the f_code values. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent -------------- next part -------------- A non-text attachment was scrubbed... Name: dnc_meta.zip Type: application/zip Size: 5586 bytes Desc: not available URL: From group.ritesh at gmail.com Tue Aug 19 07:57:52 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Tue, 19 Aug 2008 07:57:52 -0700 (PDT) Subject: [MAPSERVER-USERS] fseek dbf error while importing shapefile in postgres Message-ID: <19052192.post@talk.nabble.com> I tried to import shapefiles into postgres by using this command: shp2pgsql shapefile_name table_name > sqlfile.sql I got chunks of errors like : fseek(-1035313584) failed on DBF file. fseek(-1035313584) failed on DBF file. fseek(-1035313584) failed on DBF file. fseek(-1035313584) failed on DBF file. . . . fseek(-1035313584) failed on DBF file. What can be the problem? What should be checked in the DBF for these kind of errors? Regards, Ritesh Ambastha -- View this message in context: http://www.nabble.com/fseek-dbf-error-while-importing-shapefile-in-postgres-tp19052192p19052192.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregor at hostgis.com Tue Aug 19 07:59:19 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Tue, 19 Aug 2008 08:59:19 -0600 Subject: [MAPSERVER-USERS] fseek dbf error while importing shapefile in postgres In-Reply-To: <19052192.post@talk.nabble.com> References: <19052192.post@talk.nabble.com> Message-ID: <48AADFC7.4000902@hostgis.com> Ritesh Ambastha wrote: > fseek(-1035313584) failed on DBF file. > What can be the problem? What should be checked in the DBF for these kind of > errors? Are you positive that the DBF was uploaded correctly? The first thing I would suspect is that I FTPd it in ASCII mode, or only got half of the file uploaded. Check the DBF and make sure it's the right size and md5sum, is my advice. -- Gregor Mosheh / Greg Allensworth, BS, A+ 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 group.ritesh at gmail.com Tue Aug 19 08:05:27 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Tue, 19 Aug 2008 08:05:27 -0700 (PDT) Subject: [MAPSERVER-USERS] fseek dbf error while importing shapefile in postgres In-Reply-To: <48AADFC7.4000902@hostgis.com> References: <19052192.post@talk.nabble.com> <48AADFC7.4000902@hostgis.com> Message-ID: <19052353.post@talk.nabble.com> Dear Gregor, Thanks for the quick support ! I checked the number of rows in the populated table in postgres against the DBF. Both are equal. I am unable to check the source of error. Regards, RItesh Ambastha Gregor Mosheh-3 wrote: > > Ritesh Ambastha wrote: >> fseek(-1035313584) failed on DBF file. >> What can be the problem? What should be checked in the DBF for these kind >> of >> errors? > > Are you positive that the DBF was uploaded correctly? The first thing I > would suspect is that I FTPd it in ASCII mode, or only got half of the > file uploaded. Check the DBF and make sure it's the right size and > md5sum, is my advice. > > -- > Gregor Mosheh / Greg Allensworth, BS, A+ > 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 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/fseek-dbf-error-while-importing-shapefile-in-postgres-tp19052192p19052353.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at state.mn.us Tue Aug 19 08:12:40 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Tue, 19 Aug 2008 10:12:40 -0500 Subject: [MAPSERVER-USERS] fseek dbf error while importing shapefile inpostgres In-Reply-To: <19052353.post@talk.nabble.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBFD1@s-sp22.pca.state.mn.us> You might try the PostGIS list for this PostGIS question... -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh Ambastha Sent: Tuesday, August 19, 2008 10:05 AM To: mapserver-users at lists.osgeo.org Subject: Re: [MAPSERVER-USERS] fseek dbf error while importing shapefile inpostgres Dear Gregor, Thanks for the quick support ! I checked the number of rows in the populated table in postgres against the DBF. Both are equal. I am unable to check the source of error. Regards, RItesh Ambastha Gregor Mosheh-3 wrote: > > Ritesh Ambastha wrote: >> fseek(-1035313584) failed on DBF file. >> What can be the problem? What should be checked in the DBF for these >> kind of errors? > > Are you positive that the DBF was uploaded correctly? The first thing > I > would suspect is that I FTPd it in ASCII mode, or only got half of the > file uploaded. Check the DBF and make sure it's the right size and > md5sum, is my advice. > > -- > Gregor Mosheh / Greg Allensworth, BS, A+ > 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 > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/fseek-dbf-error-while-importing-shapefile-in-postg res-tp19052192p19052353.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jepibr at yahoo.com.br Tue Aug 19 09:09:24 2008 From: jepibr at yahoo.com.br (Jefferson Bauer) Date: Tue, 19 Aug 2008 09:09:24 -0700 (PDT) Subject: Res: [mapserver-users] Change a class name by url Message-ID: <307627.65224.qm@web34507.mail.mud.yahoo.com> Thaks for your reply Jeff. I've used the migration guide to change the way i modify variables by URL, like setting templates in WEB or LEGEND, adding POINTS in a FEATURE, etc. With that, my application works fine. But in some cases i need to modify the name of a class adding a number or a new text and this is the problem. In the older version it's quite simple as i wrote, but now i can't do in this new way and the error message doesn't explain too much... Did you try to do this class name change? Do you know another way to this? Jefferson Bauer ----- Mensagem original ---- De: Jeff McKenna Para: mapserver-users at lists.osgeo.org Enviadas: Ter?a-feira, 19 de Agosto de 2008 2:10:45 Assunto: Re: [mapserver-users] Change a class name by url hmm, u might also refer to the 5.0 migration guide, in case it helps you: http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT I have also seen a variation of this error: http://lists.osgeo.org/pipermail/mapserver-users/2008-May/055877.html -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Jefferson Bauer wrote: > Hello > > I was upgrading my > mapserver from 4.6 to 5.2 (using MS4W v2.2.8 ) and everything was ok > utntil i run a function that change the name of a CLASS by URL. My > mapfile have a layer like: > > LAYER > > NAME municipio > ... > > CLASS > NAME > "sedes" > ... > > END > END > > I'm using mapserver as > CGI and to do the change in 4.6 i use this: > &map_municipio_sedes_name=newname > > Now in 5.2 i read this > article: > http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages > > So, the new way to do > what i want must be something > like: > &map_layer[municipio]_class[sedes]_name=newname > or > &map_layer[0]_class[0]_name=newname > > But it's not working... I receive this error: > > loadClass(): Unknown identifier. Parsing error near (name):(line 1) > > Am i doing something > wrong or this change is not allowed anymore? > > Thanks, > Jefferson Bauer > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Novos endere?os, o Yahoo! que voc? conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. http://br.new.mail.yahoo.com/addresses From jepibr at yahoo.com.br Tue Aug 19 09:26:01 2008 From: jepibr at yahoo.com.br (Jefferson Bauer) Date: Tue, 19 Aug 2008 09:26:01 -0700 (PDT) Subject: Res: [mapserver-users] Change a class name by url Message-ID: <442393.62697.qm@web34501.mail.mud.yahoo.com> Hi Steve I receive now your answer just after send another one to Jeff. I've used the CGI reference manual and your RFC 31 to try a solution but didn't realize that's not possible. Thanks for the answer and i'll be waiting for this new RFC! Jefferson Bauer ----- Mensagem original ---- De: Steve Lime Para: jmckenna at gatewaygeomatics.com; mapserver-users at lists.osgeo.org Enviadas: Ter?a-feira, 19 de Agosto de 2008 9:36:56 Assunto: Re: [mapserver-users] Change a class name by url Manipulation of parameters that don't go through some validation as part of parsing (e.g. most strings) is not supported in 5.0 and 5.2. The exceptions are data and template IF datapattern and templatepattern are set. I've realized this change is probably too limiting and intended to remedy for 5.4. Look for an RFC on the topic soon. Steve >>> Jeff McKenna 08/19/08 12:55 AM >>> hmm, u might also refer to the 5.0 migration guide, in case it helps you: http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT I have also seen a variation of this error: http://lists.osgeo.org/pipermail/mapserver-users/2008-May/055877.html -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Jefferson Bauer wrote: > Hello > > I was upgrading my > mapserver from 4.6 to 5.2 (using MS4W v2.2.8 ) and everything was ok > utntil i run a function that change the name of a CLASS by URL. My > mapfile have a layer like: > > LAYER > > NAME municipio > ... > > CLASS > NAME > "sedes" > ... > > END > END > > I'm using mapserver as > CGI and to do the change in 4.6 i use this: > &map_municipio_sedes_name=newname > > Now in 5.2 i read this > article: > http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages > > So, the new way to do > what i want must be something > like: > &map_layer[municipio]_class[sedes]_name=newname > or > &map_layer[0]_class[0]_name=newname > > But it's not working... I receive this error: > > loadClass(): Unknown identifier. Parsing error near (name):(line 1) > > Am i doing something > wrong or this change is not allowed anymore? > > Thanks, > Jefferson Bauer > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users Novos endere?os, o Yahoo! que voc? conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. http://br.new.mail.yahoo.com/addresses From Steve.Lime at dnr.state.mn.us Tue Aug 19 09:31:14 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 19 Aug 2008 11:31:14 -0500 Subject: [mapserver-users] Layer and tranform In-Reply-To: References: Message-ID: <48AAAF02.5157.008F.0@dnr.state.mn.us> And this worked in a previous version of MapServer? Looks to me like an error with the format but then again I'm not a netcdf user at all. Others may have more ideas. Steve >>> On 8/19/2008 at 10:13 AM, in message , wrote: > Dear Steve, > the attach is what I see... > The machine uses mapserver 5.2.0, netCDF 4.0 and gdal 1.5.2. > I don't understand if the problem is the netcdf format not correct (because > with the previous version of mapserver the file was show correctly) or a > setting of my layer into mapscript. > Thanks in advance for your suggestions, > Monica > > >> Monica: Some examples of what "overturned" means would be helpful. Perhaps > before >> and after image samples? >> >> Steve >> >> >>> On 8/19/2008 at 4:53 AM, in message >> , >> wrote: >> > Dear All, >> > I've update the current version of mapserver with the new 5.2.0. >> > When I put the layer in the map, I see the image "overturned". >> > Any suggestions? >> > >> > Thanks, >> > Monica >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> From Steve.Lime at dnr.state.mn.us Tue Aug 19 09:36:47 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 19 Aug 2008 11:36:47 -0500 Subject: Res: [mapserver-users] Change a class name by url In-Reply-To: <307627.65224.qm@web34507.mail.mud.yahoo.com> References: <307627.65224.qm@web34507.mail.mud.yahoo.com> Message-ID: <48AAB04E.5157.008F.0@dnr.state.mn.us> If you can recompile MapServer then all you need to do is edit maplexer.l. Go down to the line: name and change it to: name and that should do it. Steve >>> On 8/19/2008 at 11:09 AM, in message <307627.65224.qm at web34507.mail.mud.yahoo.com>, Jefferson Bauer wrote: > Thaks for your reply > Jeff. > > I've used the migration > guide to change the way i modify variables by URL, like setting > templates in WEB or LEGEND, adding POINTS in a FEATURE, etc. > > With that, my > application works fine. But in some cases i need to modify the name > of a class adding a number or a new text and this is the problem. In > the older version it's quite simple as i wrote, but now i can't do in > this new way and the error message doesn't explain too much... > > Did you try to do this > class name change? Do you know another way to this? > > Jefferson Bauer > > > ----- Mensagem original ---- > De: Jeff McKenna > Para: mapserver-users at lists.osgeo.org > Enviadas: Ter?a-feira, 19 de Agosto de 2008 2:10:45 > Assunto: Re: [mapserver-users] Change a class name by url > > hmm, u might also refer to the 5.0 migration guide, in case it helps > you: > http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATIO > N_GUIDE.TXT > > I have also seen a variation of this error: > http://lists.osgeo.org/pipermail/mapserver-users/2008-May/055877.html > From group.ritesh at gmail.com Tue Aug 19 09:57:55 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Tue, 19 Aug 2008 09:57:55 -0700 (PDT) Subject: [MAPSERVER-USERS] epsg code for 'UTM 43 North' Message-ID: <19054466.post@talk.nabble.com> How can I calculate exact EPSG code for the date projected in 'UTM 43 North' ? I just got few clues from this link : http://spatialreference.org/ref/epsg/?search=UTM&srtext=Search Thanks, Ritesh Ambastha -- View this message in context: http://www.nabble.com/epsg-code-for-%27UTM-43-North%27-tp19054466p19054466.html Sent from the Mapserver - User mailing list archive at Nabble.com. From gregor at hostgis.com Tue Aug 19 10:01:01 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Tue, 19 Aug 2008 11:01:01 -0600 Subject: [MAPSERVER-USERS] epsg code for 'UTM 43 North' In-Reply-To: <19054466.post@talk.nabble.com> References: <19054466.post@talk.nabble.com> Message-ID: <48AAFC4D.1050308@hostgis.com> Ritesh Ambastha wrote: > How can I calculate exact EPSG code for the date projected in 'UTM 43 North' The UTM codes, the ones I've used anyway, all start with 267 or 269, then the zone. 267 for NAD27 and 269 for WGS84/NAD83 So I would suspect yours to be 26743 or 26943 You'd want to check PROJ's EPSG file to verify it, though: /usr/share/proj/epsg -- Gregor Mosheh / Greg Allensworth, BS, A+ 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 Tue Aug 19 10:04:08 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Tue, 19 Aug 2008 13:04:08 -0400 Subject: [MAPSERVER-USERS] epsg code for 'UTM 43 North' In-Reply-To: <19054466.post@talk.nabble.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF4A8@ecburexch1.ontario.int.ec.gc.ca> > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Ritesh Ambastha > Sent: 19 August, 2008 12:58 PM > To: mapserver-users at lists.osgeo.org > Subject: [MAPSERVER-USERS] epsg code for 'UTM 43 North' > > > How can I calculate exact EPSG code for the date projected in > 'UTM 43 North' > ? > > I just got few clues from this link : > http://spatialreference.org/ref/epsg/?search=UTM&srtext=Search > If I check my proj installation, I find that the epsg file has a few references (in /usr/local/share/proj/epsg or in C:\ms4w\proj\nad\epsg for MS4W installs), such as: # WGS 84 / UTM zone 43N <32643> +proj=utm +zone=43 +ellps=WGS84 +datum=WGS84 +units=m +no_defs <> ..Tom From w.blanken at geon.nl Tue Aug 19 11:21:01 2008 From: w.blanken at geon.nl (Wim Blanken) Date: Tue, 19 Aug 2008 20:21:01 +0200 Subject: [mapserver-users] Projection problem with EPSG 28992 Message-ID: Hello list, I was trying to build mapserver 5.2 on Hostgis (slackware). I downloaded proj.4 version 4.6.0 and build mapserver against it. I believe it has a problem with the dutch projection (28992). Every other projection works ok but if I use 28992 mapserver complains about an unknown projection id. So it can find proj but cannot operate with 28992. The strange thing is that if I change the proj.4 settings for 28992 in the epsg file (I change sterea in stere) it works. Does Proj.4 still operate with sterea or is this some kind of strange 'slackware' specific problem? Greetings Wim Blanken The Netherlands -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at pobox.com Tue Aug 19 12:11:17 2008 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 19 Aug 2008 15:11:17 -0400 Subject: [mapserver-users] Projection problem with EPSG 28992 In-Reply-To: References: Message-ID: <48AB1AD5.1030201@pobox.com> Wim Blanken wrote: > Hello list, > > > > I was trying to build mapserver 5.2 on Hostgis (slackware). > > I downloaded proj.4 version 4.6.0 and build mapserver against it. I > believe it has a problem with the dutch projection (28992). > > Every other projection works ok but if I use 28992 mapserver complains > about an unknown projection id. So it can find proj but cannot operate > with 28992. The strange thing is that if I change the proj.4 settings > for 28992 in the epsg file (I change sterea in stere) it works. > > Does Proj.4 still operate with sterea or is this some kind of strange > ?slackware? specific problem? Wim, Reviewing the PROJ.4 changelog, it appears sterea projection was added in 4.4.9. With recent PROJ.4 things seem to work ok for me: warmerda at gdal64[7]% proj -I +init=epsg:28992 0 0 3d18'49.421"E 47d58'30.94"N Perhaps there is a very old system libproj.so on your system that is getting used instead of the newer one? 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 mgleahy at alumni.uwaterloo.ca Tue Aug 19 13:47:03 2008 From: mgleahy at alumni.uwaterloo.ca (Mike Leahy) Date: Wed, 20 Aug 2008 08:47:03 +1200 Subject: [mapserver-users] Corrupt image output In-Reply-To: References: <48AAA205.7060104@alumni.uwaterloo.ca> Message-ID: <48AB3147.8080208@alumni.uwaterloo.ca> Tamas, I just gave this a try a few times - deleted the cache, and loaded one tile. It seems to happen less frequently, but I still have about a 1 in 3 chance of getting various rectangle artifacts on the image. It basically looks like something forgets to draw one or more of the rgb colours. Mike Tamas Szekeres wrote: > Mike, > > Did you experience the same problem when calling tile.php directly > when rendering an individual tile? > > Best regards, > > Tamas > > > 2008/8/19 Mike Leahy : >> Hello list, >> >> I'm wondering if anyone can help me figure out a problem I'm having with >> corrupted output from from a tiled geotiff dataset I'm using in a ka-Map >> environment. You can see what's happening to the imagery here: >> http://img527.imageshack.us/my.php?image=corrupthd1.png >> >> This generally happens when I'm zoomed in fairly close, and usually with >> this high-resolution image dataset. However, I can get corrupted output for >> other raster datasets (all geotiff, but not always tiled). It seems to >> happen when the machine is processing most intensively (i.e., usually when >> the imagery is being rendered by ka-Map). It also seems to be limited to >> the laptop I am using, which is running F7-x86_64. In contrast, I have an >> actual server (F8-x86_64), which has a virtually identical setup (with >> respect to MapServer and its various dependencies), but with lots more cpu >> cores and ram, and it's having no trouble at all (as far as I have noticed). >> >> The corruption in the output from the same application my laptop is not >> always the same - if I clear the cache for ka-Map and re-render the images, >> I'll get similar artifacts appearing in the output (red, green, blue and/or >> black rectangles), but they will vary in size and location. It happens for >> both GD/AGG drivers, and JPEG/PNG output formats. >> >> Until now, I figured it was just a problem with limited memory on my laptop >> (it was always around 100% when rendering this imagery on the web service + >> viewing the application in a browser), but now I've upgraded the ram - >> there's plenty of spare room and I'm still getting the same problem. I just >> finished upgrading Gdal from 1.5.0 to 1.5.2, and that didn't help any. >> >> Basically, the only real differences I can think of between my laptop and my >> server are the number of cpu cores (1 on my laptop vs. 8 on the server), and >> possibly the versions of some of the underlying libraries in the system. >> Does anyone know where I should start looking to find the cause of this? >> Or perhaps somebody recognizes this problem, and knows what I might be >> doing wrong... >> >> Thanks for any suggestions, >> Mike >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From szekerest at gmail.com Tue Aug 19 14:39:38 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 19 Aug 2008 23:39:38 +0200 Subject: [mapserver-users] Corrupt image output In-Reply-To: <48AB3147.8080208@alumni.uwaterloo.ca> References: <48AAA205.7060104@alumni.uwaterloo.ca> <48AB3147.8080208@alumni.uwaterloo.ca> Message-ID: Mike, It's quite difficult to find out what's going on. You should file a ticket including the example and sample data. Probably the problem may be reproduced in other machines as well. Best regards, Tamas 2008/8/19 Mike Leahy : > Tamas, > > I just gave this a try a few times - deleted the cache, and loaded one tile. > It seems to happen less frequently, but I still have about a 1 in 3 chance > of getting various rectangle artifacts on the image. It basically looks > like something forgets to draw one or more of the rgb colours. > > Mike > > Tamas Szekeres wrote: >> >> Mike, >> >> Did you experience the same problem when calling tile.php directly >> when rendering an individual tile? >> >> Best regards, >> >> Tamas >> >> >> 2008/8/19 Mike Leahy : >>> >>> Hello list, >>> >>> I'm wondering if anyone can help me figure out a problem I'm having with >>> corrupted output from from a tiled geotiff dataset I'm using in a ka-Map >>> environment. You can see what's happening to the imagery here: >>> http://img527.imageshack.us/my.php?image=corrupthd1.png >>> >>> This generally happens when I'm zoomed in fairly close, and usually with >>> this high-resolution image dataset. However, I can get corrupted output >>> for >>> other raster datasets (all geotiff, but not always tiled). It seems to >>> happen when the machine is processing most intensively (i.e., usually >>> when >>> the imagery is being rendered by ka-Map). It also seems to be limited to >>> the laptop I am using, which is running F7-x86_64. In contrast, I have >>> an >>> actual server (F8-x86_64), which has a virtually identical setup (with >>> respect to MapServer and its various dependencies), but with lots more >>> cpu >>> cores and ram, and it's having no trouble at all (as far as I have >>> noticed). >>> >>> The corruption in the output from the same application my laptop is not >>> always the same - if I clear the cache for ka-Map and re-render the >>> images, >>> I'll get similar artifacts appearing in the output (red, green, blue >>> and/or >>> black rectangles), but they will vary in size and location. It happens >>> for >>> both GD/AGG drivers, and JPEG/PNG output formats. >>> >>> Until now, I figured it was just a problem with limited memory on my >>> laptop >>> (it was always around 100% when rendering this imagery on the web service >>> + >>> viewing the application in a browser), but now I've upgraded the ram - >>> there's plenty of spare room and I'm still getting the same problem. I >>> just >>> finished upgrading Gdal from 1.5.0 to 1.5.2, and that didn't help any. >>> >>> Basically, the only real differences I can think of between my laptop and >>> my >>> server are the number of cpu cores (1 on my laptop vs. 8 on the server), >>> and >>> possibly the versions of some of the underlying libraries in the system. >>> Does anyone know where I should start looking to find the cause of this? >>> Or perhaps somebody recognizes this problem, and knows what I might be >>> doing wrong... >>> >>> Thanks for any suggestions, >>> Mike >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > From mgleahy at alumni.uwaterloo.ca Tue Aug 19 16:03:47 2008 From: mgleahy at alumni.uwaterloo.ca (Mike Leahy) Date: Wed, 20 Aug 2008 11:03:47 +1200 Subject: [mapserver-users] Corrupt image output In-Reply-To: References: <48AAA205.7060104@alumni.uwaterloo.ca> <48AB3147.8080208@alumni.uwaterloo.ca> Message-ID: <48AB5153.2040109@alumni.uwaterloo.ca> Ok, I'll file a ticket shortly...but I have a few more things I've tried that might add insight to this. It seems if I load the map via cgi mapserver, I get the same problems - so this isn't limited to mapscript. In contrast, I don't seem to have any trouble with the output values if I extract a single pixel from an image using gdal_translate to a *.grd file (at the same coordinates where I get corrupt results from mapscript/mapserver) - so the problem doesn't seem to be with gdal by itself. Also, I can point out that the corrupted areas in the output have no coincidence with tile-index boundaries. I say this out because if I render a layer from a non-tiled image dataset, the corrupted areas appear as horizontal bands across the entire width of the image output, rather than rectangular areas (though my non-tiled dataset is a single-band floating-point DEM, rather than an rgb image). However, as before, the height and number of lines of each band is variable. Maybe it's just time to upgrade my OS (F7 is EOL after all). Regards, Mike Tamas Szekeres wrote: > Mike, > > It's quite difficult to find out what's going on. You should file a > ticket including the example and sample data. Probably the problem may > be reproduced in other machines as well. > > Best regards, > > Tamas > > > > 2008/8/19 Mike Leahy : >> Tamas, >> >> I just gave this a try a few times - deleted the cache, and loaded one tile. >> It seems to happen less frequently, but I still have about a 1 in 3 chance >> of getting various rectangle artifacts on the image. It basically looks >> like something forgets to draw one or more of the rgb colours. >> >> Mike >> >> Tamas Szekeres wrote: >>> Mike, >>> >>> Did you experience the same problem when calling tile.php directly >>> when rendering an individual tile? >>> >>> Best regards, >>> >>> Tamas >>> >>> >>> 2008/8/19 Mike Leahy : >>>> Hello list, >>>> >>>> I'm wondering if anyone can help me figure out a problem I'm having with >>>> corrupted output from from a tiled geotiff dataset I'm using in a ka-Map >>>> environment. You can see what's happening to the imagery here: >>>> http://img527.imageshack.us/my.php?image=corrupthd1.png >>>> >>>> This generally happens when I'm zoomed in fairly close, and usually with >>>> this high-resolution image dataset. However, I can get corrupted output >>>> for >>>> other raster datasets (all geotiff, but not always tiled). It seems to >>>> happen when the machine is processing most intensively (i.e., usually >>>> when >>>> the imagery is being rendered by ka-Map). It also seems to be limited to >>>> the laptop I am using, which is running F7-x86_64. In contrast, I have >>>> an >>>> actual server (F8-x86_64), which has a virtually identical setup (with >>>> respect to MapServer and its various dependencies), but with lots more >>>> cpu >>>> cores and ram, and it's having no trouble at all (as far as I have >>>> noticed). >>>> >>>> The corruption in the output from the same application my laptop is not >>>> always the same - if I clear the cache for ka-Map and re-render the >>>> images, >>>> I'll get similar artifacts appearing in the output (red, green, blue >>>> and/or >>>> black rectangles), but they will vary in size and location. It happens >>>> for >>>> both GD/AGG drivers, and JPEG/PNG output formats. >>>> >>>> Until now, I figured it was just a problem with limited memory on my >>>> laptop >>>> (it was always around 100% when rendering this imagery on the web service >>>> + >>>> viewing the application in a browser), but now I've upgraded the ram - >>>> there's plenty of spare room and I'm still getting the same problem. I >>>> just >>>> finished upgrading Gdal from 1.5.0 to 1.5.2, and that didn't help any. >>>> >>>> Basically, the only real differences I can think of between my laptop and >>>> my >>>> server are the number of cpu cores (1 on my laptop vs. 8 on the server), >>>> and >>>> possibly the versions of some of the underlying libraries in the system. >>>> Does anyone know where I should start looking to find the cause of this? >>>> Or perhaps somebody recognizes this problem, and knows what I might be >>>> doing wrong... >>>> >>>> Thanks for any suggestions, >>>> Mike >>>> >>>> _______________________________________________ >>>> mapserver-users mailing list >>>> mapserver-users at lists.osgeo.org >>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>> > From kreshna_iceheart at yahoo.com Tue Aug 19 22:40:18 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Tue, 19 Aug 2008 22:40:18 -0700 (PDT) Subject: [mapserver-users] Using space in layer's name? Message-ID: <944069.1252.qm@web56115.mail.re3.yahoo.com> I'm using MapServer 5.0.2. I have two layers: the first is named "jaringan ipal dan iplt" (layer name contains space character), while the second is named "jaringan_telepon" (does not contain space). I am using the [layers] parameter to dynamically pass my layers to another template for printing purpose. Alas, because one layer contains space, that particular layer is not passed at all. Here is the contents of the [layers] parameter: &layers=jaringan%20ipal%20dan%20iplt%20jaringan_telepon The layer "jaringan_telepon" is displayed correctly, but the layer "jaringan ipal dan iplt" fails to display, because MapServer takes the space character (%20) as delimiter. I tried to use the parameter [layers_esc] instead, and here is the contents of the [layers_esc]: &layers=jaringan+ipal+dan+iplt+jaringan%5Ftelepon Here, the layer "jaringan ipal dan iplt" still fails to display, because MapServer replaces the space with "+" (plus sign), which is also used as delimiter. Thus, not even [layers_esc] allows us to use space character in layer's name. Is there any other way to use layer with space character in its name, then? Thanks, -Kresh From Jukka.Rahkonen at mmmtike.fi Tue Aug 19 23:46:50 2008 From: Jukka.Rahkonen at mmmtike.fi (Rahkonen Jukka) Date: Wed, 20 Aug 2008 09:46:50 +0300 Subject: [mapserver-users] Using space in layer's name? In-Reply-To: <944069.1252.qm@web56115.mail.re3.yahoo.com> Message-ID: Hi, Are you using WMS?In the document "WMS servers with MapServer" http://mapserver.gis.umn.edu/docs/howto/wms_server reads: # Layer Name and wms_title metadata: Every individual layer needs its own unique name and title. Layer names are also used in GetMap and GetFeatureInfo requests to refer to layers that should be included in the map output and in the query. Layer names must start with a letter when setting up a WMS server (layer names should not start with a digit or have spaces in them). I believe that spaces in layer names are not allowed by WMS standard, but I may be wrong. I do also believe that MapServer cgi supports them, at least I can find example map files with layers named like "my layer". -Jukka Rahkonen- > -----Alkuper?inen viesti----- > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta > kreshna_iceheart at yahoo.com > L?hetetty: 20. elokuuta 2008 8:40 > Vastaanottaja: mapserver-users at lists.osgeo.org > Aihe: [mapserver-users] Using space in layer's name? > > I'm using MapServer 5.0.2. > > I have two layers: the first is named "jaringan ipal dan > iplt" (layer name contains space character), while the second > is named "jaringan_telepon" (does not contain space). > > I am using the [layers] parameter to dynamically pass my > layers to another template for printing purpose. Alas, > because one layer contains space, that particular layer is > not passed at all. Here is the contents of the [layers] parameter: > > &layers=jaringan%20ipal%20dan%20iplt%20jaringan_telepon > > The layer "jaringan_telepon" is displayed correctly, but the > layer "jaringan ipal dan iplt" fails to display, because > MapServer takes the space character (%20) as delimiter. > > I tried to use the parameter [layers_esc] instead, and here > is the contents of the [layers_esc]: > > &layers=jaringan+ipal+dan+iplt+jaringan%5Ftelepon > > Here, the layer "jaringan ipal dan iplt" still fails to > display, because MapServer replaces the space with "+" (plus > sign), which is also used as delimiter. > > Thus, not even [layers_esc] allows us to use space character > in layer's name. Is there any other way to use layer with > space character in its name, then? > > Thanks, > -Kresh > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From kreshna_iceheart at yahoo.com Wed Aug 20 00:00:18 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Wed, 20 Aug 2008 00:00:18 -0700 (PDT) Subject: [mapserver-users] Using space in layer's name? In-Reply-To: Message-ID: <9830.2691.qm@web56109.mail.re3.yahoo.com> Er, nope. I'm not using WMS. --- On Wed, 8/20/08, Rahkonen Jukka wrote: > From: Rahkonen Jukka > Subject: Re: [mapserver-users] Using space in layer's name? > To: kreshna_iceheart at yahoo.com, mapserver-users at lists.osgeo.org > Date: Wednesday, August 20, 2008, 2:46 AM > Hi, > > Are you using WMS?In the document "WMS servers with > MapServer" > http://mapserver.gis.umn.edu/docs/howto/wms_server > reads: > # > Layer Name and wms_title metadata: > Every individual layer needs its own unique name and title. > Layer names are also used in GetMap and GetFeatureInfo > requests to refer to layers that should be included in the > map output and in the query. Layer names must start with a > letter when setting up a WMS server (layer names should not > start with a digit or have spaces in them). > > I believe that spaces in layer names are not allowed by WMS > standard, but I may be wrong. I do also believe that > MapServer cgi supports them, at least I can find example map > files with layers named like "my layer". > > -Jukka Rahkonen- > > > -----Alkuper?inen viesti----- > > L?hett?j?: mapserver-users-bounces at lists.osgeo.org > > [mailto:mapserver-users-bounces at lists.osgeo.org] > Puolesta > > kreshna_iceheart at yahoo.com > > L?hetetty: 20. elokuuta 2008 8:40 > > Vastaanottaja: mapserver-users at lists.osgeo.org > > Aihe: [mapserver-users] Using space in layer's > name? > > > > I'm using MapServer 5.0.2. > > > > I have two layers: the first is named "jaringan > ipal dan > > iplt" (layer name contains space character), > while the second > > is named "jaringan_telepon" (does not > contain space). > > > > I am using the [layers] parameter to dynamically pass > my > > layers to another template for printing purpose. Alas, > > > because one layer contains space, that particular > layer is > > not passed at all. Here is the contents of the > [layers] parameter: > > > > > &layers=jaringan%20ipal%20dan%20iplt%20jaringan_telepon > > > > The layer "jaringan_telepon" is displayed > correctly, but the > > layer "jaringan ipal dan iplt" fails to > display, because > > MapServer takes the space character (%20) as > delimiter. > > > > I tried to use the parameter [layers_esc] instead, and > here > > is the contents of the [layers_esc]: > > > > &layers=jaringan+ipal+dan+iplt+jaringan%5Ftelepon > > > > Here, the layer "jaringan ipal dan iplt" > still fails to > > display, because MapServer replaces the space with > "+" (plus > > sign), which is also used as delimiter. > > > > Thus, not even [layers_esc] allows us to use space > character > > in layer's name. Is there any other way to use > layer with > > space character in its name, then? > > > > Thanks, > > -Kresh > > > > > > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From hellomps at gmail.com Wed Aug 20 03:08:54 2008 From: hellomps at gmail.com (ramya srinivasan) Date: Wed, 20 Aug 2008 15:38:54 +0530 Subject: [mapserver-users] Displaying a point given its latitude and longitude Message-ID: <3702658f0808200308x7d008b97na1f1e623e30273d5@mail.gmail.com> Hello, How to display a point in the map given its latitude and longitude.R there any methods under php/mapscript to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sandeepkumar.jakkaraju at gmail.com Wed Aug 20 03:36:26 2008 From: sandeepkumar.jakkaraju at gmail.com (Sandeep Kumar Jakkaraju) Date: Wed, 20 Aug 2008 16:06:26 +0530 Subject: [mapserver-users] Displaying a point given its latitude and longitude In-Reply-To: <3702658f0808200308x7d008b97na1f1e623e30273d5@mail.gmail.com> References: <3702658f0808200308x7d008b97na1f1e623e30273d5@mail.gmail.com> Message-ID: Hi ramya ........ please check mapserver tutorials on its website !!!! On 8/20/08, ramya srinivasan wrote: > > Hello, > How to display a point in the map given its latitude and longitude.R there > any methods under php/mapscript to do this? > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- Thanks Regards Sandeep Kumar Jakkaraju -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Leveille at mtq.gouv.qc.ca Wed Aug 20 04:42:57 2008 From: James.Leveille at mtq.gouv.qc.ca (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Wed, 20 Aug 2008 07:42:57 -0400 Subject: [mapserver-users] Displaying a point given its latitude andlongitude In-Reply-To: <3702658f0808200308x7d008b97na1f1e623e30273d5@mail.gmail.com> Message-ID: <2F86ED212F3E164EB9FBB2E68C67858E063A30C9@SINFRA0-EXC003.MTQ.MIN.INTRA> Ramya, Here is an example that allows me to display a rectangle in a custom coordinate system. Start from there using your own coordinate system. LAYER PROJECTION "init=epsg:42105" END METADATA wms_title "Fond de carte" END NAME "fond_carte" STATUS ON DUMP TRUE EXTENT 30000 75000 1700000 2120000 TYPE POLYGON FEATURE POINTS -8000 57150 -8000 2111000 1773200 2111000 1773200 57150 -8000 57150 END END CLASS COLOR 240 230 175 END END ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -----Message d'origine----- De : mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] De la part de ramya srinivasan Envoy? : 20 ao?t 2008 06:09 ? : mapserver-users at lists.osgeo.org Objet : [mapserver-users] Displaying a point given its latitude andlongitude Hello, How to display a point in the map given its latitude and longitude.R there any methods under php/mapscript to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gemerson at WelshCo.com Wed Aug 20 06:23:00 2008 From: gemerson at WelshCo.com (Emerson, Gabe) Date: Wed, 20 Aug 2008 08:23:00 -0500 Subject: [mapserver-users] Displaying a point given its latitude andlongitude In-Reply-To: <3702658f0808200308x7d008b97na1f1e623e30273d5@mail.gmail.com> References: <3702658f0808200308x7d008b97na1f1e623e30273d5@mail.gmail.com> Message-ID: <348277DFCE9FF044B3812A6CF459CD37F64030@welshmail.welshco.com.local> I'm not sure about mapscript methods, but the older html method works for me. I would think you could use mapscript to insert inline features using something like $layer->set('values'); I use a dummy layer which sets up the appearance of the point, and then add features to the layer as needed via a form variable. Once I have a lat/lon pair (I'm getting them from a geocoding API), I set a form variable representing my dummy layer with the values I want inserted into that layer. These docs were useful when I set this up: http://mapserver.gis.umn.edu/docs/reference/cgi/controls (scroll down to "Changing map file parameters via a form or a URL") http://mapserver.gis.umn.edu/docs/reference/vector_data/inline Here's what my dummy layer looks like: LAYER NAME "as" #Small scale (zoomed out) STATUS off #layer must be specified ON or DEFAULT in URL for it to be drawn TYPE point UNITS dd PROJECTION "init=epsg:4326" END #Features get inserted here, specified in URL CLASS NAME "Search Result" LABEL #Label text gets inserted via URL FONT "futura" TYPE TRUETYPE POSITION lc SIZE 12 WRAP "%" #newline when % encountered in string BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 BACKGROUNDSHADOWCOLOR 204 204 204 BACKGROUNDSHADOWSIZE 3 3 FORCE TRUE END STYLE SYMBOL "house" COLOR 255 0 0 SIZE 15 END END END Here's the on-the-fly feature point creation using Javascript (in the map template): document.mapserv[0].value="FEATURE POINTS "+Ylon+" "+Ylat+" END TEXT '"+Yaddr+"%"+Ycity+", "+Ystate+" "+Yzip+"' END"; //Get lat long into layer document.mapserv[1].value="STATUS default"; //Turn on dummy layer in mapfile. I have two form variables named map_layer[as], which mapserver interprets as representing the mapfile layer "as". When you submit the form, the value of map_layer[as] in the URL gets set to the appropriate part of the "as" layer in the mapfile. Two copies of this variable are needed since I need to change both the FEATURE POINTS and the STATUS of the layer (to turn it on and off as needed). Here's the mapserv[0] and mapserv[1] variables that the javascript is editing: The default variables inlinelayer and layerstatus let me maintain my points from state to state until cleared by a user control. -Gabe From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of ramya srinivasan Sent: Wednesday, August 20, 2008 5:09 AM To: mapserver-users at lists.osgeo.org Subject: [mapserver-users] Displaying a point given its latitude andlongitude Hello, How to display a point in the map given its latitude and longitude.R there any methods under php/mapscript to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mgleahy at alumni.uwaterloo.ca Wed Aug 20 07:14:44 2008 From: mgleahy at alumni.uwaterloo.ca (Mike Leahy) Date: Thu, 21 Aug 2008 02:14:44 +1200 Subject: [mapserver-users] Corrupt image output (solved?) In-Reply-To: <48AB5153.2040109@alumni.uwaterloo.ca> References: <48AAA205.7060104@alumni.uwaterloo.ca> <48AB3147.8080208@alumni.uwaterloo.ca> <48AB5153.2040109@alumni.uwaterloo.ca> Message-ID: <48AC26D4.2060700@alumni.uwaterloo.ca> Hello again, I think I found the cause of my problem - on my server (where I had preprocessed all of my imagery), I have libgeotiff-1.2.4 installed from the F8 repositories. On my laptop I had libgeotiff-1.2.3 installed from source. I upgraded my laptop to libgeotiff-1.2.4 (I tried 1.2.5, but it didn't compile for me), and recompiled gdal and mapserver. Now it seems that imagery renders okay (after some quick tests). I didn't realize I had different libgeotiff library versions...but it also hadn't occurred to me that a GeoTiff dataset might be incompatible with different versions of libgeotiff. So should I maybe close the ticket that I opened earlier today? Mike Mike Leahy wrote: > Ok, I'll file a ticket shortly...but I have a few more things I've tried > that might add insight to this. It seems if I load the map via cgi > mapserver, I get the same problems - so this isn't limited to mapscript. > In contrast, I don't seem to have any trouble with the output values if > I extract a single pixel from an image using gdal_translate to a *.grd > file (at the same coordinates where I get corrupt results from > mapscript/mapserver) - so the problem doesn't seem to be with gdal by > itself. > > Also, I can point out that the corrupted areas in the output have no > coincidence with tile-index boundaries. I say this out because if I > render a layer from a non-tiled image dataset, the corrupted areas > appear as horizontal bands across the entire width of the image output, > rather than rectangular areas (though my non-tiled dataset is a > single-band floating-point DEM, rather than an rgb image). However, as > before, the height and number of lines of each band is variable. > > Maybe it's just time to upgrade my OS (F7 is EOL after all). > > Regards, > Mike > > Tamas Szekeres wrote: >> Mike, >> >> It's quite difficult to find out what's going on. You should file a >> ticket including the example and sample data. Probably the problem may >> be reproduced in other machines as well. >> >> Best regards, >> >> Tamas >> >> >> >> 2008/8/19 Mike Leahy : >>> Tamas, >>> >>> I just gave this a try a few times - deleted the cache, and loaded >>> one tile. >>> It seems to happen less frequently, but I still have about a 1 in 3 >>> chance >>> of getting various rectangle artifacts on the image. It basically looks >>> like something forgets to draw one or more of the rgb colours. >>> >>> Mike >>> >>> Tamas Szekeres wrote: >>>> Mike, >>>> >>>> Did you experience the same problem when calling tile.php directly >>>> when rendering an individual tile? >>>> >>>> Best regards, >>>> >>>> Tamas >>>> >>>> >>>> 2008/8/19 Mike Leahy : >>>>> Hello list, >>>>> >>>>> I'm wondering if anyone can help me figure out a problem I'm having >>>>> with >>>>> corrupted output from from a tiled geotiff dataset I'm using in a >>>>> ka-Map >>>>> environment. You can see what's happening to the imagery here: >>>>> http://img527.imageshack.us/my.php?image=corrupthd1.png >>>>> >>>>> This generally happens when I'm zoomed in fairly close, and usually >>>>> with >>>>> this high-resolution image dataset. However, I can get corrupted >>>>> output >>>>> for >>>>> other raster datasets (all geotiff, but not always tiled). It >>>>> seems to >>>>> happen when the machine is processing most intensively (i.e., usually >>>>> when >>>>> the imagery is being rendered by ka-Map). It also seems to be >>>>> limited to >>>>> the laptop I am using, which is running F7-x86_64. In contrast, I >>>>> have >>>>> an >>>>> actual server (F8-x86_64), which has a virtually identical setup (with >>>>> respect to MapServer and its various dependencies), but with lots more >>>>> cpu >>>>> cores and ram, and it's having no trouble at all (as far as I have >>>>> noticed). >>>>> >>>>> The corruption in the output from the same application my laptop is >>>>> not >>>>> always the same - if I clear the cache for ka-Map and re-render the >>>>> images, >>>>> I'll get similar artifacts appearing in the output (red, green, blue >>>>> and/or >>>>> black rectangles), but they will vary in size and location. It >>>>> happens >>>>> for >>>>> both GD/AGG drivers, and JPEG/PNG output formats. >>>>> >>>>> Until now, I figured it was just a problem with limited memory on my >>>>> laptop >>>>> (it was always around 100% when rendering this imagery on the web >>>>> service >>>>> + >>>>> viewing the application in a browser), but now I've upgraded the ram - >>>>> there's plenty of spare room and I'm still getting the same >>>>> problem. I >>>>> just >>>>> finished upgrading Gdal from 1.5.0 to 1.5.2, and that didn't help any. >>>>> >>>>> Basically, the only real differences I can think of between my >>>>> laptop and >>>>> my >>>>> server are the number of cpu cores (1 on my laptop vs. 8 on the >>>>> server), >>>>> and >>>>> possibly the versions of some of the underlying libraries in the >>>>> system. >>>>> Does anyone know where I should start looking to find the cause of >>>>> this? >>>>> Or perhaps somebody recognizes this problem, and knows what I >>>>> might be >>>>> doing wrong... >>>>> >>>>> Thanks for any suggestions, >>>>> Mike >>>>> >>>>> _______________________________________________ >>>>> mapserver-users mailing list >>>>> mapserver-users at lists.osgeo.org >>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>>>> >> > From subha at gslab.com Wed Aug 20 08:30:00 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Wed, 20 Aug 2008 21:00:00 +0530 Subject: [mapserver-users] Using mapserver with EPSG:900913 Message-ID: <48AC3878.7030301@gslab.com> Hi : We are building a map based web portal using openlayers ,UMN mapserver[5.0.2] and postgis DB.We use google as the base map through openlayers.We need to overlay our custom layers from the db on top of this base map, for that we are using Mapserver (is run on a FC7 linux machine). It is observed that by default openlayers converts google projection [900913] to EPSG:4326 when the base map is fetched. Now when we try to overlay an image that the mapserver generates, there is a mismatch on the base map, though mapserver uses epsg::4326. After searching over the internet theere seems to be only one solution which is displaying the base map itself in epsg:900913 and emit the mapserver image also in the same projection. The problem is we are not able to generate an image through mapserver in epsg::900913. We have taken following measures untill now : 1> For using epsg:900913 projection in mapserver, we have added following entry in the /usr/local/share/proj/epsg file.[proj version 4.6] "<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <>" 2> We have added following entry in the "in the spatial_ref_sys table in postgis DB. "900913 ,'EPSG',900913,'GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563,AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.017453292519943295], AXIS["Longitude", EAST], AXIS["Latitude", NORTH],AUTHORITY["EPSG","4326"]], PROJECTION["Mercator_1SP"],PARAMETER["semi_minor", 6378137.0], PARAMETER["latitude_of_origin",0.0], PARAMETER["central_meridian", 0.0], PARAMETER["scale_factor",1.0], PARAMETER["false_easting", 0.0], PARAMETER["false_northing", 0.0],UNIT["m", 1.0], AXIS["x", EAST], AXIS["y", NORTH],AUTHORITY["EPSG","900913"]] |','+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs'); The mapfile is as follows: (With this, We get a blank image without any exception.) MAP NAME MAP_POINTS SIZE 725 800 IMAGETYPE PNG EXTENT 6679169.446666667 -7.081154550627918 11131949.077777777 4865942.278825832 WEB METADATA wms_srs "EPSG:4326 EPSG:900913" END END PROJECTION "init=epsg:900913" END LAYER CONNECTIONTYPE postgis NAME indiastates CONNECTION "user=postgres dbname=test host=localhost" TYPE POINT STATUS DEFAULT #DATA "topology from states" DATA "topology from india_states using unique id using SRID -1" CLASS COLOR 255 0 0 END END END The client (openlayer) code is as follows : options = { projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326"), units: "m", maxResolution: 156543.0339, maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508.34) }; map = new OpenLayers.Map('map', options); var gphy = new OpenLayers.Layer.Google("Google Physical",{type: G_PHYSICAL_MAP,'sphericalMercator': true}); map.addLayers(gphy); var lonLat = new OpenLayers.LonLat(82, 23) ; lonLat.transform(map.displayProjection,map.getProjectionObject()); map.setCenter(lonLat,5); var wms ; wms = new OpenLayers.Layer.WMS( layername, "http://localhost/cgi-bin/mapserv?", { map: 'demo.map', projection:"EPSG:900913", transparent: 'true', layers: 'indiastates', format: 'image/png'},{singleTile: 'true'} ); map.addLayer(twms1); Can anyone help us in any way? Also, We have tried overlaying layer fetched from our map server on different basemaps from (meta carta and tera pages) and have found it overlays perfectly So clearly there is is problem overlaying on google map through openlayers in epsg : 4326. Thanks and sorry for the long mail. Expecting a reply. Subha. From jmckenna at gatewaygeomatics.com Wed Aug 20 08:43:09 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Wed, 20 Aug 2008 08:43:09 -0700 Subject: [mapserver-users] Using space in layer's name? In-Reply-To: <9830.2691.qm@web56109.mail.re3.yahoo.com> References: <9830.2691.qm@web56109.mail.re3.yahoo.com> Message-ID: <48AC3B8D.80205@gatewaygeomatics.com> Jukka is right, layernames with spaces will throw warnings in a WMS GetCapabilities request. Advice: never use spaces in a layername, period. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ kreshna_iceheart at yahoo.com wrote: > Er, nope. I'm not using WMS. > > > --- On Wed, 8/20/08, Rahkonen Jukka wrote: > >> From: Rahkonen Jukka >> Subject: Re: [mapserver-users] Using space in layer's name? >> To: kreshna_iceheart at yahoo.com, mapserver-users at lists.osgeo.org >> Date: Wednesday, August 20, 2008, 2:46 AM >> Hi, >> >> Are you using WMS?In the document "WMS servers with >> MapServer" >> http://mapserver.gis.umn.edu/docs/howto/wms_server >> reads: >> # >> Layer Name and wms_title metadata: >> Every individual layer needs its own unique name and title. >> Layer names are also used in GetMap and GetFeatureInfo >> requests to refer to layers that should be included in the >> map output and in the query. Layer names must start with a >> letter when setting up a WMS server (layer names should not >> start with a digit or have spaces in them). >> >> I believe that spaces in layer names are not allowed by WMS >> standard, but I may be wrong. I do also believe that >> MapServer cgi supports them, at least I can find example map >> files with layers named like "my layer". >> >> -Jukka Rahkonen- >> >>> -----Alkuper?inen viesti----- >>> L?hett?j?: mapserver-users-bounces at lists.osgeo.org >>> [mailto:mapserver-users-bounces at lists.osgeo.org] >> Puolesta >>> kreshna_iceheart at yahoo.com >>> L?hetetty: 20. elokuuta 2008 8:40 >>> Vastaanottaja: mapserver-users at lists.osgeo.org >>> Aihe: [mapserver-users] Using space in layer's >> name? >>> I'm using MapServer 5.0.2. >>> >>> I have two layers: the first is named "jaringan >> ipal dan >>> iplt" (layer name contains space character), >> while the second >>> is named "jaringan_telepon" (does not >> contain space). >>> I am using the [layers] parameter to dynamically pass >> my >>> layers to another template for printing purpose. Alas, >>> because one layer contains space, that particular >> layer is >>> not passed at all. Here is the contents of the >> [layers] parameter: >>> >> &layers=jaringan%20ipal%20dan%20iplt%20jaringan_telepon >>> The layer "jaringan_telepon" is displayed >> correctly, but the >>> layer "jaringan ipal dan iplt" fails to >> display, because >>> MapServer takes the space character (%20) as >> delimiter. >>> I tried to use the parameter [layers_esc] instead, and >> here >>> is the contents of the [layers_esc]: >>> >>> &layers=jaringan+ipal+dan+iplt+jaringan%5Ftelepon >>> >>> Here, the layer "jaringan ipal dan iplt" >> still fails to >>> display, because MapServer replaces the space with >> "+" (plus >>> sign), which is also used as delimiter. >>> >>> Thus, not even [layers_esc] allows us to use space >> character >>> in layer's name. Is there any other way to use >> layer with >>> space character in its name, then? >>> >>> Thanks, >>> -Kresh >>> From aaime at opengeo.org Wed Aug 20 08:59:31 2008 From: aaime at opengeo.org (Andrea Aime) Date: Wed, 20 Aug 2008 17:59:31 +0200 Subject: [mapserver-users] FastCGI issues with MapServer 5.2, Ubuntu 8.04 Message-ID: <48AC3F63.1040403@opengeo.org> Hi, I'm struggling a trying to configure MapServer 5.2 for the performance comparison presentation that we'll hold at FOSS4G 2008 (http://conference.osgeo.org/index.php/foss4g/2008/paper/view/256) In particular, no matter what I do, a single, long running mapserv process seems to be handling all of the requests coming down the pipe, regardless of how many client threads I'm using to hit the server. Some details on what I've done so far follow. I've followed the instructions on these pages to build MapServer from sources along with support with fastcgi and AGG: http://mapserver.gis.umn.edu/docs/howto/mapserverubuntu http://mapserver.gis.umn.edu/docs/howto/fastcgi I then copied a mapserv in /usr/lib/cgi-bin, and then made a copy named mapserver.fcgi to be able and test with both fastcgi enabled and not. Apache wise, the /etc/apache/mods-available/fastcgi.conf contains: AddHandler fastcgi-script .fcgi #FastCgiWrapper /usr/lib/apache2/suexec FastCgiIpcDir /var/lib/apache2/fastcgi FastCgiConfig -initial-env PROJ_LIB=/usr/local/share/proj -initial-env LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/pgsql/lib -appConnTimeout 60 -idle-timeout 60 -init-start-delay 1 -minProcesses 2 -maxClassProcesses 20 -startDelay 5 and the /etc/apache/sites-enabled/default contains: NameVirtualHost * ServerAdmin webmaster at localhost DocumentRoot /var/www/ Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On Alias /doc/ "/usr/share/doc/" Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 If I hit cgi-bin/mapserv a mapserv executable is created and destroyed per request, which is what I expect, but if I hit cgi-bin/mapserv.fcgi a single process is created, which never dies (that's ok) and that serves alone every incoming request, meaning the second core of my cpu is not working at all. Of course this is bad, it hampers scalability as the client threads used for testing go up. I've tried both with threaded and forked model for Apache itself, made no difference. Any suggestion? Cheers Andrea From rafael at opengeo.com.br Wed Aug 20 09:24:14 2008 From: rafael at opengeo.com.br (Rafael Almeida Fernandez Soto) Date: Wed, 20 Aug 2008 12:24:14 -0400 Subject: [mapserver-users] Using mapserver with EPSG:900913 In-Reply-To: <48AC3878.7030301@gslab.com> References: <48AC3878.7030301@gslab.com> Message-ID: <90a5e5b30808200924y17c9248fx9630ae7bfa879bb4@mail.gmail.com> Subha.. You need to insert a EPSG:900913 description code in PROJ4 config files and a row in spatial_ref_sys table in postgis DB. By default PROJ4 has not a 900013 projection reference. Try it! Best regards Rafael Soto 2008/8/20 Subha Ramakrishnan > Hi : > We are building a map based web portal using openlayers ,UMN > mapserver[5.0.2] and postgis DB.We use google as the base map through > openlayers.We need to overlay our custom layers from the db on top of this > base map, for that we are using Mapserver (is run on a FC7 linux machine). > It is observed that by default openlayers converts google projection > [900913] to EPSG:4326 when the base map is fetched. > > Now when we try to overlay an image that the mapserver generates, there is > a mismatch on the base map, though mapserver uses epsg::4326. After > searching over the internet theere seems to be only one solution which is > displaying the base map itself in epsg:900913 and emit the mapserver image > also in the same projection. The problem is we are not able to generate an > image through mapserver in epsg::900913. > > We have taken following measures untill now : > > 1> For using epsg:900913 projection in mapserver, we have added following > entry in the /usr/local/share/proj/epsg file.[proj version 4.6] > "<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 > +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <>" 2> We have added > following entry in the "in the spatial_ref_sys table in postgis DB. > "900913 ,'EPSG',900913,'GEOGCS["WGS 84", DATUM["World Geodetic System > 1984", SPHEROID["WGS 84", 6378137.0, > 298.257223563,AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich", 0.0, > AUTHORITY["EPSG","8901"]], UNIT["degree",0.017453292519943295], > AXIS["Longitude", EAST], AXIS["Latitude", NORTH],AUTHORITY["EPSG","4326"]], > PROJECTION["Mercator_1SP"],PARAMETER["semi_minor", 6378137.0], > PARAMETER["latitude_of_origin",0.0], PARAMETER["central_meridian", 0.0], > PARAMETER["scale_factor",1.0], PARAMETER["false_easting", 0.0], > PARAMETER["false_northing", 0.0],UNIT["m", 1.0], AXIS["x", EAST], AXIS["y", > NORTH],AUTHORITY["EPSG","900913"]] |','+proj=merc +a=6378137 +b=6378137 > +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null > +no_defs'); The mapfile is as follows: (With this, We get a blank image > without any exception.) > MAP > NAME MAP_POINTS > SIZE 725 800 > IMAGETYPE PNG > EXTENT 6679169.446666667 -7.081154550627918 11131949.077777777 > 4865942.278825832 > WEB > METADATA > wms_srs "EPSG:4326 EPSG:900913" > END > END > PROJECTION > "init=epsg:900913" > END > LAYER > CONNECTIONTYPE postgis > NAME indiastates > CONNECTION "user=postgres dbname=test host=localhost" > TYPE POINT > STATUS DEFAULT > #DATA "topology from states" > DATA "topology from india_states using unique id using SRID -1" > CLASS > COLOR 255 0 0 > END > END > END > > The client (openlayer) code is as follows : > options = { > projection: new OpenLayers.Projection("EPSG:900913"), > displayProjection: new OpenLayers.Projection("EPSG:4326"), > units: "m", > maxResolution: 156543.0339, > maxExtent: new OpenLayers.Bounds(-20037508, -20037508, > 20037508, 20037508.34) > }; > map = new OpenLayers.Map('map', options); > var gphy = new OpenLayers.Layer.Google("Google Physical",{type: > G_PHYSICAL_MAP,'sphericalMercator': true}); map.addLayers(gphy); > var lonLat = new OpenLayers.LonLat(82, 23) ; > lonLat.transform(map.displayProjection,map.getProjectionObject()); > map.setCenter(lonLat,5); > var wms ; > wms = new OpenLayers.Layer.WMS( layername, > "http://localhost/cgi-bin/mapserv?", > { map: 'demo.map', > projection:"EPSG:900913", > transparent: 'true', layers: 'indiastates', > format: 'image/png'},{singleTile: 'true'} ); > map.addLayer(twms1); > > Can anyone help us in any way? > Also, > We have tried overlaying layer fetched from our map server on > different basemaps from (meta carta and tera pages) and have found it > overlays perfectly So clearly there is is problem overlaying on google map > through openlayers in epsg : 4326. > Thanks and sorry for the long mail. > Expecting a reply. > > Subha. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- RAFAEL Almeida Fernandez Soto :: rafael at opengeo.com.br Consultant in FOSS GIS :: 55 21 2518-6233 :: 55 71 8802-0600 OpenGEO :: On-demand training and solutions :: www.opengeo.com.br GEO Livre community:: Because Geoinformation should be free :: www.geolivre.org.br Be free by using Free Software, such as MapServer, PostgreSQL/PostGIS, gvSIG... -------------- next part -------------- An HTML attachment was scrubbed... URL: From julieknoll at gmail.com Wed Aug 20 10:23:27 2008 From: julieknoll at gmail.com (Julie Knoll) Date: Wed, 20 Aug 2008 12:23:27 -0500 Subject: [mapserver-users] adding a shape Message-ID: How do I add a new polygon to a layer using php mapscript? -------------- next part -------------- An HTML attachment was scrubbed... URL: From subha at gslab.com Wed Aug 20 22:08:37 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Thu, 21 Aug 2008 10:38:37 +0530 Subject: [mapserver-users] Using mapserver with EPSG:900913 In-Reply-To: <90a5e5b30808200924y17c9248fx9630ae7bfa879bb4@mail.gmail.com> References: <48AC3878.7030301@gslab.com> <90a5e5b30808200924y17c9248fx9630ae7bfa879bb4@mail.gmail.com> Message-ID: <48ACF855.4090607@gslab.com> Hi Rafael, As mentioned in my mail, i've added "*<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <>*" in the */usr/local/share/proj/epsg* file. I've also added a row "900913 ,'EPSG',900913,'GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563,AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.017453292519943295], AXIS["Longitude", EAST], AXIS["Latitude", NORTH],AUTHORITY["EPSG","4326"]], PROJECTION["Mercator_1SP"],PARAMETER["semi_minor", 6378137.0], PARAMETER["latitude_of_origin",0.0], PARAMETER["central_meridian", 0.0], PARAMETER["scale_factor",1.0], PARAMETER["false_easting", 0.0], PARAMETER["false_northing", 0.0],UNIT["m", 1.0], AXIS["x", EAST], AXIS["y", NORTH],AUTHORITY["EPSG","900913"]] |','+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs'); for the same in the *spatial_ref_sys* table in the postgis DB. Is there anything else that i've to configure? Thanks. Subha Rafael Almeida Fernandez Soto wrote: > Subha.. > > You need to insert a EPSG:900913 description code in PROJ4 config > files and a row in spatial_ref_sys table in postgis DB. By default > PROJ4 has not a 900013 projection reference. > > Try it! > > Best regards > > Rafael Soto > > 2008/8/20 Subha Ramakrishnan > > > Hi : > We are building a map based web portal using openlayers ,UMN > mapserver[5.0.2] and postgis DB.We use google as the base map > through openlayers.We need to overlay our custom layers from the > db on top of this base map, for that we are using Mapserver (is > run on a FC7 linux machine). It is observed that by default > openlayers converts google projection [900913] to EPSG:4326 when > the base map is fetched. > > Now when we try to overlay an image that the mapserver generates, > there is a mismatch on the base map, though mapserver uses > epsg::4326. After searching over the internet theere seems to be > only one solution which is displaying the base map itself in > epsg:900913 and emit the mapserver image also in the same > projection. The problem is we are not able to generate an image > through mapserver in epsg::900913. > > We have taken following measures untill now : > > 1> For using epsg:900913 projection in mapserver, we have added > following entry in the /usr/local/share/proj/epsg file.[proj > version 4.6] > "<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 > +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <>" 2> > We have added following entry in the "in the spatial_ref_sys table > in postgis DB. > "900913 ,'EPSG',900913,'GEOGCS["WGS 84", DATUM["World Geodetic > System 1984", SPHEROID["WGS 84", 6378137.0, > 298.257223563,AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich", 0.0, > AUTHORITY["EPSG","8901"]], UNIT["degree",0.017453292519943295], > AXIS["Longitude", EAST], AXIS["Latitude", > NORTH],AUTHORITY["EPSG","4326"]], > PROJECTION["Mercator_1SP"],PARAMETER["semi_minor", 6378137.0], > PARAMETER["latitude_of_origin",0.0], PARAMETER["central_meridian", > 0.0], PARAMETER["scale_factor",1.0], PARAMETER["false_easting", > 0.0], PARAMETER["false_northing", 0.0],UNIT["m", 1.0], AXIS["x", > EAST], AXIS["y", NORTH],AUTHORITY["EPSG","900913"]] |','+proj=merc > +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 > +k=1.0 +units=m +nadgrids=@null +no_defs'); The mapfile is as > follows: (With this, We get a blank image without any exception.) > MAP > NAME MAP_POINTS > SIZE 725 800 > IMAGETYPE PNG > EXTENT 6679169.446666667 -7.081154550627918 11131949.077777777 > 4865942.278825832 > WEB > METADATA > wms_srs "EPSG:4326 EPSG:900913" > END > END > PROJECTION > "init=epsg:900913" > END > LAYER > CONNECTIONTYPE postgis > NAME indiastates > CONNECTION "user=postgres dbname=test host=localhost" > TYPE POINT > STATUS DEFAULT > #DATA "topology from states" > DATA "topology from india_states using unique id using SRID -1" > CLASS > COLOR 255 0 0 > END > END > END > > The client (openlayer) code is as follows : > options = { > projection: new OpenLayers.Projection("EPSG:900913"), > displayProjection: new OpenLayers.Projection("EPSG:4326"), > units: "m", > maxResolution: 156543.0339, > maxExtent: new OpenLayers.Bounds(-20037508, -20037508, > 20037508, 20037508.34) > }; > map = new OpenLayers.Map('map', options); > var gphy = new OpenLayers.Layer.Google("Google > Physical",{type: G_PHYSICAL_MAP,'sphericalMercator': true}); > map.addLayers(gphy); > var lonLat = new OpenLayers.LonLat(82, 23) ; > > lonLat.transform(map.displayProjection,map.getProjectionObject()); > map.setCenter(lonLat,5); > var wms ; > wms = new OpenLayers.Layer.WMS( layername, > "http://localhost/cgi-bin/mapserv?", > { map: 'demo.map', > projection:"EPSG:900913", > transparent: 'true', layers: 'indiastates', > format: 'image/png'},{singleTile: 'true'} ); > map.addLayer(twms1); > > Can anyone help us in any way? > Also, > We have tried overlaying layer fetched from our map server > on different basemaps from (meta carta and tera pages) and have > found it overlays perfectly So clearly there is is problem > overlaying on google map through openlayers in epsg : 4326. > Thanks and sorry for the long mail. > Expecting a reply. > > Subha. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > RAFAEL Almeida Fernandez Soto :: rafael at opengeo.com.br > > Consultant in FOSS GIS :: 55 21 2518-6233 :: 55 71 8802-0600 > OpenGEO :: On-demand training and solutions :: www.opengeo.com.br > > GEO Livre community:: Because Geoinformation should be free :: > www.geolivre.org.br > Be free by using Free Software, such as MapServer, PostgreSQL/PostGIS, > gvSIG... > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* , and is > believed to be clean. From subha at gslab.com Thu Aug 21 05:11:46 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Thu, 21 Aug 2008 17:41:46 +0530 Subject: [mapserver-users] Using mapserver with EPSG:900913 In-Reply-To: <90a5e5b30808200924y17c9248fx9630ae7bfa879bb4@mail.gmail.com> References: <48AC3878.7030301@gslab.com> <90a5e5b30808200924y17c9248fx9630ae7bfa879bb4@mail.gmail.com> Message-ID: <48AD5B82.8090604@gslab.com> Hi, Could you also check the map file and tell me if i am making a mistake there? This is the map file i am using. MAP NAME MAP_POINTS SIZE 725 800 IMAGETYPE PNG EXTENT 6679169.446666667 -7.081154550627918 11131949.077777777 4865942.278825832 WEB METADATA wms_srs "EPSG:4326 EPSG:900913" END END PROJECTION "init=epsg:900913" END LAYER CONNECTIONTYPE postgis NAME indiastates CONNECTION "user=postgres dbname=test host=localhost" TYPE POINT STATUS DEFAULT #DATA "topology from states" DATA "topology from india_states using unique id using SRID -1" CLASS COLOR 255 0 0 END END END Is it possible for you to share your map file if you have any? Regards, Subha Rafael Almeida Fernandez Soto wrote: > Subha.. > > You need to insert a EPSG:900913 description code in PROJ4 config > files and a row in spatial_ref_sys table in postgis DB. By default > PROJ4 has not a 900013 projection reference. > > Try it! > > Best regards > > Rafael Soto > > 2008/8/20 Subha Ramakrishnan > > > Hi : > We are building a map based web portal using openlayers ,UMN > mapserver[5.0.2] and postgis DB.We use google as the base map > through openlayers.We need to overlay our custom layers from the > db on top of this base map, for that we are using Mapserver (is > run on a FC7 linux machine). It is observed that by default > openlayers converts google projection [900913] to EPSG:4326 when > the base map is fetched. > > Now when we try to overlay an image that the mapserver generates, > there is a mismatch on the base map, though mapserver uses > epsg::4326. After searching over the internet theere seems to be > only one solution which is displaying the base map itself in > epsg:900913 and emit the mapserver image also in the same > projection. The problem is we are not able to generate an image > through mapserver in epsg::900913. > > We have taken following measures untill now : > > 1> For using epsg:900913 projection in mapserver, we have added > following entry in the /usr/local/share/proj/epsg file.[proj > version 4.6] > "<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 > +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <>" 2> > We have added following entry in the "in the spatial_ref_sys table > in postgis DB. > "900913 ,'EPSG',900913,'GEOGCS["WGS 84", DATUM["World Geodetic > System 1984", SPHEROID["WGS 84", 6378137.0, > 298.257223563,AUTHORITY["EPSG","7030"]], > AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich", 0.0, > AUTHORITY["EPSG","8901"]], UNIT["degree",0.017453292519943295], > AXIS["Longitude", EAST], AXIS["Latitude", > NORTH],AUTHORITY["EPSG","4326"]], > PROJECTION["Mercator_1SP"],PARAMETER["semi_minor", 6378137.0], > PARAMETER["latitude_of_origin",0.0], PARAMETER["central_meridian", > 0.0], PARAMETER["scale_factor",1.0], PARAMETER["false_easting", > 0.0], PARAMETER["false_northing", 0.0],UNIT["m", 1.0], AXIS["x", > EAST], AXIS["y", NORTH],AUTHORITY["EPSG","900913"]] |','+proj=merc > +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 > +k=1.0 +units=m +nadgrids=@null +no_defs'); The mapfile is as > follows: (With this, We get a blank image without any exception.) > MAP > NAME MAP_POINTS > SIZE 725 800 > IMAGETYPE PNG > EXTENT 6679169.446666667 -7.081154550627918 11131949.077777777 > 4865942.278825832 > WEB > METADATA > wms_srs "EPSG:4326 EPSG:900913" > END > END > PROJECTION > "init=epsg:900913" > END > LAYER > CONNECTIONTYPE postgis > NAME indiastates > CONNECTION "user=postgres dbname=test host=localhost" > TYPE POINT > STATUS DEFAULT > #DATA "topology from states" > DATA "topology from india_states using unique id using SRID -1" > CLASS > COLOR 255 0 0 > END > END > END > > The client (openlayer) code is as follows : > options = { > projection: new OpenLayers.Projection("EPSG:900913"), > displayProjection: new OpenLayers.Projection("EPSG:4326"), > units: "m", > maxResolution: 156543.0339, > maxExtent: new OpenLayers.Bounds(-20037508, -20037508, > 20037508, 20037508.34) > }; > map = new OpenLayers.Map('map', options); > var gphy = new OpenLayers.Layer.Google("Google > Physical",{type: G_PHYSICAL_MAP,'sphericalMercator': true}); > map.addLayers(gphy); > var lonLat = new OpenLayers.LonLat(82, 23) ; > > lonLat.transform(map.displayProjection,map.getProjectionObject()); > map.setCenter(lonLat,5); > var wms ; > wms = new OpenLayers.Layer.WMS( layername, > "http://localhost/cgi-bin/mapserv?", > { map: 'demo.map', > projection:"EPSG:900913", > transparent: 'true', layers: 'indiastates', > format: 'image/png'},{singleTile: 'true'} ); > map.addLayer(twms1); > > Can anyone help us in any way? > Also, > We have tried overlaying layer fetched from our map server > on different basemaps from (meta carta and tera pages) and have > found it overlays perfectly So clearly there is is problem > overlaying on google map through openlayers in epsg : 4326. > Thanks and sorry for the long mail. > Expecting a reply. > > Subha. > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > RAFAEL Almeida Fernandez Soto :: rafael at opengeo.com.br > > Consultant in FOSS GIS :: 55 21 2518-6233 :: 55 71 8802-0600 > OpenGEO :: On-demand training and solutions :: www.opengeo.com.br > > GEO Livre community:: Because Geoinformation should be free :: > www.geolivre.org.br > Be free by using Free Software, such as MapServer, PostgreSQL/PostGIS, > gvSIG... > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* , and is > believed to be clean. From ritesh.linux at gmail.com Thu Aug 21 06:07:36 2008 From: ritesh.linux at gmail.com (ritesh ambastha) Date: Thu, 21 Aug 2008 18:37:36 +0530 Subject: [mapserver-users] Using mapserver with EPSG:900913 In-Reply-To: <48AD5B82.8090604@gslab.com> References: <48AC3878.7030301@gslab.com> <90a5e5b30808200924y17c9248fx9630ae7bfa879bb4@mail.gmail.com> <48AD5B82.8090604@gslab.com> Message-ID: <135fc07d0808210607j49addbf6k46c05300bd5e6314@mail.gmail.com> I am not sure this will help or not.... I found two epsg files in my /usr/local/share/proj directory: epsg EPSG (in caps) I modify the values in both the files for my use. You can also try the same Regards, Ritesh Ambastha /usr/local/share/proj/epsg On Thu, Aug 21, 2008 at 5:41 PM, Subha Ramakrishnan wrote: > Hi, > Could you also check the map file and tell me if i am making a mistake > there? > This is the map file i am using. > > MAP > NAME MAP_POINTS > SIZE 725 800 > IMAGETYPE PNG > EXTENT 6679169.446666667 -7.081154550627918 11131949.077777777 > 4865942.278825832 > WEB > METADATA > wms_srs "EPSG:4326 EPSG:900913" > END > END > PROJECTION > "init=epsg:900913" > END > LAYER > CONNECTIONTYPE postgis > NAME indiastates > CONNECTION "user=postgres dbname=test host=localhost" > TYPE POINT > STATUS DEFAULT > #DATA "topology from states" > DATA "topology from india_states using unique id using SRID -1" > CLASS > COLOR 255 0 0 > END > END > END > > Is it possible for you to share your map file if you have any? > > Regards, > Subha > > Rafael Almeida Fernandez Soto wrote: > >> Subha.. >> >> You need to insert a EPSG:900913 description code in PROJ4 config files >> and a row in spatial_ref_sys table in postgis DB. By default PROJ4 has not a >> 900013 projection reference. >> >> Try it! >> >> Best regards >> >> Rafael Soto >> >> 2008/8/20 Subha Ramakrishnan > >> >> >> Hi : >> We are building a map based web portal using openlayers ,UMN >> mapserver[5.0.2] and postgis DB.We use google as the base map >> through openlayers.We need to overlay our custom layers from the >> db on top of this base map, for that we are using Mapserver (is >> run on a FC7 linux machine). It is observed that by default >> openlayers converts google projection [900913] to EPSG:4326 when >> the base map is fetched. >> >> Now when we try to overlay an image that the mapserver generates, >> there is a mismatch on the base map, though mapserver uses >> epsg::4326. After searching over the internet theere seems to be >> only one solution which is displaying the base map itself in >> epsg:900913 and emit the mapserver image also in the same >> projection. The problem is we are not able to generate an image >> through mapserver in epsg::900913. >> >> We have taken following measures untill now : >> >> 1> For using epsg:900913 projection in mapserver, we have added >> following entry in the /usr/local/share/proj/epsg file.[proj >> version 4.6] >> "<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 >> +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <>" 2> >> We have added following entry in the "in the spatial_ref_sys table >> in postgis DB. >> "900913 ,'EPSG',900913,'GEOGCS["WGS 84", DATUM["World Geodetic >> System 1984", SPHEROID["WGS 84", 6378137.0, >> 298.257223563,AUTHORITY["EPSG","7030"]], >> AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich", 0.0, >> AUTHORITY["EPSG","8901"]], UNIT["degree",0.017453292519943295], >> AXIS["Longitude", EAST], AXIS["Latitude", >> NORTH],AUTHORITY["EPSG","4326"]], >> PROJECTION["Mercator_1SP"],PARAMETER["semi_minor", 6378137.0], >> PARAMETER["latitude_of_origin",0.0], PARAMETER["central_meridian", >> 0.0], PARAMETER["scale_factor",1.0], PARAMETER["false_easting", >> 0.0], PARAMETER["false_northing", 0.0],UNIT["m", 1.0], AXIS["x", >> EAST], AXIS["y", NORTH],AUTHORITY["EPSG","900913"]] |','+proj=merc >> +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 >> +k=1.0 +units=m +nadgrids=@null +no_defs'); The mapfile is as >> follows: (With this, We get a blank image without any exception.) >> MAP >> NAME MAP_POINTS >> SIZE 725 800 >> IMAGETYPE PNG >> EXTENT 6679169.446666667 -7.081154550627918 11131949.077777777 >> 4865942.278825832 >> WEB >> METADATA >> wms_srs "EPSG:4326 EPSG:900913" >> END >> END >> PROJECTION >> "init=epsg:900913" >> END >> LAYER >> CONNECTIONTYPE postgis >> NAME indiastates >> CONNECTION "user=postgres dbname=test host=localhost" >> TYPE POINT >> STATUS DEFAULT >> #DATA "topology from states" >> DATA "topology from india_states using unique id using SRID -1" >> CLASS >> COLOR 255 0 0 >> END >> END >> END >> >> The client (openlayer) code is as follows : >> options = { >> projection: new OpenLayers.Projection("EPSG:900913"), >> displayProjection: new OpenLayers.Projection("EPSG:4326"), >> units: "m", >> maxResolution: 156543.0339, >> maxExtent: new OpenLayers.Bounds(-20037508, -20037508, >> 20037508, 20037508.34) >> }; >> map = new OpenLayers.Map('map', options); >> var gphy = new OpenLayers.Layer.Google("Google >> Physical",{type: G_PHYSICAL_MAP,'sphericalMercator': true}); >> map.addLayers(gphy); >> var lonLat = new OpenLayers.LonLat(82, 23) ; >> >> lonLat.transform(map.displayProjection,map.getProjectionObject()); >> map.setCenter(lonLat,5); >> var wms ; >> wms = new OpenLayers.Layer.WMS( layername, >> "http://localhost/cgi-bin/mapserv?", >> { map: 'demo.map', >> projection:"EPSG:900913", >> transparent: 'true', layers: 'indiastates', >> format: 'image/png'},{singleTile: 'true'} ); >> map.addLayer(twms1); >> >> Can anyone help us in any way? >> Also, >> We have tried overlaying layer fetched from our map server >> on different basemaps from (meta carta and tera pages) and have >> found it overlays perfectly So clearly there is is problem >> overlaying on google map through openlayers in epsg : 4326. >> Thanks and sorry for the long mail. >> Expecting a reply. >> >> Subha. >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> >> >> >> -- >> RAFAEL Almeida Fernandez Soto :: rafael at opengeo.com.br > rafael at opengeo.com.br> >> Consultant in FOSS GIS :: 55 21 2518-6233 :: 55 71 8802-0600 >> OpenGEO :: On-demand training and solutions :: www.opengeo.com.br < >> http://www.opengeo.com.br> >> GEO Livre community:: Because Geoinformation should be free :: >> www.geolivre.org.br >> Be free by using Free Software, such as MapServer, PostgreSQL/PostGIS, >> gvSIG... >> >> -- >> This message has been scanned for viruses and >> dangerous content by *MailScanner* , and is >> believed to be clean. >> > > _______________________________________________ > > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at state.mn.us Thu Aug 21 08:23:23 2008 From: David.Fawcett at state.mn.us (Fawcett, David) Date: Thu, 21 Aug 2008 10:23:23 -0500 Subject: [MAPSERVER-USERS] epsg code for 'UTM 43 North' In-Reply-To: <19054466.post@talk.nabble.com> Message-ID: <6246727221874A4FB8D3F9BBC37D9BD5021FBFE6@s-sp22.pca.state.mn.us> If your data is using WGS84 as the ellipsoid/datum, the code would be 32643. Here is a snipped from the data file used by proj4. # WGS 84 / UTM zone 43N <32643> +proj=utm +zone=43 +ellps=WGS84 +datum=WGS84 +units=m +no_defs no_defs <> David. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ritesh Ambastha Sent: Tuesday, August 19, 2008 11:58 AM To: mapserver-users at lists.osgeo.org Subject: [MAPSERVER-USERS] epsg code for 'UTM 43 North' How can I calculate exact EPSG code for the date projected in 'UTM 43 North' ? I just got few clues from this link : http://spatialreference.org/ref/epsg/?search=UTM&srtext=Search Thanks, Ritesh Ambastha -- View this message in context: http://www.nabble.com/epsg-code-for-%27UTM-43-North%27-tp19054466p190544 66.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From aaime at opengeo.org Thu Aug 21 08:39:14 2008 From: aaime at opengeo.org (Andrea Aime) Date: Thu, 21 Aug 2008 17:39:14 +0200 Subject: [mapserver-users] FastCGI issues with MapServer 5.2, Ubuntu 8.04 In-Reply-To: <48AC3F63.1040403@opengeo.org> References: <48AC3F63.1040403@opengeo.org> Message-ID: <48AD8C22.9090503@opengeo.org> Andrea Aime ha scritto: > Hi, > I'm struggling a trying to configure MapServer 5.2 > for the performance comparison presentation that we'll > hold at FOSS4G 2008 > (http://conference.osgeo.org/index.php/foss4g/2008/paper/view/256) > > In particular, no matter what I do, a single, long running > mapserv process seems to be handling all of the requests > coming down the pipe, regardless of how many client threads > I'm using to hit the server. Some details on what I've > done so far follow. To answer myself, that was happening I added the PROCESSING "CLOSE_CONNECTION=DEFER" directive into a shapefile layer definition. It seems it's not exactly irrelevant, it's actually harmful (whilst it's beneficial, and works too, for postgis layers). When I removed it the fastcgi processes started to get spawn as configured in the fastcgi.conf file. Cheers Andrea From gemerson at WelshCo.com Thu Aug 21 11:01:29 2008 From: gemerson at WelshCo.com (Emerson, Gabe) Date: Thu, 21 Aug 2008 13:01:29 -0500 Subject: [mapserver-users] Maximum number of layers? In-Reply-To: <135fc07d0808210607j49addbf6k46c05300bd5e6314@mail.gmail.com> References: <48AC3878.7030301@gslab.com><90a5e5b30808200924y17c9248fx9630ae7bfa879bb4@mail.gmail.com><48AD5B82.8090604@gslab.com> <135fc07d0808210607j49addbf6k46c05300bd5e6314@mail.gmail.com> Message-ID: <348277DFCE9FF044B3812A6CF459CD37F64352@welshmail.welshco.com.local> Hello all, I'm running into an error when I try to use more than 64 layers in my map. I know the older versions of Mapserver could handle at least 100 layers, and I've read posts from people who currently use up to several hundred (I'm using v5.2.0) so I'm not sure what's going on. The error I get is: GCI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I have a couple hundred layers that I'd like to show. I can live with a limit of 200-300 if necessary, but 64 seems rather on the low side. The majority are points with pixmap symbols, but I also have some aerials, road vectors, and polygon vectors. I've tried this with different subsets of layers, so it doesn't seem to be any one layer or set of layers in particular causing the problem. 64 seems to be the maximum I can have enabled no matter what type they are. I initially thought this could be a problem with the rendering of the pixmaps, but I've tried changing a few symbols to vectors with the same result. I also considered that the legend was becoming too large, but when I have 64 layers on, adding one more causes the same error even if it's a layer with no legend entry. I am using POST to pass the layers from plain old HTML, GET acts the same way. As far as I can tell there's no hard limit for the size/length of text passed this way, and I'm not getting any size-exceeded errors. Does anyone have any suggestions on this? Thanks, -Gabe Emerson -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Thu Aug 21 11:17:36 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Thu, 21 Aug 2008 14:17:36 -0400 Subject: [mapserver-users] Maximum number of layers? In-Reply-To: <348277DFCE9FF044B3812A6CF459CD37F64352@welshmail.welshco.com.local> References: <48AC3878.7030301@gslab.com><90a5e5b30808200924y17c9248fx9630ae7bfa879bb4@mail.gmail.com><48AD5B82.8090604@gslab.com> <135fc07d0808210607j49addbf6k46c05300bd5e6314@mail.gmail.com> <348277DFCE9FF044B3812A6CF459CD37F64352@welshmail.welshco.com.local> Message-ID: <48ADB140.4090401@mapgears.com> There is no static limit on the number of layers in a map with MapServer 5.2. It must be something in one of your layers that causes MapServer to fail. Have a look at your Apache's error_log file, it may contain hints about the problem... you could also try enabling debug/logging and see if that triggers any useful info (see http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28/) Daniel Emerson, Gabe wrote: > Hello all, > > > > I?m running into an error when I try to use more than 64 layers in my > map. I know the older versions of Mapserver could handle at least 100 > layers, and I?ve read posts from people who currently use up to several > hundred (I?m using v5.2.0) so I?m not sure what?s going on. > > > > The error I get is: > > > > GCI Error > > The specified CGI application misbehaved by not returning a complete set > of HTTP headers. > > > > I have a couple hundred layers that I?d like to show. I can live with a > limit of 200-300 if necessary, but 64 seems rather on the low side. The > majority are points with pixmap symbols, but I also have some aerials, > road vectors, and polygon vectors. I?ve tried this with different > subsets of layers, so it doesn?t seem to be any one layer or set of > layers in particular causing the problem. 64 seems to be the maximum I > can have enabled no matter what type they are. > > > > I initially thought this could be a problem with the rendering of the > pixmaps, but I?ve tried changing a few symbols to vectors with the same > result. I also considered that the legend was becoming too large, but > when I have 64 layers on, adding one more causes the same error even if > it?s a layer with no legend entry. > > > > I am using POST to pass the layers from plain old HTML, GET acts the > same way. As far as I can tell there?s no hard limit for the size/length > of text passed this way, and I?m not getting any size-exceeded errors. > > > > Does anyone have any suggestions on this? > > > > Thanks, > > > > -Gabe Emerson > > > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From fsalas at geocuba.cu Thu Aug 21 12:49:25 2008 From: fsalas at geocuba.cu (fsalas) Date: Thu, 21 Aug 2008 14:49:25 -0500 Subject: [mapserver-users] problem with postgis an mapserver Message-ID: <015f01c903c7$2d21e0e0$cb01030a@deltha> Why? When i work with postgree 8.1 and postgis my projects mapserver is ok , but whhe i change to postgree 8.3 and postgis 1.3.3 I can't see my maps only a blank image bets regards salas ___________________________________ Dpto de Sistemas Inform?ticos Oficina Central Grupo Empresarial GEOCUBA Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus ---------------------------------------------------------------------- Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 995840 Definition date: 2008/08/21 MDAV version: 2.2.9 -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsalas at geocuba.cu Thu Aug 21 13:57:03 2008 From: fsalas at geocuba.cu (fsalas) Date: Thu, 21 Aug 2008 15:57:03 -0500 Subject: [mapserver-users] error with maplab and mapserver Message-ID: <001601c903d0$8a294090$cd01030a@deltha> hi, why in my maplab projects appears this error? Warning: [MapServer Error]: msCalculateScale(): Invalid image width or height. in C:\ms4w\apps\maplab-2.2\htdocs\common\wrapper\map_session.php on line 468 Warning: [MapServer Error]: msDrawMap(): Unable to initialize image. in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 469 Warning: [MapServer Error]: msPrepareImage(): Image dimensions not specified. in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 469 Warning: [MapServer Error]: msCalculateScale(): Invalid image width or height. in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 469 Fatal error: Call to a member function saveWebImage() on a non-object in C:\ms4w\apps\maplab-2.2\htdocs\mapedit\preview.php on line 474 Salas ___________________________________ Dpto de Sistemas Inform?ticos Oficina Central Grupo Empresarial GEOCUBA Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus ---------------------------------------------------------------------- Engine version: 4.0.1.14 Engine date: 2002/06/25 Definition count: 995840 Definition date: 2008/08/21 MDAV version: 2.2.9 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sacha.black at gmail.com Thu Aug 21 18:01:13 2008 From: sacha.black at gmail.com (Sacha Black) Date: Thu, 21 Aug 2008 18:01:13 -0700 Subject: [mapserver-users] date format? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBF36@s-sp22.pca.state.mn.us> References: <6246727221874A4FB8D3F9BBC37D9BD5021FBF36@s-sp22.pca.state.mn.us> Message-ID: Hi David, a belated thank you for this tip - I didn't think of trying to do it in the select statement. For the record here is the syntax I used: SELECT DATE_FORMAT(My_DATE_FieldName,'%W %M %D, %Y') ... etc. produces a nice date like: Monday September 20th, 2004 thanks again, Sacha On Wed, Jul 30, 2008 at 1:13 PM, Fawcett, David wrote: > Have you tried using a date format function in your SQL statement? > http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#func > tion_date-format > > David. > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Sacha > Black > Sent: Wednesday, July 30, 2008 3:07 PM > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] date format? > > > I've got point data in a MySQL database that I am displaying in my map. > I'd like to label the points with a date, but the date format stored in > the database looks like this: > > "2008-06-17 00:00:00" > > and we would like to put a label on the map in some kind of more user > friendly format (and omitting the time portion which we do not need).... > is this kind of re-formatting for labels possible in Mapserver? Prefer > not to create a new field in the DB as there are thousands of records... > > any ideas? > > sacha > > > Fri May 9 09:53:29 EDT 2008 > > Hi list, > > using a shapefile with a Date column, is it possible to change the date > format (string) that Mapserver will use in the WFS GetFeature output? > > Now it outputs: > > 19690101 > > whereas we would want 1969-01-01 > > Best regards, > Bart > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Tom.Kralidis at ec.gc.ca Thu Aug 21 18:59:13 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Thu, 21 Aug 2008 21:59:13 -0400 Subject: [mapserver-users] MapServer history Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF4BD@ecburexch1.ontario.int.ec.gc.ca> Interesting thread going on at http://lists.osgeo.org/pipermail/discuss/2008-August/004120.html I think it would be valuable to have this for MapServer. There would be initial effort, but it could be easily maintained over time (2-3 times per year/as needed). I'd be interested in helping out, or even coordinating, but this would depend on compilation and input from many in the MapServer community (users, developers, etc.). Any interest? ..Tom From gluker at scu.edu.au Thu Aug 21 22:36:05 2008 From: gluker at scu.edu.au (Greg Luker) Date: Fri, 22 Aug 2008 15:36:05 +1000 Subject: [mapserver-users] 5.2 problem - MySQL Message-ID: <200808220536.m7M5aZom030131@atom.scu.edu.au> Hi MapServer Users, I have just migrated from MapServer 4.10 to MapServer 5.2. I display points from a MySQL database (using OGRVRT select statement). A query (on the same database) that used to work fine with MapServer 4.10 now does not return anything from the database - no error message either. I click on a point and the header template is returned and displayed but nothing else, not even the footer template. (no changes to .map file or MySQL - mapserver.log says "normal execution") Anyone have any ideas? Thanks, Greg. Greg Luker GIS Lab Manager, Southern Cross University Lismore, AUSTRALIA. gluker at scu.edu.au phone 61 2 66203026 From isao.nasuno at ctc-g.co.jp Thu Aug 21 23:16:49 2008 From: isao.nasuno at ctc-g.co.jp (NASUNO Isao) Date: Fri, 22 Aug 2008 15:16:49 +0900 Subject: [mapserver-users] MULTIPOINT and POINT in same geometry column Message-ID: <48AE59D1.1050305@ctc-g.co.jp> Hello all, Is there any way to append 'MULTIPOINT' shape files and 'POINT' shape files into same table with a geometry column ? I guess the geometry column should be 'MULTIPOINT' geometry-type, and the 'POINT' shape should be translated 'MULTIPOINT' (but only one point in one record)in the appending process. Any suggestions ? I'm using - PostgreSQL 8.0.3 - PostGIS 1.1.3 - Mapserver 4.10 Thanks, Isao Nasuno From kreshna_iceheart at yahoo.com Thu Aug 21 23:21:34 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Thu, 21 Aug 2008 23:21:34 -0700 (PDT) Subject: [mapserver-users] Using space in layer's name? In-Reply-To: <25de2c7c0808200655j302d6521h7994741f67bcb916@mail.gmail.com> Message-ID: <718212.42459.qm@web56104.mail.re3.yahoo.com> Er, no. My layers do not contain capitals, only spaces. --- On Wed, 8/20/08, TC Haddad wrote: > From: TC Haddad > Subject: Re: [mapserver-users] Using space in layer's name? > To: kreshna_iceheart at yahoo.com > Date: Wednesday, August 20, 2008, 9:55 AM > It looks like you are using mapserver CGI .... if so I have > noticed > that passing layer names is sometimes case sensitive. > > Is it possible that your layer with spaces in the name also > has a > capital letter in the name that you are not using in the > URL string > that you are passing? > > Another idea is that you can insert a GROUP name for that > layer that > does not have a space, and then just call that layer in the > URL using > the GROUP name instead. That should avoid the problem > altogether. > (Also remember to use case sensitive for GROUP name). > > Tanya > > On Wed, Aug 20, 2008 at 12:00 AM, > kreshna_iceheart at yahoo.com > wrote: > > Er, nope. I'm not using WMS. > > > > > > --- On Wed, 8/20/08, Rahkonen Jukka > wrote: > > > >> From: Rahkonen Jukka > > >> Subject: Re: [mapserver-users] Using space in > layer's name? > >> To: kreshna_iceheart at yahoo.com, > mapserver-users at lists.osgeo.org > >> Date: Wednesday, August 20, 2008, 2:46 AM > >> Hi, > >> > >> Are you using WMS?In the document "WMS > servers with > >> MapServer" > >> http://mapserver.gis.umn.edu/docs/howto/wms_server > >> reads: > >> # > >> Layer Name and wms_title metadata: > >> Every individual layer needs its own unique name > and title. > >> Layer names are also used in GetMap and > GetFeatureInfo > >> requests to refer to layers that should be > included in the > >> map output and in the query. Layer names must > start with a > >> letter when setting up a WMS server (layer names > should not > >> start with a digit or have spaces in them). > >> > >> I believe that spaces in layer names are not > allowed by WMS > >> standard, but I may be wrong. I do also believe > that > >> MapServer cgi supports them, at least I can find > example map > >> files with layers named like "my layer". > >> > >> -Jukka Rahkonen- > >> > >> > -----Alkuper?inen viesti----- > >> > L?hett?j?: > mapserver-users-bounces at lists.osgeo.org > >> > > [mailto:mapserver-users-bounces at lists.osgeo.org] > >> Puolesta > >> > kreshna_iceheart at yahoo.com > >> > L?hetetty: 20. elokuuta 2008 8:40 > >> > Vastaanottaja: > mapserver-users at lists.osgeo.org > >> > Aihe: [mapserver-users] Using space in > layer's > >> name? > >> > > >> > I'm using MapServer 5.0.2. > >> > > >> > I have two layers: the first is named > "jaringan > >> ipal dan > >> > iplt" (layer name contains space > character), > >> while the second > >> > is named "jaringan_telepon" (does > not > >> contain space). > >> > > >> > I am using the [layers] parameter to > dynamically pass > >> my > >> > layers to another template for printing > purpose. Alas, > >> > >> > because one layer contains space, that > particular > >> layer is > >> > not passed at all. Here is the contents of > the > >> [layers] parameter: > >> > > >> > > >> > &layers=jaringan%20ipal%20dan%20iplt%20jaringan_telepon > >> > > >> > The layer "jaringan_telepon" is > displayed > >> correctly, but the > >> > layer "jaringan ipal dan iplt" > fails to > >> display, because > >> > MapServer takes the space character (%20) as > >> delimiter. > >> > > >> > I tried to use the parameter [layers_esc] > instead, and > >> here > >> > is the contents of the [layers_esc]: > >> > > >> > > &layers=jaringan+ipal+dan+iplt+jaringan%5Ftelepon > >> > > >> > Here, the layer "jaringan ipal dan > iplt" > >> still fails to > >> > display, because MapServer replaces the space > with > >> "+" (plus > >> > sign), which is also used as delimiter. > >> > > >> > Thus, not even [layers_esc] allows us to use > space > >> character > >> > in layer's name. Is there any other way > to use > >> layer with > >> > space character in its name, then? > >> > > >> > Thanks, > >> > -Kresh > >> > > >> > > >> > > >> > > >> > > >> > > >> > > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From subha at gslab.com Thu Aug 21 23:51:32 2008 From: subha at gslab.com (Subha Ramakrishnan) Date: Fri, 22 Aug 2008 12:21:32 +0530 Subject: [mapserver-users] MULTIPOINT and POINT in same geometry column In-Reply-To: <48AE59D1.1050305@ctc-g.co.jp> References: <48AE59D1.1050305@ctc-g.co.jp> Message-ID: <48AE61F4.70705@gslab.com> Hi, You can add a geometry column column of type geometry itself instead of fixing it as point or multipoint.This will support all types of geometry in one table. Regards, Subha NASUNO Isao wrote: > Hello all, > > Is there any way to append 'MULTIPOINT' shape files and 'POINT' shape files into > same table with a geometry column ? > > I guess the geometry column should be 'MULTIPOINT' geometry-type, > and the 'POINT' shape should be translated 'MULTIPOINT' (but only one point > in one record)in the appending process. > > Any suggestions ? > > I'm using > - PostgreSQL 8.0.3 > - PostGIS 1.1.3 > - Mapserver 4.10 > > Thanks, > > Isao Nasuno > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From isao.nasuno at ctc-g.co.jp Fri Aug 22 00:16:25 2008 From: isao.nasuno at ctc-g.co.jp (NASUNO Isao) Date: Fri, 22 Aug 2008 16:16:25 +0900 Subject: [mapserver-users] MULTIPOINT and POINT in same geometry column In-Reply-To: <48AE61F4.70705@gslab.com> References: <48AE59D1.1050305@ctc-g.co.jp> <48AE61F4.70705@gslab.com> Message-ID: <48AE67C9.2010703@ctc-g.co.jp> Hi Subha, So easy ! I'll try it. Thanks for your quick response. Isao Subha Ramakrishnan wrote: > Hi, > You can add a geometry column column of type geometry itself instead of > fixing it as point or multipoint.This will support all types of geometry > in one table. > > Regards, > Subha > > > NASUNO Isao wrote: >> Hello all, >> >> Is there any way to append 'MULTIPOINT' shape files and 'POINT' shape files into >> same table with a geometry column ? >> >> I guess the geometry column should be 'MULTIPOINT' geometry-type, >> and the 'POINT' shape should be translated 'MULTIPOINT' (but only one point >> in one record)in the appending process. >> >> Any suggestions ? >> >> I'm using >> - PostgreSQL 8.0.3 >> - PostGIS 1.1.3 >> - Mapserver 4.10 >> >> Thanks, >> >> Isao Nasuno >> From aaime at opengeo.org Fri Aug 22 01:21:03 2008 From: aaime at opengeo.org (Andrea Aime) Date: Fri, 22 Aug 2008 10:21:03 +0200 Subject: [mapserver-users] FastCGI issues with MapServer 5.2, Ubuntu 8.04 In-Reply-To: <48AD8C22.9090503@opengeo.org> References: <48AC3F63.1040403@opengeo.org> <48AD8C22.9090503@opengeo.org> Message-ID: <48AE76EF.2000701@opengeo.org> Andrea Aime ha scritto: > Andrea Aime ha scritto: >> Hi, >> I'm struggling a trying to configure MapServer 5.2 >> for the performance comparison presentation that we'll >> hold at FOSS4G 2008 >> (http://conference.osgeo.org/index.php/foss4g/2008/paper/view/256) >> >> In particular, no matter what I do, a single, long running >> mapserv process seems to be handling all of the requests >> coming down the pipe, regardless of how many client threads >> I'm using to hit the server. Some details on what I've >> done so far follow. > > To answer myself, that was happening I added the > PROCESSING "CLOSE_CONNECTION=DEFER" > directive into a shapefile layer definition. It > seems it's not exactly irrelevant, it's actually > harmful (whilst it's beneficial, and works too, > for postgis layers). > > When I removed it the fastcgi processes started to get > spawn as configured in the fastcgi.conf file. This morning I started benchmarking again and ended up with a single fastcgi process again, so the above is probably not the cause. What made apache understand I want 20 processes instead of just one remains a mystery, it has magically disappeared as it magically appeared yesterday. Anyone has a clue? Is fastcgi supposed to be usable in production under Ubuntu servers, are there known issues/instabilities? (this may explain why out of the box mapserver is not built with fastcgi support enabled in Ubuntu). In the meantime I'm going to try out the FastCgiServer directive described here: http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiConfig hoping it proves more reliable. Cheers Andrea From hellomps at gmail.com Fri Aug 22 04:20:06 2008 From: hellomps at gmail.com (ramya srinivasan) Date: Fri, 22 Aug 2008 16:50:06 +0530 Subject: [mapserver-users] pix2geo Message-ID: <3702658f0808220420h282d4178udab674493a0482e1@mail.gmail.com> hello, iam new to mapservers and iam trying to display the selected point in terms of lat-long. i get errors in the code which i tried to implement if ( isset($HTTP_POST_VARS["mapa_x"]) && isset($HTTP_POST_VARS["mapa_y"]) ) { $my_point = ms_newpointObj(); $my_point->setXY($HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]); $reference_click = pix2geo($mapa_x,$mapa_y,$map->extent, $map->width,$mapobj->height); function pix2geo($pix_x,$pix_y,$extent,$width,$height) { $pix_x_geo_x = ($extent->maxx - $extent->minx) / ($width - 1); $pix_x_geo_y = ($extent->maxy - $extent->miny) / ($height - 1); $geo_x = $extent->minx + $pix_x_geo_x*$pix_x; $geo_y = $extent->maxy - $pix_x_geo_y*$pix_y; $my_point = ms_newPointObj(); $my_point->setXY($geo_x,$geo_y); return $my_point; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at mapgears.com Fri Aug 22 05:12:49 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 22 Aug 2008 08:12:49 -0400 Subject: [mapserver-users] 5.2 problem - MySQL In-Reply-To: <200808220536.m7M5aZom030131@atom.scu.edu.au> References: <200808220536.m7M5aZom030131@atom.scu.edu.au> Message-ID: <48AEAD41.3030603@mapgears.com> Greg Luker wrote: > > I have just migrated from MapServer 4.10 to MapServer 5.2. > I display points from a MySQL database (using OGRVRT select statement). > A query (on the same database) that used to work fine with MapServer > 4.10 now does not return anything from the database - no error message > either. I click on a point and the header template is returned and > displayed but nothing else, not even the footer template. (no changes to > .map file or MySQL - mapserver.log says "normal execution") > You probably also upgraded GDAL/OGR when you went from MapServer 4.10 to 5.2, right? Perhaps check that ogrinfo can still read your VRT with the new version. If it does, then I'd suggest setting "DEBUG 5" in your layer and then watch what you get in the MS_ERROR file... you should see a bunch of "msOGRFileNextShape: Returning shape=..." if MapServer can read the data... or hopefully some warnings or errors if it can't. See http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28/ about the way log/debug output works in MapServer 5.0+ Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at mapgears.com Fri Aug 22 06:36:11 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Fri, 22 Aug 2008 09:36:11 -0400 Subject: [mapserver-users] MapServer history In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF4BD@ecburexch1.ontario.int.ec.gc.ca> References: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF4BD@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <48AEC0CB.1090709@mapgears.com> Hi Tom, Yes, I think that's a great idea. If you (or someone else) set something up then I'll try to contribute some bits for sure. Daniel Kralidis,Tom [Burlington] wrote: > Interesting thread going on at > http://lists.osgeo.org/pipermail/discuss/2008-August/004120.html > > I think it would be valuable to have this for MapServer. There would be > initial effort, but it could be easily maintained over time (2-3 times > per year/as needed). > > I'd be interested in helping out, or even coordinating, but this would > depend on compilation and input from many in the MapServer community > (users, developers, etc.). > > Any interest? > > ..Tom > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ From posthumusb at AGR.GC.CA Fri Aug 22 08:15:55 2008 From: posthumusb at AGR.GC.CA (Posthumus, Bradley) Date: Fri, 22 Aug 2008 11:15:55 -0400 Subject: [mapserver-users] displaying ArcSDE raster data in MapServer 5.x Message-ID: Is there any documentation or mapfile examples on how to display ArcSDE raster data (9.1 or 9.2) using MapServer 5.x? Everything that I have seen is outdated since the SDE raster capabilities was moved to GDAL. Displaying SDE vector data is relatively simple, but attempting to use the same connection properties with raster data gives us this error (using DEBUG ON): ..msDrawRaster(): Unable to access file. (SCHEMA.RASTERNAME,FOOTPRINT,SDE.DEFAULT) ..Unable to open file SCHEMA.RASTERNAME,FOOTPRINT,SDE.DEFAULT for layer rastername ... ignoring this missing data. (where SCHEMA.RASTERNAME is the name of the raster which DOES exist in the database) Has anyone been able to successfully display SDE raster data? Brad Posthumus From jmckenna at gatewaygeomatics.com Fri Aug 22 09:12:27 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 22 Aug 2008 09:12:27 -0700 Subject: [mapserver-users] MapServer history In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF4BD@ecburexch1.ontario.int.ec.gc.ca> References: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF4BD@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <48AEE56B.4070807@gatewaygeomatics.com> There is a history section in the (unpublished) user manual...and Steve Lime wrote an excellent chapter on MapServer (for an OSGeo book, I believe). Kralidis,Tom [Burlington] wrote: > Interesting thread going on at > http://lists.osgeo.org/pipermail/discuss/2008-August/004120.html > > I think it would be valuable to have this for MapServer. There would be > initial effort, but it could be easily maintained over time (2-3 times > per year/as needed). > > I'd be interested in helping out, or even coordinating, but this would > depend on compilation and input from many in the MapServer community > (users, developers, etc.). > > Any interest? > > -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From Tom.Kralidis at ec.gc.ca Fri Aug 22 11:06:20 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Fri, 22 Aug 2008 14:06:20 -0400 Subject: [mapserver-users] MapServer history References: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF4BD@ecburexch1.ontario.int.ec.gc.ca> <48AEE56B.4070807@gatewaygeomatics.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC3D9@ecburexch1.ontario.int.ec.gc.ca> Thanks for this. Steve's history would be of obvious value here! I've started a page at http://trac.osgeo.org/mapserver/wiki/MapServerHistory . Contributions are welcome! ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Jeff McKenna Sent: Fri 22-Aug-08 12:12 To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] MapServer history There is a history section in the (unpublished) user manual...and Steve Lime wrote an excellent chapter on MapServer (for an OSGeo book, I believe). Kralidis,Tom [Burlington] wrote: > Interesting thread going on at > http://lists.osgeo.org/pipermail/discuss/2008-August/004120.html > > I think it would be valuable to have this for MapServer. There would be > initial effort, but it could be easily maintained over time (2-3 times > per year/as needed). > > I'd be interested in helping out, or even coordinating, but this would > depend on compilation and input from many in the MapServer community > (users, developers, etc.). > > Any interest? > > -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From pramsey at cleverelephant.ca Fri Aug 22 12:55:39 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 22 Aug 2008 12:55:39 -0700 Subject: [mapserver-users] FastCGI issues with MapServer 5.2, Ubuntu 8.04 In-Reply-To: <48AE76EF.2000701@opengeo.org> References: <48AC3F63.1040403@opengeo.org> <48AD8C22.9090503@opengeo.org> <48AE76EF.2000701@opengeo.org> Message-ID: <30fe546d0808221255g67535bd7t6085bfcf9dd94562@mail.gmail.com> Andrea, You might want to try mod_fcgi instead, as it has received maintenance and is targetted at Apache 2, whereas the original mod_fastcgi was built for 1.3 and received a cursory upgrade to 2. http://fastcgi.coremail.cn/ That said, I have not experienced your problem before. P. On Fri, Aug 22, 2008 at 1:21 AM, Andrea Aime wrote: > Andrea Aime ha scritto: >> >> Andrea Aime ha scritto: >>> >>> Hi, >>> I'm struggling a trying to configure MapServer 5.2 >>> for the performance comparison presentation that we'll >>> hold at FOSS4G 2008 >>> (http://conference.osgeo.org/index.php/foss4g/2008/paper/view/256) >>> >>> In particular, no matter what I do, a single, long running >>> mapserv process seems to be handling all of the requests >>> coming down the pipe, regardless of how many client threads >>> I'm using to hit the server. Some details on what I've >>> done so far follow. >> >> To answer myself, that was happening I added the >> PROCESSING "CLOSE_CONNECTION=DEFER" >> directive into a shapefile layer definition. It >> seems it's not exactly irrelevant, it's actually >> harmful (whilst it's beneficial, and works too, >> for postgis layers). >> >> When I removed it the fastcgi processes started to get >> spawn as configured in the fastcgi.conf file. > > This morning I started benchmarking again and ended up with a single > fastcgi process again, so the above is probably not the cause. > What made apache understand I want 20 processes instead of just one > remains a mystery, it has magically disappeared as it magically > appeared yesterday. > > Anyone has a clue? Is fastcgi supposed to be usable in production > under Ubuntu servers, are there known issues/instabilities? (this may > explain why out of the box mapserver is not built with fastcgi > support enabled in Ubuntu). > > In the meantime I'm going to try out the FastCgiServer directive > described here: > http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiConfig > hoping it proves more reliable. > > Cheers > Andrea > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From aaime at opengeo.org Fri Aug 22 15:59:00 2008 From: aaime at opengeo.org (Andrea Aime) Date: Sat, 23 Aug 2008 00:59:00 +0200 Subject: [mapserver-users] FastCGI issues with MapServer 5.2, Ubuntu 8.04 In-Reply-To: <30fe546d0808221255g67535bd7t6085bfcf9dd94562@mail.gmail.com> References: <48AC3F63.1040403@opengeo.org> <48AD8C22.9090503@opengeo.org> <48AE76EF.2000701@opengeo.org> <30fe546d0808221255g67535bd7t6085bfcf9dd94562@mail.gmail.com> Message-ID: <48AF44B4.2080302@opengeo.org> Paul Ramsey ha scritto: > Andrea, > > You might want to try mod_fcgi instead, as it has received maintenance > and is targetted at Apache 2, whereas the original mod_fastcgi was > built for 1.3 and received a cursory upgrade to 2. > > http://fastcgi.coremail.cn/ > > That said, I have not experienced your problem before. Ah, thanks a ton Paul. In the meantime I tried out the FastCgiServer directive, I made it create 20 processes and it works as advertised (actually my benchmarks show MapServer got damn faster than last year, way to go). Do you believe that trying out mod_fgci will give better result, or in any case more realistic ones? (not sure you'd want to keep 20 mapserver processes around statically, thought they don't seem to be eating that much memory). Cheers Andrea From pramsey at cleverelephant.ca Fri Aug 22 16:54:19 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Fri, 22 Aug 2008 16:54:19 -0700 Subject: [mapserver-users] FastCGI issues with MapServer 5.2, Ubuntu 8.04 In-Reply-To: <48AF44B4.2080302@opengeo.org> References: <48AC3F63.1040403@opengeo.org> <48AD8C22.9090503@opengeo.org> <48AE76EF.2000701@opengeo.org> <30fe546d0808221255g67535bd7t6085bfcf9dd94562@mail.gmail.com> <48AF44B4.2080302@opengeo.org> Message-ID: <30fe546d0808221654u734733d4m451295a831718a63@mail.gmail.com> No, I don't think mod_fcgi will change the performance profile much. BTW, I think that the number of workers you should have is ncores + X where 1 <= X <= 3, thereabouts. P. On Fri, Aug 22, 2008 at 3:59 PM, Andrea Aime wrote: > Paul Ramsey ha scritto: >> >> Andrea, >> >> You might want to try mod_fcgi instead, as it has received maintenance >> and is targetted at Apache 2, whereas the original mod_fastcgi was >> built for 1.3 and received a cursory upgrade to 2. >> >> http://fastcgi.coremail.cn/ >> >> That said, I have not experienced your problem before. > > Ah, thanks a ton Paul. In the meantime I tried out > the FastCgiServer directive, I made it create 20 processes > and it works as advertised (actually my benchmarks show > MapServer got damn faster than last year, way to go). > > Do you believe that trying out mod_fgci will give better > result, or in any case more realistic ones? (not sure > you'd want to keep 20 mapserver processes around statically, > thought they don't seem to be eating that much memory). > > Cheers > Andrea > From matthew.pettis at gmail.com Sat Aug 23 16:30:09 2008 From: matthew.pettis at gmail.com (Matthew Pettis) Date: Sat, 23 Aug 2008 18:30:09 -0500 Subject: [mapserver-users] Mapfile Join Message-ID: <82ba77b80808231630w20339c1fn433debc8588ea6a0@mail.gmail.com> Hi, I was wondering if you can join on more than one column in a 'join' statement like in sql... I need to join on 2 columns in a .dbf to a postgresql table, like: TO columna, columnb FROM columna, columnb Can this be done? And if so, what is the syntax? Thanks, Matt -- 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 mitchelljj98 at gmail.com Sun Aug 24 03:22:30 2008 From: mitchelljj98 at gmail.com (John Mitchell) Date: Sun, 24 Aug 2008 06:22:30 -0400 Subject: [mapserver-users] Style creation GUI for mapfiles Message-ID: Hi, Is their a Style creation GUI available for Mapserver mapfiles? Thanks, -- John J. Mitchell -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Sun Aug 24 20:03:37 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Mon, 25 Aug 2008 15:03:37 +1200 Subject: [mapserver-users] SQL SELECT statement in a OGR connection (DGN) In-Reply-To: <483E8BA8.1060608@pobox.com> References: <1708890c0805290217p255c7ee5m5a9555929f7433dc@mail.gmail.com> <483E8BA8.1060608@pobox.com> Message-ID: <48B2C9C8.379F.0037.0@asurequality.com> Is it possible to send a value for the where condition to Mapserver via a variable added to the end of a WMS call? Mapserver would then put this variable value into the FILTER statement for the OGR connection. Many thanks, Robert Sanson Robert Sanson, BVSc, MACVSc, PhD Geospatial Services AsureQuality Limited PO Box 585, Palmerston North NEW ZEALAND Phone: +64 6 351-7990 Fax: +64 6 351-7919 Mobile: 021 448-472 E-mail: sansonr at asurequality.com >>> Frank Warmerdam 29/05/2008 10:55 p.m. >>> Gabriela Messner wrote: > Hi all, > > I*m do not how to use de SQL SELECT statement to select several values > in a OGR connection to a DGN file with a layer named 'level'. For this > layer, i*d like to select the values '1,3,5'. The object LAYER is posted > below. > > Thanks in advanced. > > LAYER > NAME sheet5000 > STATUS ON > TYPE line > CONNECTIONTYPE OGR > CONNECTION "D:\sheet5000.DGN" > #how do i use the SQL SELECT statement? > DATA "level=1,5,7" Gabriela, I would suggest trying: CONNECTIONTYPE OGR CONNECTION "D:\sheet5000.DGN" DATA "elements" FILTER "WHERE level in (1,5,7)" With CONNECTIONTYPE OGR you can prefix your FILTER with the keyword WHERE and the rest will be passed through to OGR as an SQL style attribute filter. In DGN files there is only one layer, named elements, so we provide that in the DATA statement. 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 _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From aberenyi at burken.hu Mon Aug 25 03:25:32 2008 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Ber=E9nyi_Attila?=) Date: Mon, 25 Aug 2008 12:25:32 +0200 Subject: [mapserver-users] SVG error Message-ID: <48B2889C.2050806@burken.hu> Dear All, I tried to change the output format of my mapserver from png to svg. It looks like it generates the svg files correctly, and if I open the svg file with a picture viewer it contains everything it has to contain. But if I try to open the result in a browser my apache replies: XML syntax error 1.row,1.column... I've downloaded svg files from the web and opened it in firefox thorough the localhost web server and worked ok. Any idea what could be wrong? Thanks in advance, Attila -------------- next part -------------- An HTML attachment was scrubbed... URL: From nellyfromma at gmail.com Mon Aug 25 05:09:30 2008 From: nellyfromma at gmail.com (Nelson Soto) Date: Mon, 25 Aug 2008 08:09:30 -0400 Subject: [mapserver-users] MapServer and .NET? Message-ID: <69935d110808250509m2744f0d1p9a0636ad39c942e7@mail.gmail.com> Hi Guys, I am following the tutorial on http://www.paolocorti.net/2006/09/20/mapserver-tutorial-for-c-mapscript-asp-net/ regarding getting started with MapServer on .Net. I eventually hit a snag where I run into error "The type initializer for 'OSGeo.MapServer.mapscriptPINVOKE' threw an exception" when trying to run the demo application. I have tried several demo projects in Visual Studio and I receive the same errors. Running down the stack, this seems to be the general exception: {"Unable to load DLL 'mapscript': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"} This happens even with projects that are coming with there own mapserver.dll and all other necessary filesinthe bin folder. Does anyone have any experience with dealing with MapServer on .Net and can anyone help me or point me in the right direction. Right now I guess I am looking at downloading Dependancy Walker to try to see if I can get further into this exception, but I just want to know if anyone else has ever run into this before. Thanks, Nelson Soto -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian.hulbert at linquest.com Mon Aug 25 05:25:53 2008 From: brian.hulbert at linquest.com (Hulbert, Brian) Date: Mon, 25 Aug 2008 08:25:53 -0400 Subject: [mapserver-users] MapServer and .NET? In-Reply-To: <69935d110808250509m2744f0d1p9a0636ad39c942e7@mail.gmail.com> References: <69935d110808250509m2744f0d1p9a0636ad39c942e7@mail.gmail.com> Message-ID: <001101c906ad$b8b4df20$2a1e9d60$@hulbert@linquest.com> I can't speak specifically to ASP.NET but for C#, I place all of the MapScript-related DLLs in the same directory as my C# application executable. Below are the files that I have in my Debug or Release folder for MapServer 5.0.2 cfitsio.dll gdal15.dll geos_c.dll geotiff.dll hdf5dll.dll iconv.dll jbig1.dll libcurl.dll libeay32.dll libecwj2.dll libexpat.dll libfcgi.dll libmap.dll libmysql.dll libpq.dll libtiff.dll libxml2.dll lti_dsdk_dll.dll mapscript.dll mapscript_csharp.dll netcdf.dll pdflib.dll proj.dll sqlite3.dll ssleay32.dll szlibdll.dll xerces-c_2_7.dll zlib1.dll HTH, Brian From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Soto Sent: Monday, August 25, 2008 8:10 AM To: Mapserver-users Subject: [mapserver-users] MapServer and .NET? Hi Guys, I am following the tutorial on http://www.paolocorti.net/2006/09/20/mapserver-tutorial-for-c-mapscript-asp- net/ regarding getting started with MapServer on .Net. I eventually hit a snag where I run into error "The type initializer for 'OSGeo.MapServer.mapscriptPINVOKE' threw an exception" when trying to run the demo application. I have tried several demo projects in Visual Studio and I receive the same errors. Running down the stack, this seems to be the general exception: {"Unable to load DLL 'mapscript': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"} This happens even with projects that are coming with there own mapserver.dll and all other necessary filesinthe bin folder. Does anyone have any experience with dealing with MapServer on .Net and can anyone help me or point me in the right direction. Right now I guess I am looking at downloading Dependancy Walker to try to see if I can get further into this exception, but I just want to know if anyone else has ever run into this before. Thanks, Nelson Soto -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian.hulbert at linquest.com Mon Aug 25 06:01:21 2008 From: brian.hulbert at linquest.com (Hulbert, Brian) Date: Mon, 25 Aug 2008 09:01:21 -0400 Subject: [mapserver-users] MapServer and .NET? In-Reply-To: <69935d110808250548n5a6d677ax1e239eea2a707a1c@mail.gmail.com> References: <69935d110808250509m2744f0d1p9a0636ad39c942e7@mail.gmail.com> <-1113139784258575136@unknownmsgid> <69935d110808250548n5a6d677ax1e239eea2a707a1c@mail.gmail.com> Message-ID: <001f01c906b2$ae94c320$0bbe4960$@hulbert@linquest.com> Nelson, I avoided recompiling any DLLs. I used what was provided. Is your VS project referencing the mapscript DLL in your Debug/Release folder or is it referencing the one in your C:\Program Files\MS4W folder? Since I have a C# app, I have a VS project reference to just the mapscript_csharp.dll file in a common 3rd party DLLs folder under my source code project. When this loads, it will attempt to load the other dependent DLLs. Try that approach with your C# app to see if you can narrow the problem. Brian From: Nelson Soto [mailto:nellyfromma at gmail.com] Sent: Monday, August 25, 2008 8:48 AM To: Hulbert, Brian Subject: Re: [mapserver-users] MapServer and .NET? Thank you sir. Indeed you had a couple more dll's than I but still after moving more over I receive the same error. I am trying to run a vb.net project but I also have a c# one that produces the same error. The tutorial says I can use the mapscript.dll and mapscript_csharp.dll that is in ms4w. Did you find that to be true or had you compiled your own? Also, I think it's worth noting: I used the newest version of MS4W that seems only weeks old... It now has a nice installer that allows you to specify the installation path where previously it demanded to be installed in the root ex: C:\ms4w or D:\ms4w... Since I was able to choose, I chose C:\program files\ms4w. Would this be an issue do you think? On Mon, Aug 25, 2008 at 8:25 AM, Hulbert, Brian wrote: I can't speak specifically to ASP.NET but for C#, I place all of the MapScript-related DLLs in the same directory as my C# application executable. Below are the files that I have in my Debug or Release folder for MapServer 5.0.2 cfitsio.dll gdal15.dll geos_c.dll geotiff.dll hdf5dll.dll iconv.dll jbig1.dll libcurl.dll libeay32.dll libecwj2.dll libexpat.dll libfcgi.dll libmap.dll libmysql.dll libpq.dll libtiff.dll libxml2.dll lti_dsdk_dll.dll mapscript.dll mapscript_csharp.dll netcdf.dll pdflib.dll proj.dll sqlite3.dll ssleay32.dll szlibdll.dll xerces-c_2_7.dll zlib1.dll HTH, Brian From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Soto Sent: Monday, August 25, 2008 8:10 AM To: Mapserver-users Subject: [mapserver-users] MapServer and .NET? Hi Guys, I am following the tutorial on http://www.paolocorti.net/2006/09/20/mapserver-tutorial-for-c-mapscript-asp- net/ regarding getting started with MapServer on .Net. I eventually hit a snag where I run into error "The type initializer for 'OSGeo.MapServer.mapscriptPINVOKE' threw an exception" when trying to run the demo application. I have tried several demo projects in Visual Studio and I receive the same errors. Running down the stack, this seems to be the general exception: {"Unable to load DLL 'mapscript': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"} This happens even with projects that are coming with there own mapserver.dll and all other necessary filesinthe bin folder. Does anyone have any experience with dealing with MapServer on .Net and can anyone help me or point me in the right direction. Right now I guess I am looking at downloading Dependancy Walker to try to see if I can get further into this exception, but I just want to know if anyone else has ever run into this before. Thanks, Nelson Soto -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Mon Aug 25 07:09:28 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Mon, 25 Aug 2008 16:09:28 +0200 Subject: [mapserver-users] MapServer and .NET? In-Reply-To: <69935d110808250509m2744f0d1p9a0636ad39c942e7@mail.gmail.com> References: <69935d110808250509m2744f0d1p9a0636ad39c942e7@mail.gmail.com> Message-ID: Nelson, Have you read the corresponding topic for this problem? http://mapserver.gis.umn.edu/docs/error/unabletoloaddll Best regards, Tamas 2008/8/25 Nelson Soto : > Hi Guys, > > I am following the tutorial on > http://www.paolocorti.net/2006/09/20/mapserver-tutorial-for-c-mapscript-asp-net/ regarding > getting started with MapServer on .Net. I eventually hit a snag where I run > into error "The type initializer for 'OSGeo.MapServer.mapscriptPINVOKE' > threw an exception" when trying to run the demo application. I have tried > several demo projects in Visual Studio and I receive the same errors. > Running down the stack, this seems to be the general exception: > > {"Unable to load DLL 'mapscript': The specified module could not be found. > (Exception from HRESULT: 0x8007007E)"} > > This happens even with projects that are coming with there own mapserver.dll > and all other necessary filesinthe bin folder. Does anyone have any > experience with dealing with MapServer on .Net and can anyone help me or > point me in the right direction. Right now I guess I am looking at > downloading Dependancy Walker to try to see if I can get further into this > exception, but I just want to know if anyone else has ever run into this > before. > > Thanks, > Nelson Soto > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From dmorissette at mapgears.com Mon Aug 25 08:20:32 2008 From: dmorissette at mapgears.com (Daniel Morissette) Date: Mon, 25 Aug 2008 11:20:32 -0400 Subject: [mapserver-users] SQL SELECT statement in a OGR connection (DGN) In-Reply-To: <48B2C9C8.379F.0037.0@asurequality.com> References: <1708890c0805290217p255c7ee5m5a9555929f7433dc@mail.gmail.com> <483E8BA8.1060608@pobox.com> <48B2C9C8.379F.0037.0@asurequality.com> Message-ID: <48B2CDC0.7040006@mapgears.com> Robert Sanson wrote: > Is it possible to send a value for the where condition to Mapserver via > a variable added to the end of a WMS call? Mapserver would then put this > variable value into the FILTER statement for the OGR connection. > You could use a %variable% in your FILTER expression and then pass the value of 'variable' in the URL: http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at dnr.state.mn.us Mon Aug 25 08:30:22 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 25 Aug 2008 10:30:22 -0500 Subject: [mapserver-users] Using space in layer's name? In-Reply-To: <718212.42459.qm@web56104.mail.re3.yahoo.com> References: <25de2c7c0808200655j302d6521h7994741f67bcb916@mail.gmail.com> <718212.42459.qm@web56104.mail.re3.yahoo.com> Message-ID: <48B289BD.5157.008F.0@dnr.state.mn.us> You've hit a bug in the code. Since "layers" uses a space delimiter spaces in layer names will cause problems. A work around would be to use layer=layer1&layer=layer2&... in your call. If you'd file a bug on this issue I'll address for 5.4, probably by supporting multiple delimiters like a comma and will check those before spaces... Steve >>> On 8/22/2008 at 1:21 AM, in message <718212.42459.qm at web56104.mail.re3.yahoo.com>, "kreshna_iceheart at yahoo.com" wrote: > Er, no. My layers do not contain capitals, only spaces. > > > --- On Wed, 8/20/08, TC Haddad wrote: > >> From: TC Haddad >> Subject: Re: [mapserver-users] Using space in layer's name? >> To: kreshna_iceheart at yahoo.com >> Date: Wednesday, August 20, 2008, 9:55 AM >> It looks like you are using mapserver CGI .... if so I have >> noticed >> that passing layer names is sometimes case sensitive. >> >> Is it possible that your layer with spaces in the name also >> has a >> capital letter in the name that you are not using in the >> URL string >> that you are passing? >> >> Another idea is that you can insert a GROUP name for that >> layer that >> does not have a space, and then just call that layer in the >> URL using >> the GROUP name instead. That should avoid the problem >> altogether. >> (Also remember to use case sensitive for GROUP name). >> >> Tanya >> >> On Wed, Aug 20, 2008 at 12:00 AM, >> kreshna_iceheart at yahoo.com >> wrote: >> > Er, nope. I'm not using WMS. >> > >> > >> > --- On Wed, 8/20/08, Rahkonen Jukka >> wrote: >> > >> >> From: Rahkonen Jukka >> >> >> Subject: Re: [mapserver-users] Using space in >> layer's name? >> >> To: kreshna_iceheart at yahoo.com, >> mapserver-users at lists.osgeo.org >> >> Date: Wednesday, August 20, 2008, 2:46 AM >> >> Hi, >> >> >> >> Are you using WMS?In the document "WMS >> servers with >> >> MapServer" >> >> http://mapserver.gis.umn.edu/docs/howto/wms_server >> >> reads: >> >> # >> >> Layer Name and wms_title metadata: >> >> Every individual layer needs its own unique name >> and title. >> >> Layer names are also used in GetMap and >> GetFeatureInfo >> >> requests to refer to layers that should be >> included in the >> >> map output and in the query. Layer names must >> start with a >> >> letter when setting up a WMS server (layer names >> should not >> >> start with a digit or have spaces in them). >> >> >> >> I believe that spaces in layer names are not >> allowed by WMS >> >> standard, but I may be wrong. I do also believe >> that >> >> MapServer cgi supports them, at least I can find >> example map >> >> files with layers named like "my layer". >> >> >> >> -Jukka Rahkonen- >> >> >> >> > -----Alkuper?inen viesti----- >> >> > L?hett?j?: >> mapserver-users-bounces at lists.osgeo.org >> >> > >> [mailto:mapserver-users-bounces at lists.osgeo.org] >> >> Puolesta >> >> > kreshna_iceheart at yahoo.com >> >> > L?hetetty: 20. elokuuta 2008 8:40 >> >> > Vastaanottaja: >> mapserver-users at lists.osgeo.org >> >> > Aihe: [mapserver-users] Using space in >> layer's >> >> name? >> >> > >> >> > I'm using MapServer 5.0.2. >> >> > >> >> > I have two layers: the first is named >> "jaringan >> >> ipal dan >> >> > iplt" (layer name contains space >> character), >> >> while the second >> >> > is named "jaringan_telepon" (does >> not >> >> contain space). >> >> > >> >> > I am using the [layers] parameter to >> dynamically pass >> >> my >> >> > layers to another template for printing >> purpose. Alas, >> >> >> >> > because one layer contains space, that >> particular >> >> layer is >> >> > not passed at all. Here is the contents of >> the >> >> [layers] parameter: >> >> > >> >> > >> >> >> &layers=jaringan%20ipal%20dan%20iplt%20jaringan_telepon >> >> > >> >> > The layer "jaringan_telepon" is >> displayed >> >> correctly, but the >> >> > layer "jaringan ipal dan iplt" >> fails to >> >> display, because >> >> > MapServer takes the space character (%20) as >> >> delimiter. >> >> > >> >> > I tried to use the parameter [layers_esc] >> instead, and >> >> here >> >> > is the contents of the [layers_esc]: >> >> > >> >> > >> &layers=jaringan+ipal+dan+iplt+jaringan%5Ftelepon >> >> > >> >> > Here, the layer "jaringan ipal dan >> iplt" >> >> still fails to >> >> > display, because MapServer replaces the space >> with >> >> "+" (plus >> >> > sign), which is also used as delimiter. >> >> > >> >> > Thus, not even [layers_esc] allows us to use >> space >> >> character >> >> > in layer's name. Is there any other way >> to use >> >> layer with >> >> > space character in its name, then? >> >> > >> >> > Thanks, >> >> > -Kresh >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> _______________________________________________ >> >> > mapserver-users mailing list >> >> > mapserver-users at lists.osgeo.org >> >> > >> >> >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > >> > >> > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Mon Aug 25 08:31:31 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Mon, 25 Aug 2008 11:31:31 -0400 Subject: [mapserver-users] Style creation GUI for mapfiles In-Reply-To: References: Message-ID: <48B2D053.4070009@gatewaygeomatics.com> Yes, try the "mapserver export" plugin for Quantum GIS (http://www.qgis.org/) John Mitchell wrote: > Hi, > > Is their a Style creation GUI available for Mapserver mapfiles? > > Thanks, > -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From brian.hulbert at linquest.com Mon Aug 25 08:59:45 2008 From: brian.hulbert at linquest.com (Hulbert, Brian) Date: Mon, 25 Aug 2008 11:59:45 -0400 Subject: [mapserver-users] MapServer and .NET? In-Reply-To: <69935d110808250805u6557447vf2eedc1bb720dde3@mail.gmail.com> References: <69935d110808250509m2744f0d1p9a0636ad39c942e7@mail.gmail.com> <-1113139784258575136@unknownmsgid> <69935d110808250548n5a6d677ax1e239eea2a707a1c@mail.gmail.com> <5920109821059557020@unknownmsgid> <69935d110808250805u6557447vf2eedc1bb720dde3@mail.gmail.com> Message-ID: <006701c906cb$9aeef890$d0cce9b0$@hulbert@linquest.com> I don't have experience yet with the latest release.maybe there is another DLL dependency that wasn't present in my 5.0.2 release. Can you easily put the 5.0.2 DLLs in your application directory and update the project DLL reference accordingly and give it a try? From: Nelson Soto [mailto:nellyfromma at gmail.com] Sent: Monday, August 25, 2008 11:05 AM To: Hulbert, Brian Subject: Re: [mapserver-users] MapServer and .NET? I have tried reference the file in my ms4w install directory, so: C:\Program Files\ms4w\Apache\cgi-bin\mapscript\csharp This was actually the first thing I tried but it have me the same error for the first time so I experimented with hunting all dll's and copying them in the application folder per recommendations but this caused me to receive the same error. On Mon, Aug 25, 2008 at 9:01 AM, Hulbert, Brian wrote: Nelson, I avoided recompiling any DLLs. I used what was provided. Is your VS project referencing the mapscript DLL in your Debug/Release folder or is it referencing the one in your C:\Program Files\MS4W folder? Since I have a C# app, I have a VS project reference to just the mapscript_csharp.dll file in a common 3rd party DLLs folder under my source code project. When this loads, it will attempt to load the other dependent DLLs. Try that approach with your C# app to see if you can narrow the problem. Brian From: Nelson Soto [mailto:nellyfromma at gmail.com] Sent: Monday, August 25, 2008 8:48 AM To: Hulbert, Brian Subject: Re: [mapserver-users] MapServer and .NET? Thank you sir. Indeed you had a couple more dll's than I but still after moving more over I receive the same error. I am trying to run a vb.net project but I also have a c# one that produces the same error. The tutorial says I can use the mapscript.dll and mapscript_csharp.dll that is in ms4w. Did you find that to be true or had you compiled your own? Also, I think it's worth noting: I used the newest version of MS4W that seems only weeks old... It now has a nice installer that allows you to specify the installation path where previously it demanded to be installed in the root ex: C:\ms4w or D:\ms4w... Since I was able to choose, I chose C:\program files\ms4w. Would this be an issue do you think? On Mon, Aug 25, 2008 at 8:25 AM, Hulbert, Brian wrote: I can't speak specifically to ASP.NET but for C#, I place all of the MapScript-related DLLs in the same directory as my C# application executable. Below are the files that I have in my Debug or Release folder for MapServer 5.0.2 cfitsio.dll gdal15.dll geos_c.dll geotiff.dll hdf5dll.dll iconv.dll jbig1.dll libcurl.dll libeay32.dll libecwj2.dll libexpat.dll libfcgi.dll libmap.dll libmysql.dll libpq.dll libtiff.dll libxml2.dll lti_dsdk_dll.dll mapscript.dll mapscript_csharp.dll netcdf.dll pdflib.dll proj.dll sqlite3.dll ssleay32.dll szlibdll.dll xerces-c_2_7.dll zlib1.dll HTH, Brian From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Nelson Soto Sent: Monday, August 25, 2008 8:10 AM To: Mapserver-users Subject: [mapserver-users] MapServer and .NET? Hi Guys, I am following the tutorial on http://www.paolocorti.net/2006/09/20/mapserver-tutorial-for-c-mapscript-asp- net/ regarding getting started with MapServer on .Net. I eventually hit a snag where I run into error "The type initializer for 'OSGeo.MapServer.mapscriptPINVOKE' threw an exception" when trying to run the demo application. I have tried several demo projects in Visual Studio and I receive the same errors. Running down the stack, this seems to be the general exception: {"Unable to load DLL 'mapscript': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"} This happens even with projects that are coming with there own mapserver.dll and all other necessary filesinthe bin folder. Does anyone have any experience with dealing with MapServer on .Net and can anyone help me or point me in the right direction. Right now I guess I am looking at downloading Dependancy Walker to try to see if I can get further into this exception, but I just want to know if anyone else has ever run into this before. Thanks, Nelson Soto -------------- next part -------------- An HTML attachment was scrubbed... URL: From nellyfromma at gmail.com Mon Aug 25 12:09:15 2008 From: nellyfromma at gmail.com (Nelson Soto) Date: Mon, 25 Aug 2008 15:09:15 -0400 Subject: [mapserver-users] MapServer and .NET? In-Reply-To: <69935d110808251119p413bd6ecyf6030c08aa6a3487@mail.gmail.com> References: <69935d110808250509m2744f0d1p9a0636ad39c942e7@mail.gmail.com> <69935d110808250752g2cacd90en9a5df69463d5da0e@mail.gmail.com> <69935d110808250839l30076187k3a302571c55161c6@mail.gmail.com> <69935d110808250928h48883af5qa60db6d2d2b42a7c@mail.gmail.com> <69935d110808250935iedba0c1s39a8cdc048ecdd2c@mail.gmail.com> <69935d110808251119p413bd6ecyf6030c08aa6a3487@mail.gmail.com> Message-ID: <69935d110808251209p78612dd0j1cee5b4164999120@mail.gmail.com> I figured out my problem... the examples seem to not include all necessary files and eventually i just became engulfed in dll hell. storm the bin folder with the most up to date dll's seems to suffice, no matter how ugly it is. Thanks for the help guys. On Mon, Aug 25, 2008 at 2:19 PM, Nelson Soto wrote: > If I am missing Sun's Java, will this cause this... the only evident > dependency I can see missing is MSJAVA.dll and I'd rather not locate an old > MSJAVA. > > > On Mon, Aug 25, 2008 at 12:35 PM, Nelson Soto wrote: > >> I didn't realize you may have been asking for the VB.NETapplication project example that I have. This file contains a project that >> looks to me as though it would compile into a program but I receive the same >> errors regardless of the type of project. Here you go: >> >> >> >> On Mon, Aug 25, 2008 at 12:28 PM, Nelson Soto wrote: >> >>> When running ProcMon directly on the server as opposed to on the >>> development machine, I am noticing it is looking in the wrong places for >>> some files... I am pretty sure my PATH is set correctly though... >>> >>> Here is the original file I downloaded. This file contains, I assume, all >>> the files necessary to run in its bin folder and ideally this type of setup >>> would work for me to. >>> >>> I am starting fresh against with the same file I am sending you for the >>> sake of making things less complicated. >>> >>> Edit: I tried to email the zip but it insists there is an executable and >>> blocks the ability for me to send it to you. If you don't mind, I may have >>> to send it to you from my work e-mail account: nsoto at plotplans.com. I >>> have renamed the file but it is a zip. >>> On Mon, Aug 25, 2008 at 12:09 PM, Tamas Szekeres wrote: >>> >>>> If you send me your vb.net example then I could do a test with it. >>>> >>>> Best regards, >>>> >>>> Tamas >>>> >>>> >>>> >>>> 2008/8/25 Nelson Soto : >>>> > I am using the ProcMon but unfortunately when I run up to the >>>> exception, I >>>> > receive nothing useful at all... nothing that clearly point to any >>>> files not >>>> > being loaded correctly. I am filtering for WebDev.WebServer.EXE >>>> because this >>>> > seems to be the local ASP.NET process that runs >>>> when I run the page. Also, I >>>> > tried running ProcMon against a compiled vb.net application and >>>> likewise am >>>> > not seeing and inidcation of what can be wrong... Should the Resul I >>>> am >>>> > looking for be 'NAME NOT FOUND'. >>>> > >>>> > I appreciate the help by the way and realize this is up to me to >>>> figure out. >>>> > Thanks for your time. >>>> > >>>> > On Mon, Aug 25, 2008 at 11:16 AM, Tamas Szekeres >>> > >>>> > wrote: >>>> >> >>>> >> 2008/8/25 Nelson Soto : >>>> >> > Tamas, I may very well be using your Mapserver vbproject as one of >>>> my >>>> >> > references... at least, the Folder is labelled >>>> MapserverTestVB_Tamas... >>>> >> > anyways, >>>> >> > >>>> >> > I've just read the supplied link and after compiling the vb project >>>> into >>>> >> > an >>>> >> > exe it crashes with the same error. The way I read the information, >>>> this >>>> >> > leads me to believe it isn't necessarily a rights issue. >>>> >> > Also, I would beleive the demo project would have been configured >>>> >> > correctly >>>> >> > if others are using it as an example. I have just downloaded >>>> dependancy >>>> >> > walker but I'm sort of new to it. I opened the MapserverTestVB.exe >>>> >> > program >>>> >> > from dependancy walker. >>>> >> > >>>> >> > It opens up shlwapi.dll and ieframe.dll's with hour glasses and the >>>> >> > error >>>> >> > below says: >>>> >> > >>>> >> >>>> >> You should start by examining the unmanaged dlls, 'mapscript.dll' >>>> >> would be a good candidate to choose. Since you've already copied all >>>> >> of the dll-s into the same folder you should see all of the >>>> >> dependencies available. >>>> >> >>>> >> >>>> >> > >>>> >> > Warning: At least one module has an unresolved import due to a >>>> missing >>>> >> > export function in a delay-load dependent module. >>>> >> > >>>> >> > It's worth noting that whether I run a c#, vb.net, or asp.netproject >>>> >> > example, I receive the same exception in Visual Studio: >>>> >> > >>>> >> > {"Unable to load DLL 'mapscript': The specified module could not >>>> be >>>> >> > found. (Exception from HRESULT: 0x8007007E)"} >>>> >> > >>>> >> >>>> >> >>>> >> You should inspect the execution by using the SysInternals FileMon or >>>> >> ProcMon can be downloaded from here: >>>> >> http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx >>>> >> >>>> >> By setting up and exclude filter by excluding all of the processes >>>> >> (except for yours) in the debug output would help to reduce the >>>> amount >>>> >> of rows appearing in the list. (For the ASP.NET applications your app >>>> >> is probably running under the context of the aspnet_wp.exe or >>>> w3wp.exe >>>> >> depending on your platform.) Then make sure about which dll-s >>>> couldn't >>>> >> be loaded at run-time. >>>> >> >>>> >> >>>> >> >>>> >> Best regards, >>>> >> >>>> >> Tamas >>>> > >>>> > >>>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kreshna_iceheart at yahoo.com Mon Aug 25 21:08:13 2008 From: kreshna_iceheart at yahoo.com (kreshna_iceheart at yahoo.com) Date: Mon, 25 Aug 2008 21:08:13 -0700 (PDT) Subject: [mapserver-users] Using space in layer's name? In-Reply-To: <48B289BD.5157.008F.0@dnr.state.mn.us> Message-ID: <840933.37368.qm@web56109.mail.re3.yahoo.com> Thanks, Steve. Unfortunately I cannot use layer=layer1&layer=layer2&..., since I want to pass the currently selected layers (the [layers] parameter). Guess I'm gonna change all the spaces in the layer's name to underscores instead. -Kresh --- On Mon, 8/25/08, Steve Lime wrote: > From: Steve Lime > Subject: Re: [mapserver-users] Using space in layer's name? > To: "TC Haddad" , kreshna_iceheart at yahoo.com > Cc: mapserver-users at lists.osgeo.org > Date: Monday, August 25, 2008, 11:30 AM > You've hit a bug in the code. Since "layers" > uses a space delimiter > spaces in layer names will cause > problems. A work around would be to use > layer=layer1&layer=layer2&... > in your call. If you'd file > a bug on this issue I'll address for 5.4, probably by > supporting > multiple delimiters like a comma and will > check those before spaces... > > Steve > > >>> On 8/22/2008 at 1:21 AM, in message > <718212.42459.qm at web56104.mail.re3.yahoo.com>, > "kreshna_iceheart at yahoo.com" > wrote: > > Er, no. My layers do not contain capitals, only > spaces. > > > > > > --- On Wed, 8/20/08, TC Haddad > wrote: > > > >> From: TC Haddad > >> Subject: Re: [mapserver-users] Using space in > layer's name? > >> To: kreshna_iceheart at yahoo.com > >> Date: Wednesday, August 20, 2008, 9:55 AM > >> It looks like you are using mapserver CGI .... if > so I have > >> noticed > >> that passing layer names is sometimes case > sensitive. > >> > >> Is it possible that your layer with spaces in the > name also > >> has a > >> capital letter in the name that you are not using > in the > >> URL string > >> that you are passing? > >> > >> Another idea is that you can insert a GROUP name > for that > >> layer that > >> does not have a space, and then just call that > layer in the > >> URL using > >> the GROUP name instead. That should avoid the > problem > >> altogether. > >> (Also remember to use case sensitive for GROUP > name). > >> > >> Tanya > >> > >> On Wed, Aug 20, 2008 at 12:00 AM, > >> kreshna_iceheart at yahoo.com > >> wrote: > >> > Er, nope. I'm not using WMS. > >> > > >> > > >> > --- On Wed, 8/20/08, Rahkonen Jukka > >> wrote: > >> > > >> >> From: Rahkonen Jukka > >> > >> >> Subject: Re: [mapserver-users] Using > space in > >> layer's name? > >> >> To: kreshna_iceheart at yahoo.com, > >> mapserver-users at lists.osgeo.org > >> >> Date: Wednesday, August 20, 2008, 2:46 AM > >> >> Hi, > >> >> > >> >> Are you using WMS?In the document > "WMS > >> servers with > >> >> MapServer" > >> >> > http://mapserver.gis.umn.edu/docs/howto/wms_server > >> >> reads: > >> >> # > >> >> Layer Name and wms_title metadata: > >> >> Every individual layer needs its own > unique name > >> and title. > >> >> Layer names are also used in GetMap and > >> GetFeatureInfo > >> >> requests to refer to layers that should > be > >> included in the > >> >> map output and in the query. Layer names > must > >> start with a > >> >> letter when setting up a WMS server > (layer names > >> should not > >> >> start with a digit or have spaces in > them). > >> >> > >> >> I believe that spaces in layer names are > not > >> allowed by WMS > >> >> standard, but I may be wrong. I do also > believe > >> that > >> >> MapServer cgi supports them, at least I > can find > >> example map > >> >> files with layers named like "my > layer". > >> >> > >> >> -Jukka Rahkonen- > >> >> > >> >> > -----Alkuper?inen viesti----- > >> >> > L?hett?j?: > >> mapserver-users-bounces at lists.osgeo.org > >> >> > > >> [mailto:mapserver-users-bounces at lists.osgeo.org] > >> >> Puolesta > >> >> > kreshna_iceheart at yahoo.com > >> >> > L?hetetty: 20. elokuuta 2008 8:40 > >> >> > Vastaanottaja: > >> mapserver-users at lists.osgeo.org > >> >> > Aihe: [mapserver-users] Using space > in > >> layer's > >> >> name? > >> >> > > >> >> > I'm using MapServer 5.0.2. > >> >> > > >> >> > I have two layers: the first is > named > >> "jaringan > >> >> ipal dan > >> >> > iplt" (layer name contains > space > >> character), > >> >> while the second > >> >> > is named > "jaringan_telepon" (does > >> not > >> >> contain space). > >> >> > > >> >> > I am using the [layers] parameter to > >> dynamically pass > >> >> my > >> >> > layers to another template for > printing > >> purpose. Alas, > >> >> > >> >> > because one layer contains space, > that > >> particular > >> >> layer is > >> >> > not passed at all. Here is the > contents of > >> the > >> >> [layers] parameter: > >> >> > > >> >> > > >> >> > >> > &layers=jaringan%20ipal%20dan%20iplt%20jaringan_telepon > >> >> > > >> >> > The layer > "jaringan_telepon" is > >> displayed > >> >> correctly, but the > >> >> > layer "jaringan ipal dan > iplt" > >> fails to > >> >> display, because > >> >> > MapServer takes the space character > (%20) as > >> >> delimiter. > >> >> > > >> >> > I tried to use the parameter > [layers_esc] > >> instead, and > >> >> here > >> >> > is the contents of the [layers_esc]: > >> >> > > >> >> > > >> > &layers=jaringan+ipal+dan+iplt+jaringan%5Ftelepon > >> >> > > >> >> > Here, the layer "jaringan ipal > dan > >> iplt" > >> >> still fails to > >> >> > display, because MapServer replaces > the space > >> with > >> >> "+" (plus > >> >> > sign), which is also used as > delimiter. > >> >> > > >> >> > Thus, not even [layers_esc] allows > us to use > >> space > >> >> character > >> >> > in layer's name. Is there any > other way > >> to use > >> >> layer with > >> >> > space character in its name, then? > >> >> > > >> >> > Thanks, > >> >> > -Kresh > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> _______________________________________________ > >> >> > mapserver-users mailing list > >> >> > mapserver-users at lists.osgeo.org > >> >> > > >> >> > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > > >> > > >> > > >> > > >> > > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From Steve.Lime at dnr.state.mn.us Mon Aug 25 21:29:04 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Mon, 25 Aug 2008 23:29:04 -0500 Subject: [mapserver-users] Using space in layer's name? Message-ID: <48B340400200008F0001ADA8@co5.dnr.state.mn.us> Ah, bummer. I can't think of a workaround offhand then other than altering the names. Steve >>> "kreshna_iceheart at yahoo.com" 08/25/08 11:09 PM >>> Thanks, Steve. Unfortunately I cannot use layer=layer1&layer=layer2&..., since I want to pass the currently selected layers (the [layers] parameter). Guess I'm gonna change all the spaces in the layer's name to underscores instead. -Kresh --- On Mon, 8/25/08, Steve Lime wrote: > From: Steve Lime > Subject: Re: [mapserver-users] Using space in layer's name? > To: "TC Haddad" , kreshna_iceheart at yahoo.com > Cc: mapserver-users at lists.osgeo.org > Date: Monday, August 25, 2008, 11:30 AM > You've hit a bug in the code. Since "layers" > uses a space delimiter > spaces in layer names will cause > problems. A work around would be to use > layer=layer1&layer=layer2&... > in your call. If you'd file > a bug on this issue I'll address for 5.4, probably by > supporting > multiple delimiters like a comma and will > check those before spaces... > > Steve > > >>> On 8/22/2008 at 1:21 AM, in message > <718212.42459.qm at web56104.mail.re3.yahoo.com>, > "kreshna_iceheart at yahoo.com" > wrote: > > Er, no. My layers do not contain capitals, only > spaces. > > > > > > --- On Wed, 8/20/08, TC Haddad > wrote: > > > >> From: TC Haddad > >> Subject: Re: [mapserver-users] Using space in > layer's name? > >> To: kreshna_iceheart at yahoo.com > >> Date: Wednesday, August 20, 2008, 9:55 AM > >> It looks like you are using mapserver CGI .... if > so I have > >> noticed > >> that passing layer names is sometimes case > sensitive. > >> > >> Is it possible that your layer with spaces in the > name also > >> has a > >> capital letter in the name that you are not using > in the > >> URL string > >> that you are passing? > >> > >> Another idea is that you can insert a GROUP name > for that > >> layer that > >> does not have a space, and then just call that > layer in the > >> URL using > >> the GROUP name instead. That should avoid the > problem > >> altogether. > >> (Also remember to use case sensitive for GROUP > name). > >> > >> Tanya > >> > >> On Wed, Aug 20, 2008 at 12:00 AM, > >> kreshna_iceheart at yahoo.com > >> wrote: > >> > Er, nope. I'm not using WMS. > >> > > >> > > >> > --- On Wed, 8/20/08, Rahkonen Jukka > >> wrote: > >> > > >> >> From: Rahkonen Jukka > >> > >> >> Subject: Re: [mapserver-users] Using > space in > >> layer's name? > >> >> To: kreshna_iceheart at yahoo.com, > >> mapserver-users at lists.osgeo.org > >> >> Date: Wednesday, August 20, 2008, 2:46 AM > >> >> Hi, > >> >> > >> >> Are you using WMS?In the document > "WMS > >> servers with > >> >> MapServer" > >> >> > http://mapserver.gis.umn.edu/docs/howto/wms_server > >> >> reads: > >> >> # > >> >> Layer Name and wms_title metadata: > >> >> Every individual layer needs its own > unique name > >> and title. > >> >> Layer names are also used in GetMap and > >> GetFeatureInfo > >> >> requests to refer to layers that should > be > >> included in the > >> >> map output and in the query. Layer names > must > >> start with a > >> >> letter when setting up a WMS server > (layer names > >> should not > >> >> start with a digit or have spaces in > them). > >> >> > >> >> I believe that spaces in layer names are > not > >> allowed by WMS > >> >> standard, but I may be wrong. I do also > believe > >> that > >> >> MapServer cgi supports them, at least I > can find > >> example map > >> >> files with layers named like "my > layer". > >> >> > >> >> -Jukka Rahkonen- > >> >> > >> >> > -----Alkuper?inen viesti----- > >> >> > L?hett?j?: > >> mapserver-users-bounces at lists.osgeo.org > >> >> > > >> [mailto:mapserver-users-bounces at lists.osgeo.org] > >> >> mapserver-users at lists.osgeo.org > >> >> > Aihe: [mapserver-users] Using space > in > >> layer's > >> >> name? > >> >> > > >> >> > I'm using MapServer 5.0.2. > >> >> > > >> >> > I have two layers: the first is > named > >> "jaringan > >> >> ipal dan > >> >> > iplt" (layer name contains > space > >> character), > >> >> while the second > >> >> > is named > "jaringan_telepon" (does > >> not > >> >> contain space). > >> >> > > >> >> > I am using the [layers] parameter to > >> dynamically pass > >> >> my > >> >> > layers to another template for > printing > >> purpose. Alas, > >> >> > >> >> > because one layer contains space, > that > >> particular > >> >> layer is > >> >> > not passed at all. Here is the > contents of > >> the > >> >> [layers] parameter: > >> >> > > >> >> > > >> >> > >> > &layers=jaringan%20ipal%20dan%20iplt%20jaringan_telepon > >> >> > > >> >> > The layer > "jaringan_telepon" is > >> displayed > >> >> correctly, but the > >> >> > layer "jaringan ipal dan > iplt" > >> fails to > >> >> display, because > >> >> > MapServer takes the space character > (%20) as > >> >> delimiter. > >> >> > > >> >> > I tried to use the parameter > [layers_esc] > >> instead, and > >> >> here > >> >> > is the contents of the [layers_esc]: > >> >> > > >> >> > > >> > &layers=jaringan+ipal+dan+iplt+jaringan%5Ftelepon > >> >> > > >> >> > Here, the layer "jaringan ipal > dan > >> iplt" > >> >> still fails to > >> >> > display, because MapServer replaces > the space > >> with > >> >> "+" (plus > >> >> > sign), which is also used as > delimiter. > >> >> > > >> >> > Thus, not even [layers_esc] allows > us to use > >> space > >> >> character > >> >> > in layer's name. Is there any > other way > >> to use > >> >> layer with > >> >> > space character in its name, then? > >> >> > > >> >> > Thanks, > >> >> > -Kresh > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> >> > > >> _______________________________________________ > >> >> > mapserver-users mailing list > >> >> > mapserver-users at lists.osgeo.org > >> >> > > >> >> > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> >> > > >> > > >> > > >> > > >> > > _______________________________________________ > >> > mapserver-users mailing list > >> > mapserver-users at lists.osgeo.org > >> > > >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >> > > > > > > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > > http://lists.osgeo.org/mailman/listinfo/mapserver-users From vtammineni at roulacglobal.com Mon Aug 25 22:57:51 2008 From: vtammineni at roulacglobal.com (Venkat Rao Tammineni) Date: Tue, 26 Aug 2008 11:27:51 +0530 Subject: [mapserver-users] Reg:How to implement Tile-based output for Mapserver in C#.net Message-ID: <000001c90740$ae814aa0$0b83dfe0$@com> Dear All, I am planning to implement Tile-based output for mapserver.But I don't now where to start. I am using C#.net.I have gone through Mapserver API.But I did not get any information about this.Please let me know if any one has implemented Tile-based output. Please let me know.I am waiting for your great response. Thanks and Regards, Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Mon Aug 25 23:01:11 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Tue, 26 Aug 2008 08:01:11 +0200 (CEST) Subject: [mapserver-users] Reg:How to implement Tile-based output for Mapserver in C#.net Message-ID: <19184.145.50.39.11.1219730471.squirrel@webmail.hostingdiscounter.nl> Hi Venkat, please do not cross-post, you might think it gives you a higher chance of a response, but actually it will achieve the opposite. And please don't use mapserver-commits at lists.osgeo.org or mapserver-users-owner at lists.osgeo.org, they are not meant for this. The first one is linked to subversion commits (automatically generated e-mail), and the second one is the e-mail list administrator, only to be contacted in case of problems with the e-mail list. Best regards, Bart > Dear All, > > > > I am planning to implement Tile-based output for mapserver.But I don't > now where to start. I am using C#.net.I have gone through Mapserver > API.But > I did not get any information about this.Please let me know if any one has > implemented Tile-based output. > > > > Please let me know.I am waiting for your great response. > > > > Thanks and Regards, > > Venkat. > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From szekerest at gmail.com Tue Aug 26 00:19:08 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 26 Aug 2008 09:19:08 +0200 Subject: [mapserver-users] Reg:How to implement Tile-based output for Mapserver in C#.net In-Reply-To: <000001c90740$ae814aa0$0b83dfe0$@com> References: <000001c90740$ae814aa0$0b83dfe0$@com> Message-ID: Venkat, I'm not totaly sure what you've mean't by 'tile-based output', however if you would generate tiles by mapserver you might want to refer to an existing project like ka-map and see how tile.php is working. It have been implemented by using mapscipt php, but you can easily transform the algorithm to mapscript C# if needed. Best regards, Tamas 2008/8/26 Venkat Rao Tammineni : > Dear All, > > > > I am planning to implement Tile-based output for mapserver.But I don't > now where to start. I am using C#.net.I have gone through Mapserver API.But > I did not get any information about this.Please let me know if any one has > implemented Tile-based output. > > > > Please let me know.I am waiting for your great response. > > > > Thanks and Regards, > > Venkat. > > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From hellomps at gmail.com Tue Aug 26 03:07:53 2008 From: hellomps at gmail.com (ramya srinivasan) Date: Tue, 26 Aug 2008 15:37:53 +0530 Subject: [mapserver-users] querybypoint Message-ID: <3702658f0808260307m5457e57fnd37dfadaf116b4df@mail.gmail.com> hi, Can anyone tell me about QueryBypoint method and the faetures to be included in the mapfile for this method to work -------------- next part -------------- An HTML attachment was scrubbed... URL: From sstewart at slingshot.co.nz Mon Aug 25 23:06:02 2008 From: sstewart at slingshot.co.nz (Luke Stewart) Date: Tue, 26 Aug 2008 18:06:02 +1200 Subject: [mapserver-users] Mapserver with postgresql postgis Message-ID: <48B39D4A.3050006@slingshot.co.nz> Greetings, I am completely new to mapserver I am trying to display percentage results as a wedge of a circle on a map. I have the map data in shapefiles which display fine and the percentage data in a postgresql/postgis database. I can't get anything to show from the postgis database. I have found enough information to create a mapfile that doesn't throw an error from various sources but can't get wedges to display. Does anyone know of a good tutorial preferably with some test data so I can check to see it is not my data that is causing problems? Regards Luke Stewart From ahelen19 at gmail.com Tue Aug 26 03:55:13 2008 From: ahelen19 at gmail.com (helen) Date: Tue, 26 Aug 2008 03:55:13 -0700 (PDT) Subject: [mapserver-users] Apache can't start on windows Message-ID: <1219748113275-783741.post@n2.nabble.com> Hi, I have installed mapserver5.2 (Ms4W) on windows xp. but i can't get started the apache. i have tried with port 80,8080. but it is the same. it display on the system event the following messages The Apache MS4W Web Server service terminated with service-specific error 1 (0x1). The Apache MS4W Web Server service entered the stopped state. --info The Apache MS4W Web Server service was successfully sent a start control.--info Generate Activation Context failed for C:\Program Files\ms4w\Apache\modules\mod_fcgid.so. Reference error message: The operation completed successfully. Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error message: The referenced assembly is not installed on your system. Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error was The referenced assembly is not installed on your system. pls pls , say something to these errors. thanks Helen -- View this message in context: http://n2.nabble.com/Apache-can%27t-start-on-windows-tp783741p783741.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bartvde at osgis.nl Tue Aug 26 04:01:08 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Tue, 26 Aug 2008 13:01:08 +0200 (CEST) Subject: [mapserver-users] Apache can't start on windows In-Reply-To: <1219748113275-783741.post@n2.nabble.com> References: <1219748113275-783741.post@n2.nabble.com> Message-ID: <44074.145.50.39.11.1219748468.squirrel@webmail.hostingdiscounter.nl> Possibly the Microsoft Runtime is not available on your system, see also the following thread: http://www.nabble.com/fastCgiServer-with-ms4w-td18348539.html You can also just comment the following line in httpd.conf if you don't need FastCGI: #LoadModule fcgid_module modules/mod_fcgid.so Best regards, Bart > > Hi, > > I have installed mapserver5.2 (Ms4W) on windows xp. but i can't get > started > the apache. i have tried with port 80,8080. but it is the same. it display > on the system event the following messages > > The Apache MS4W Web Server service terminated with service-specific error > 1 > (0x1). > The Apache MS4W Web Server service entered the stopped state. --info > The Apache MS4W Web Server service was successfully sent a start > control.--info > Generate Activation Context failed for C:\Program > Files\ms4w\Apache\modules\mod_fcgid.so. Reference error message: The > operation completed successfully. > Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error > message: The referenced assembly is not installed on your system. > Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error > was > The referenced assembly is not installed on your system. > > pls pls , say something to these errors. > > thanks > > Helen > > -- > View this message in context: > http://n2.nabble.com/Apache-can%27t-start-on-windows-tp783741p783741.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From ahelen19 at gmail.com Tue Aug 26 04:44:25 2008 From: ahelen19 at gmail.com (helen) Date: Tue, 26 Aug 2008 04:44:25 -0700 (PDT) Subject: [mapserver-users] Apache can't start on windows In-Reply-To: <44074.145.50.39.11.1219748468.squirrel@webmail.hostingdiscounter.nl> References: <1219748113275-783741.post@n2.nabble.com> <44074.145.50.39.11.1219748468.squirrel@webmail.hostingdiscounter.nl> Message-ID: <1219751065502-783828.post@n2.nabble.com> thanks for the fast response. i have tried to install the c++ runtime (vcredist_x86.exe) but black screen comes and nothing appeared. i comment the fcgid_module but the result is the same. please help me thanks in advance Helen bartvde wrote: > > Possibly the Microsoft Runtime is not available on your system, see also > the following thread: > > http://www.nabble.com/fastCgiServer-with-ms4w-td18348539.html > > You can also just comment the following line in httpd.conf if you don't > need FastCGI: > > #LoadModule fcgid_module modules/mod_fcgid.so > > Best regards, > Bart > >> >> Hi, >> >> I have installed mapserver5.2 (Ms4W) on windows xp. but i can't get >> started >> the apache. i have tried with port 80,8080. but it is the same. it >> display >> on the system event the following messages >> >> The Apache MS4W Web Server service terminated with service-specific error >> 1 >> (0x1). >> The Apache MS4W Web Server service entered the stopped state. --info >> The Apache MS4W Web Server service was successfully sent a start >> control.--info >> Generate Activation Context failed for C:\Program >> Files\ms4w\Apache\modules\mod_fcgid.so. Reference error message: The >> operation completed successfully. >> Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error >> message: The referenced assembly is not installed on your system. >> Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error >> was >> The referenced assembly is not installed on your system. >> >> pls pls , say something to these errors. >> >> thanks >> >> Helen >> >> -- >> View this message in context: >> http://n2.nabble.com/Apache-can%27t-start-on-windows-tp783741p783741.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Apache-can%27t-start-on-windows-tp783741p783828.html Sent from the Mapserver - User mailing list archive at Nabble.com. From stefan.schwarzer at grid.unep.ch Tue Aug 26 06:16:33 2008 From: stefan.schwarzer at grid.unep.ch (Stefan Schwarzer) Date: Tue, 26 Aug 2008 15:16:33 +0200 Subject: [mapserver-users] querybypoint a postgis db with php mapscript Message-ID: Hi there, I guess there is something I am doing wrong. I think that since I moved from shapefiles to postgis, my query (bypoint/byrect) doesn't work anymore. Is there anything I have to change? I am kind of frustrated, because if looked around everywhere to find the problem; this issue has cost me hours over hours, but nothing in sight My code looks like this: //Set the layers status ON (b/c it might not be...) $Layer -> set("status", 1); $ImgWidth = $map -> width; $ImgHeight = $map -> height; $x = (($ptX / $ImgWidth) * ($ext3 - $ext1)) + $ext1; $y = $ext4 - (($ptY / $ImgHeight) * ($ext4 - $ext2)); $x1 = (($extent_px0 / $ImgWidth) * ($ext3 - $ext1)) + $ext1; $y1 = $ext4 - (($extent_px1 / $ImgHeight) * ($ext4 - $ext2)); $x2 = (($extent_px2 / $ImgWidth) * ($ext3 - $ext1)) + $ext1; $y2 = $ext4 - (($extent_px3 / $ImgHeight) * ($ext4 - $ext2)); $click_pt = ms_newPointObj(); $click_pt -> setXY($x, $y); $click_rt = ms_newRectObj(); $click_rt -> setextent($x1, $y2, $x2, $y1); //Query the Map at the point clicked if (!$imgbox) $a = $map -> queryByPoint($click_pt, MS_MULTIPLE, -1); else $a = $map -> queryByRect($click_rt); And my mapfile like this: LAYER NAME floods_killed STATUS ON CONNECTIONTYPE postgis CONNECTION 'user=xxx password=xxx dbname=xxxx' TYPE POLYGON DATA "the_geom FROM ( SELECT c.the_geom, c.name, COALESCE(d.value, -9999) AS value, d.id_country AS uid FROM floods_killed AS d RIGHT JOIN countries AS c ON c.id = d.id_country WHERE d.year_start = 2007 AND c.id = d.id_country ) AS foo USING UNIQUE uid USING srid=4326" LABELITEM value CLASSITEM 'value' CLASS NAME '' EXPRESSION ([value]=-10001) TEMPLATE 'empty space' END # CLASS CLASS NAME 'Units: Number of People' EXPRESSION ([value]=-110003) TEMPLATE 'units as title in legend' END # CLASS Thanks for any hints! Stef From Steve.Lime at dnr.state.mn.us Tue Aug 26 06:44:38 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Tue, 26 Aug 2008 08:44:38 -0500 Subject: [mapserver-users] querybypoint Message-ID: <48B3C2770200008F0001ADC3@co5.dnr.state.mn.us> Hi: This is the basic query method in MapServer. It allows you to intersect a point with one or more layers. In MapScript there are layerObj and mapObj wrappers for it. To make a layer queryable via a point you need to: 1) define a presentation template, this could be as simple as TEMPLATE 'foo' if you don't intend to use it 2) set a layer TOLERANCE value That should do it. Steve >>> "ramya srinivasan" 08/26/08 5:09 AM >>> hi, Can anyone tell me about QueryBypoint method and the faetures to be included in the mapfile for this method to work From gemerson at WelshCo.com Tue Aug 26 07:02:41 2008 From: gemerson at WelshCo.com (Emerson, Gabe) Date: Tue, 26 Aug 2008 09:02:41 -0500 Subject: [mapserver-users] Maximum number of layers? In-Reply-To: <48ADB140.4090401@mapgears.com> References: <48AC3878.7030301@gslab.com><90a5e5b30808200924y17c9248fx9630ae7bfa879bb4@mail.gmail.com><48AD5B82.8090604@gslab.com> <135fc07d0808210607j49addbf6k46c05300bd5e6314@mail.gmail.com><348277DFCE9FF044B3812A6CF459CD37F64352@welshmail.welshco.com.local> <48ADB140.4090401@mapgears.com> Message-ID: <348277DFCE9FF044B3812A6CF459CD370101AB73@welshmail.welshco.com.local> Hi everyone, After some more experimentation and looking at the server logs (we use IIS), I tracked this down to the MS_MAX_CGI_PARAMS value in cgiutil: cgiutil.c: ... while( post_data[0] ) { if(m >= MS_MAX_CGI_PARAMS) { msIO_printf("Too many name/value pairs, aborting.\n"); exit(0); } ... Cgiutil.h: ... #define MS_MAX_CGI_PARAMS 100 ... So it looks like I'll have to recompile if I want to pass mapserv more than 100 variables at a time. Is this wise? I imagine the limit is there for a reason. My setup is already getting slow dealing with the amount of data I have in it. I was hoping to have each of my layers individually controllable, but maybe I'll have to stick with groups for the sake of performance. Instead of giving each layer its own variable, would it be a feasible workaround to combine all the active layer names into the single variable "layers"? Again, I'm wondering what performance would be like once I start passing hundreds of layer names in each cgi request. The template scripting to put everything into "layers" could also slow things down. -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Daniel Morissette Sent: Thursday, August 21, 2008 1:18 PM To: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Maximum number of layers? There is no static limit on the number of layers in a map with MapServer 5.2. It must be something in one of your layers that causes MapServer to fail. Have a look at your Apache's error_log file, it may contain hints about the problem... you could also try enabling debug/logging and see if that triggers any useful info (see http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28/) Daniel Emerson, Gabe wrote: > Hello all, > > > > I'm running into an error when I try to use more than 64 layers in my > map. I know the older versions of Mapserver could handle at least 100 > layers, and I've read posts from people who currently use up to several > hundred (I'm using v5.2.0) so I'm not sure what's going on. > > > > The error I get is: > > > > GCI Error > > The specified CGI application misbehaved by not returning a complete set > of HTTP headers. > > > > I have a couple hundred layers that I'd like to show. I can live with a > limit of 200-300 if necessary, but 64 seems rather on the low side. The > majority are points with pixmap symbols, but I also have some aerials, > road vectors, and polygon vectors. I've tried this with different > subsets of layers, so it doesn't seem to be any one layer or set of > layers in particular causing the problem. 64 seems to be the maximum I > can have enabled no matter what type they are. > > > > I initially thought this could be a problem with the rendering of the > pixmaps, but I've tried changing a few symbols to vectors with the same > result. I also considered that the legend was becoming too large, but > when I have 64 layers on, adding one more causes the same error even if > it's a layer with no legend entry. > > > > I am using POST to pass the layers from plain old HTML, GET acts the > same way. As far as I can tell there's no hard limit for the size/length > of text passed this way, and I'm not getting any size-exceeded errors. > > > > Does anyone have any suggestions on this? > > > > Thanks, > > > > -Gabe Emerson > > > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Daniel Morissette http://www.mapgears.com/ _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users From jmckenna at gatewaygeomatics.com Tue Aug 26 07:28:04 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 26 Aug 2008 10:28:04 -0400 Subject: [mapserver-users] Apache can't start on windows In-Reply-To: <1219751065502-783828.post@n2.nabble.com> References: <1219748113275-783741.post@n2.nabble.com> <44074.145.50.39.11.1219748468.squirrel@webmail.hostingdiscounter.nl> <1219751065502-783828.post@n2.nabble.com> Message-ID: <48B412F4.8090907@gatewaygeomatics.com> This is issue was first reported on August 14th (http://www.nabble.com/apache-does-not-start-(ms4w-Apache-conf-httpd.conf)-td18977162.html) and to fix it you need to comment the line that Bart mentioned and restart Apache. Another option is that you uninstall MS4W and go back to the downloads page and re-download it, since this issue was fixed on the 14th. Hint: always use the commandline to restart Apache (/ms4w/restart-apache.bat) so you can see the messages that Apache reports, otherwise you will get a "black screen" that flashes quickly when you click on it directly. Also, please note that MS4W does have its own mailing list for reporting issues such as these (join at: http://lists.maptools.org/mailman/listinfo/ms4w-users). thanks. -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ helen wrote: > thanks for the fast response. i have tried to install the c++ runtime > (vcredist_x86.exe) but black screen comes and nothing appeared. i comment > the fcgid_module but the result is the same. please help me > > thanks in advance > > Helen > > > bartvde wrote: >> Possibly the Microsoft Runtime is not available on your system, see also >> the following thread: >> >> http://www.nabble.com/fastCgiServer-with-ms4w-td18348539.html >> >> You can also just comment the following line in httpd.conf if you don't >> need FastCGI: >> >> #LoadModule fcgid_module modules/mod_fcgid.so >> >> Best regards, >> Bart >> >>> Hi, >>> >>> I have installed mapserver5.2 (Ms4W) on windows xp. but i can't get >>> started >>> the apache. i have tried with port 80,8080. but it is the same. it >>> display >>> on the system event the following messages >>> >>> The Apache MS4W Web Server service terminated with service-specific error >>> 1 >>> (0x1). >>> The Apache MS4W Web Server service entered the stopped state. --info >>> The Apache MS4W Web Server service was successfully sent a start >>> control.--info >>> Generate Activation Context failed for C:\Program >>> Files\ms4w\Apache\modules\mod_fcgid.so. Reference error message: The >>> operation completed successfully. >>> Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error >>> message: The referenced assembly is not installed on your system. >>> Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error >>> was >>> The referenced assembly is not installed on your system. >>> >>> pls pls , say something to these errors. >>> >>> thanks >>> >>> Helen >>> From julien.trolet at ifremer.fr Tue Aug 26 08:16:28 2008 From: julien.trolet at ifremer.fr (julien) Date: Tue, 26 Aug 2008 17:16:28 +0200 Subject: [mapserver-users] [mapserver] Java - PostGIS - Quoting issue in SQL request In-Reply-To: <48B41C44.3090606@ifremer.fr> References: <48B41C44.3090606@ifremer.fr> Message-ID: <48B41E4C.1040608@ifremer.fr> Hello, I am developing an interface for a PostreSQL/PostGIS (v8.2) database using Mapserver (v 5.2.0) and Java (v6.0). I obtained some nice maps using a basic SQL query, inserted into the mapfile. But as soon as I tried to _use some simple quote *'* or *\'*_, the server cannot draw the layer and report the following error : java.lang.UnknownError: msPOSTGISLayerRetrievePK(): Query error. Error executing POSTGIS statement (msPOSTGISLayerRetrievePK():select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = '/*REQUEST REMOVED*/' and pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null edu.umn.gis.mapscript.mapscriptJNI.layerObj_draw(Native Method) edu.umn.gis.mapscript.layerObj.draw(layerObj.java:472) fr.ird.remige.bean.MapFileBean$layerItemClass.draw(MapFileBean.java:617) fr.ird.remige.bean.MapFileBean.draw(MapFileBean.java:1105) REQUEST REMOVED was something like : g_carre5 from (select distinct g_carre5 from carre inner join date using (id_date) inner join country using (id_country) WHERE v_date BETWEEN 2000 AND 2001 AND _*l_country='France'*_ group by g_carre5) as foo The previous request, which was working, was : g_carre5 from (select distinct g_carre5 from carre inner join date using (id_date) inner join country using (id_country) WHERE v_date BETWEEN 2000 AND 2001 AND _*v_country=1*_ group by g_carre5) as foo _ Table country :_ id_country serial primary key v_country numeric(4) l_country varchar(12) And first line is id_country = 1, v_country = 1, l_country = France. One strange thing is that, when I am using a mapfile script on my computer (not on the server) and transform it into an image file with *shp2img* (shell command), both requests are working. Moreover, both requests are also working with SQL command, when logged into the database. In Java, the string containing the request is : "g_carre5 from (select distinct g_carre5 from carre inner join date using (id_date) inner join country using (id_country) WHERE v_date BETWEEN 2000 AND 2001 AND l_country=\'France\' group by g_carre5) as foo". I also tried to replace *\' *by *\"*, and the expected error /*column "France" does not exist*/ was reported, which shows that Libmapscript.so translated *\"* correctly. I do not understand why there is this quoting issue. Does somebody have ever dealt with something like that? Julien -------------- next part -------------- An HTML attachment was scrubbed... URL: From nils.zierath at uni-bonn.de Tue Aug 26 08:45:35 2008 From: nils.zierath at uni-bonn.de (Nils Zierath) Date: Tue, 26 Aug 2008 17:45:35 +0200 Subject: [mapserver-users] howto draw amount of points features of one layer depending on scale Message-ID: <48B4251F.6050905@uni-bonn.de> Dear list, I got a layer with gps points. On the largest scale of my map the symbols for points overlap and are not distinguishable from one another since they are too close together. Is it possible to tell mapserver to draw only that many of the points/symbols that do not overlap, so that more points will be shown the more I zoom into the map? Thank you, Nils From nils.zierath at uni-bonn.de Tue Aug 26 08:57:23 2008 From: nils.zierath at uni-bonn.de (Nils Zierath) Date: Tue, 26 Aug 2008 17:57:23 +0200 Subject: [mapserver-users] howto draw amount of points features of one layer depending on scale In-Reply-To: <48B4251F.6050905@uni-bonn.de> References: <48B4251F.6050905@uni-bonn.de> Message-ID: <48B427E3.4090600@uni-bonn.de> Nils Zierath schrieb: > Dear list, > I got a layer with gps points. On the largest scale of my map I was talking about the smallest scale, off course > symbols for points overlap and are not distinguishable from one another > since they are too close together. > > Is it possible to tell mapserver to draw only that many of the > points/symbols that do not overlap, so that more points will be shown > the more I zoom into the map? > > Thank you, > Nils > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Nils Zierath ZEF 10 Years 1997-2007: 10 Years of Development Research on Economic, Cultural, and Ecological Change in the Developing World Center for Development Research Department of Ecology and Resource Management Walter-Flex-Strasse 3 53113 Bonn (Germany) Tel.: +49 (0) 228 - 73-1793 FAX: +49 (0) 228 - 73-1889 E-Mail: nils.zierath at uni-bonn.de Web: http://www.coffee.uni-bonn.de http://www.zef.de From szekerest at gmail.com Tue Aug 26 09:17:19 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Tue, 26 Aug 2008 18:17:19 +0200 Subject: [mapserver-users] howto draw amount of points features of one layer depending on scale In-Reply-To: <48B427E3.4090600@uni-bonn.de> References: <48B4251F.6050905@uni-bonn.de> <48B427E3.4090600@uni-bonn.de> Message-ID: Nils, How about using a SYMBOLSCALEDENOM setting at LAYER level? For more information see: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer Best regards, Tamas 2008/8/26 Nils Zierath : > > Nils Zierath schrieb: >> >> Dear list, >> I got a layer with gps points. On the largest scale of my map > > I was talking about the smallest scale, off course > >> symbols for points overlap and are not distinguishable from one another >> since they are too close together. >> >> Is it possible to tell mapserver to draw only that many of the >> points/symbols that do not overlap, so that more points will be shown the >> more I zoom into the map? >> >> Thank you, >> Nils >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > Nils Zierath > > ZEF 10 Years > 1997-2007: 10 Years of Development Research > on Economic, Cultural, and Ecological Change > in the Developing World > > Center for Development Research > Department of Ecology and Resource Management > > Walter-Flex-Strasse 3 > 53113 Bonn (Germany) > > Tel.: +49 (0) 228 - 73-1793 > FAX: +49 (0) 228 - 73-1889 > > E-Mail: nils.zierath at uni-bonn.de > Web: http://www.coffee.uni-bonn.de > http://www.zef.de > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From jmckenna at gatewaygeomatics.com Tue Aug 26 09:23:18 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Tue, 26 Aug 2008 12:23:18 -0400 Subject: [mapserver-users] howto draw amount of points features of one layer depending on scale In-Reply-To: <48B4251F.6050905@uni-bonn.de> References: <48B4251F.6050905@uni-bonn.de> Message-ID: <48B42DF6.1090902@gatewaygeomatics.com> hmm, you could experiment using TYPE ANNOTATION for your layer and giving the label a BUFFER value...and see if that makes any difference. -jeff Nils Zierath wrote: > Dear list, > I got a layer with gps points. On the largest scale of my map the > symbols for points overlap and are not distinguishable from one another > since they are too close together. > > Is it possible to tell mapserver to draw only that many of the > points/symbols that do not overlap, so that more points will be shown > the more I zoom into the map? > > Thank you, > Nils > -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From percyd at pdx.edu Tue Aug 26 09:28:55 2008 From: percyd at pdx.edu (David Percy) Date: Tue, 26 Aug 2008 09:28:55 -0700 Subject: [mapserver-users] howto draw amount of points features of one layer depending on scale In-Reply-To: <48B4251F.6050905@uni-bonn.de> References: <48B4251F.6050905@uni-bonn.de> Message-ID: <48B42F47.9060601@pdx.edu> If you treated them as labels when zoomed out (maxscale 50000 for example), then you could take advantage of the label colission features of mapserver to avoid overlaps. when zoomed in further you could have another layer (minscale 50000 for example) that shows all the detail... so you would have two layer definitions in this case... Cheers, Percy Nils Zierath wrote: > Dear list, > I got a layer with gps points. On the largest scale of my map the > symbols for points overlap and are not distinguishable from one another > since they are too close together. > > Is it possible to tell mapserver to draw only that many of the > points/symbols that do not overlap, so that more points will be shown > the more I zoom into the map? > > Thank you, > Nils > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 From nbest at lanworth.com Tue Aug 26 12:32:47 2008 From: nbest at lanworth.com (nbest) Date: Tue, 26 Aug 2008 12:32:47 -0700 (PDT) Subject: [mapserver-users] Using mapserver with EPSG:900913 In-Reply-To: <48AD5B82.8090604@gslab.com> References: <48AD5B82.8090604@gslab.com> Message-ID: <1219779167377-785077.post@n2.nabble.com> Does anyone have some JS that overlays a WMS serving EPSG:900913 images through the GMap API? I am aware of the tile mode available in MS 5.2 but at the moment I would have to break up with FWTools and I am hesitant to tinker with my server in that way. I took the projection description from http://spatialreference.org/ref/user/google-projection/ (which appears to be functionally equivalent the definition in the RFC 43 patch) and added it to the epsg file as <900913>. I found some JS examples such as http://gapanalysis.nbii.gov/files/gmaps/gmap_WMS.html and http://lyceum.massgis.state.ma.us/wiki/doku.php?id=googlemaps:home that appear to connect to WMSs that are serving images not in the Google projection and doing some adjustments to the bounding box coordinates. Using those JS scripts appears to introduce a north-south shift but I don't know if that's coming from the JS or a server-side proj problem. Does anyone have any lat-lon, 900913 x-y coordinate pairs that I could use to test in proj? spatialreference.org can't seem to do it right now. Thanks. Neil -- View this message in context: http://n2.nabble.com/Re%3A-Using-mapserver-with-EPSG%3A900913-tp738215p785077.html Sent from the Mapserver - User mailing list archive at Nabble.com. From crschmidt at metacarta.com Tue Aug 26 13:22:12 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 26 Aug 2008 16:22:12 -0400 Subject: [mapserver-users] Using mapserver with EPSG:900913 In-Reply-To: <1219779167377-785077.post@n2.nabble.com> References: <48AD5B82.8090604@gslab.com> <1219779167377-785077.post@n2.nabble.com> Message-ID: <20080826202212.GA4510@metacarta.com> On Tue, Aug 26, 2008 at 12:32:47PM -0700, nbest wrote: > > > Does anyone have some JS that overlays a WMS serving EPSG:900913 images > through the GMap API? I've always just done this with TileCache: http://crschmidt.net/blog/311/using-tilecache-with-google-maps-and-virtual-earth/ Do you really need WMS? It's possible, but I'd have to write some code, and I'm very lazy :) > Does anyone have any lat-lon, 900913 x-y coordinate pairs that I could > use to test in proj? spatialreference.org can't seem to do it right > now. Thanks. Open any modern OpenLayers page. Open Firebug. (Or just open http://openlayers.org/dev/examples/debug.html , which has firebug lite.) Type the following: new OpenLayers.LonLat(-71,42).transform(new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913")); Get result: lon=-7903683.845222223,lat=5160979.443331368 Regards, -- Christopher Schmidt MetaCarta From richard.greenwood at gmail.com Tue Aug 26 16:21:48 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 26 Aug 2008 17:21:48 -0600 Subject: [mapserver-users] Using mapserver with EPSG:900913 In-Reply-To: <20080826202212.GA4510@metacarta.com> References: <48AD5B82.8090604@gslab.com> <1219779167377-785077.post@n2.nabble.com> <20080826202212.GA4510@metacarta.com> Message-ID: On Tue, Aug 26, 2008 at 2:22 PM, Christopher Schmidt wrote: > On Tue, Aug 26, 2008 at 12:32:47PM -0700, nbest wrote: >> >> >> Does anyone have some JS that overlays a WMS serving EPSG:900913 images >> through the GMap API? > > I've always just done this with TileCache: > > http://crschmidt.net/blog/311/using-tilecache-with-google-maps-and-virtual-earth/ > > Do you really need WMS? It's possible, but I'd have to write some code, > and I'm very lazy :) > >> Does anyone have any lat-lon, 900913 x-y coordinate pairs that I could >> use to test in proj? spatialreference.org can't seem to do it right >> now. Thanks. > > Open any modern OpenLayers page. > > Open Firebug. (Or just open > http://openlayers.org/dev/examples/debug.html , which has firebug lite.) > > Type the following: > > new OpenLayers.LonLat(-71,42).transform(new > OpenLayers.Projection("EPSG:4326"), new > OpenLayers.Projection("EPSG:900913")); I know I'll get slammed for this, but it should be something more like: new OpenLayers.LonLat(-71,42).transform(new OpenLayers.CS("EPSG:4326"), new OpenLayers.CS("EPSG:900913")); Because EPSG:4326 is not a Projection, it is a Coordinate System. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From crschmidt at metacarta.com Tue Aug 26 17:16:31 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Tue, 26 Aug 2008 20:16:31 -0400 Subject: [mapserver-users] Using mapserver with EPSG:900913 In-Reply-To: References: <48AD5B82.8090604@gslab.com> <1219779167377-785077.post@n2.nabble.com> <20080826202212.GA4510@metacarta.com> Message-ID: <20080827001631.GA8927@metacarta.com> On Tue, Aug 26, 2008 at 05:21:48PM -0600, Richard Greenwood wrote: > > Type the following: > > > > new OpenLayers.LonLat(-71,42).transform(new > > OpenLayers.Projection("EPSG:4326"), new > > OpenLayers.Projection("EPSG:900913")); > > I know I'll get slammed for this, but it should be something more like: > > new OpenLayers.LonLat(-71,42).transform(new > OpenLayers.CS("EPSG:4326"), new > OpenLayers.CS("EPSG:900913")); > > Because EPSG:4326 is not a Projection, it is a Coordinate System. I don't mind you saying that, but the user should realize that when you say "Should Be" you're not not instructing what he should actually be doing in his current code, since the OpenLayers Library uses OpenLayers.Projection, not OpenLayers.CS. (It also calls XYs "LonLat"s, and many other similar mistaken naming choices.) I'd recommend if you care about this issue, you should bring it up with the OpenLayers development list, but I wouldn't bother; getting people to undestand "Projection" is hard enough. (ANd why should it be CS instead of CRS? or SRS? Or any number of other names that it could be related to?) Regards, -- Christopher Schmidt MetaCarta From richard.greenwood at gmail.com Tue Aug 26 17:27:17 2008 From: richard.greenwood at gmail.com (Richard Greenwood) Date: Tue, 26 Aug 2008 18:27:17 -0600 Subject: [mapserver-users] Using mapserver with EPSG:900913 In-Reply-To: <20080827001631.GA8927@metacarta.com> References: <48AD5B82.8090604@gslab.com> <1219779167377-785077.post@n2.nabble.com> <20080826202212.GA4510@metacarta.com> <20080827001631.GA8927@metacarta.com> Message-ID: On Tue, Aug 26, 2008 at 6:16 PM, Christopher Schmidt wrote: > On Tue, Aug 26, 2008 at 05:21:48PM -0600, Richard Greenwood wrote: >> > Type the following: >> > >> > new OpenLayers.LonLat(-71,42).transform(new >> > OpenLayers.Projection("EPSG:4326"), new >> > OpenLayers.Projection("EPSG:900913")); >> >> I know I'll get slammed for this, but it should be something more like: >> >> new OpenLayers.LonLat(-71,42).transform(new >> OpenLayers.CS("EPSG:4326"), new >> OpenLayers.CS("EPSG:900913")); >> >> Because EPSG:4326 is not a Projection, it is a Coordinate System. > > I don't mind you saying that, but the user should realize that when you > say "Should Be" you're not not instructing what he should actually be > doing in his current code, since the OpenLayers Library uses > OpenLayers.Projection, not OpenLayers.CS. Yes, you are quite right about that. I did not mean to imply that OpenLayers.CS worked, I was picking at nomenclature. > I'd recommend if you care about this issue, you should bring it up with > the OpenLayers development list, but I wouldn't bother; getting people > to undestand "Projection" is hard enough. (ANd why should it be CS > instead of CRS? or SRS? Or any number of other names that it could be > related to?) CS, CRS, SRS are all great - they cover spherical & projected coordinate systems, and include datums. Projections are just projections w/o datums. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From ahelen19 at gmail.com Tue Aug 26 23:42:49 2008 From: ahelen19 at gmail.com (helen) Date: Tue, 26 Aug 2008 23:42:49 -0700 (PDT) Subject: [mapserver-users] Apache can't start on windows In-Reply-To: <48B412F4.8090907@gatewaygeomatics.com> References: <1219748113275-783741.post@n2.nabble.com> <44074.145.50.39.11.1219748468.squirrel@webmail.hostingdiscounter.nl> <1219751065502-783828.post@n2.nabble.com> <48B412F4.8090907@gatewaygeomatics.com> Message-ID: <1219819369680-786208.post@n2.nabble.com> Hi, Thanks for ur help i get it working. The problem was i have to start the apache from the command line. i think it should be told that apache can be started only from the command line. thanks Helen Jeff McKenna wrote: > > This is issue was first reported on August 14th > (http://www.nabble.com/apache-does-not-start-(ms4w-Apache-conf-httpd.conf)-td18977162.html) > and to fix it you need to comment the line that Bart mentioned and > restart Apache. Another option is that you uninstall MS4W and go back > to the downloads page and re-download it, since this issue was fixed on > the 14th. Hint: always use the commandline to restart Apache > (/ms4w/restart-apache.bat) so you can see the messages that Apache > reports, otherwise you will get a "black screen" that flashes quickly > when you click on it directly. > > Also, please note that MS4W does have its own mailing list for reporting > issues such as these (join at: > http://lists.maptools.org/mailman/listinfo/ms4w-users). > > thanks. > > -- > Jeff McKenna > FOSS4G Consulting and Training Services > http://www.gatewaygeomatics.com/ > > > > helen wrote: >> thanks for the fast response. i have tried to install the c++ runtime >> (vcredist_x86.exe) but black screen comes and nothing appeared. i comment >> the fcgid_module but the result is the same. please help me >> >> thanks in advance >> >> Helen >> >> >> bartvde wrote: >>> Possibly the Microsoft Runtime is not available on your system, see also >>> the following thread: >>> >>> http://www.nabble.com/fastCgiServer-with-ms4w-td18348539.html >>> >>> You can also just comment the following line in httpd.conf if you don't >>> need FastCGI: >>> >>> #LoadModule fcgid_module modules/mod_fcgid.so >>> >>> Best regards, >>> Bart >>> >>>> Hi, >>>> >>>> I have installed mapserver5.2 (Ms4W) on windows xp. but i can't get >>>> started >>>> the apache. i have tried with port 80,8080. but it is the same. it >>>> display >>>> on the system event the following messages >>>> >>>> The Apache MS4W Web Server service terminated with service-specific >>>> error >>>> 1 >>>> (0x1). >>>> The Apache MS4W Web Server service entered the stopped state. --info >>>> The Apache MS4W Web Server service was successfully sent a start >>>> control.--info >>>> Generate Activation Context failed for C:\Program >>>> Files\ms4w\Apache\modules\mod_fcgid.so. Reference error message: The >>>> operation completed successfully. >>>> Resolve Partial Assembly failed for Microsoft.VC90.CRT. Reference error >>>> message: The referenced assembly is not installed on your system. >>>> Dependent Assembly Microsoft.VC90.CRT could not be found and Last Error >>>> was >>>> The referenced assembly is not installed on your system. >>>> >>>> pls pls , say something to these errors. >>>> >>>> thanks >>>> >>>> Helen >>>> > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://n2.nabble.com/Apache-can%27t-start-on-windows-tp783741p786208.html Sent from the Mapserver - User mailing list archive at Nabble.com. From group.ritesh at gmail.com Wed Aug 27 00:30:14 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Wed, 27 Aug 2008 00:30:14 -0700 (PDT) Subject: [MAPSERVER-USERS] Key labelcache_map_edge_buffer does not exist (While using TiF files in Raster Layer) Message-ID: <19176014.post@talk.nabble.com> Hello, I am using Tilecache to generate tiles by reading few raster layers from my mapfile. I have successfully generated tiles using tilecache and mapserver vector layers. My raster images includes TIF files. When I checked my logs, I got these errors/warning: getMetaData: Hash table error. Key labelcache_map_edge_buffer does not exist msDrawLabelCacheGD(): labelcache_map_edge_buffer = -15 I have not used labelcache_map_edge_buffer anywhere in the mapfile. I tried to keep a negative value to this in the METADATA seciton, but it didn't worked. I am using MapServer version 5.0.0. Any help will be highly appreciated. Thanks, Ritesh Ambastha -- View this message in context: http://www.nabble.com/Key-labelcache_map_edge_buffer-does-not-exist-%28While-using-TiF-files-in-Raster-Layer%29-tp19176014p19176014.html Sent from the Mapserver - User mailing list archive at Nabble.com. From julien.trolet at ifremer.fr Wed Aug 27 00:30:56 2008 From: julien.trolet at ifremer.fr (julien) Date: Wed, 27 Aug 2008 09:30:56 +0200 Subject: [mapserver-users] [mapserver] Java - PostGIS - Quoting issue in SQL request In-Reply-To: References: <48B41C44.3090606@ifremer.fr> <48B41E4C.1040608@ifremer.fr> Message-ID: <48B502B0.8020302@ifremer.fr> Hello Karim, As I reported in my first mail, it is the first pair of quotes like in *'*France*'* which induce the error. I tried *''*France*''*, with double single quote (*'*), but it is also not working. Thanks anyway for the help. Julien alim karim wrote: > Perhaps you can try escaping your quotes like so: > > 'person's name' => 'person''s name' > > ak > > On Tue, Aug 26, 2008 at 8:16 AM, julien > wrote: > > Hello, > > I am developing an interface for a PostreSQL/PostGIS (v8.2) > database using Mapserver (v 5.2.0) and Java (v6.0). > I obtained some nice maps using a basic SQL query, inserted into > the mapfile. > > But as soon as I tried to _use some simple quote *'* or *\'*_, the > server cannot draw the layer and report the following error : > > java.lang.UnknownError: msPOSTGISLayerRetrievePK(): Query error. Error executing POSTGIS statement (msPOSTGISLayerRetrievePK():select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = '/*REQUEST REMOVED*/' and pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null > edu.umn.gis.mapscript.mapscriptJNI.layerObj_draw(Native Method) > edu.umn.gis.mapscript.layerObj.draw(layerObj.java:472) > fr.ird.remige.bean.MapFileBean$layerItemClass.draw(MapFileBean.java:617) > fr.ird.remige.bean.MapFileBean.draw(MapFileBean.java:1105) > > > > REQUEST REMOVED was something like : > > g_carre5 from (select distinct g_carre5 from carre > inner join date using (id_date) > inner join country using (id_country) > WHERE v_date BETWEEN 2000 AND 2001 AND _*l_country='France'*_ > group by g_carre5) as foo > > The previous request, which was working, was : > > g_carre5 from (select distinct g_carre5 from carre > inner join date using (id_date) > inner join country using (id_country) > WHERE v_date BETWEEN 2000 AND 2001 AND _*v_country=1*_ > group by g_carre5) as foo > > _ > Table country :_ > id_country serial primary key > v_country numeric(4) > l_country varchar(12) > > And first line is id_country = 1, v_country = 1, l_country = France. > > One strange thing is that, when I am using a mapfile script on my > computer (not on the server) and transform it into an image file > with *shp2img* (shell command), both requests are working. > Moreover, both requests are also working with SQL command, when > logged into the database. > > In Java, the string containing the request is : "g_carre5 from > (select distinct g_carre5 from carre inner join date using > (id_date) inner join country using (id_country) WHERE v_date > BETWEEN 2000 AND 2001 AND l_country=\'France\' group by g_carre5) > as foo". > > I also tried to replace *\' *by *\"*, and the expected error > /*column "France" does not exist*/ was reported, which shows that > Libmapscript.so translated *\"* correctly. > > I do not understand why there is this quoting issue. Does somebody > have ever dealt with something like that? > > Julien > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaisuvyas at gmail.com Wed Aug 27 06:01:06 2008 From: jaisuvyas at gmail.com (=?UTF-8?B?4LSo4LWG4LSf4LWB4LSu4LWN4LSq4LS+4LSy?= =?UTF-8?B?IOC0nOC0r+C1jeC0uOC1huC0qOC1jeKAjQ==?=) Date: Wed, 27 Aug 2008 08:01:06 -0500 Subject: [mapserver-users] Resource viewer for grama panchayat In-Reply-To: <7db916da0808221240o3f6d513cj8c636ba7ce7aa49@mail.gmail.com> References: <7db916da0808221240o3f6d513cj8c636ba7ce7aa49@mail.gmail.com> Message-ID: <7db916da0808270601tb5291bbhe4c7f5d0f111cf21@mail.gmail.com> Hai, Let me introduce my work to the list:- http://cheruvannur.web4all.in/resources/ Hope, I can hear valuable suggestions. It is hosted on a Debian GNU/Linux Etch server. It was my main project during my M.Sc. course in last semester, and I decided to do this because I wanted to do something useful for the panchayat - my first employer :) (Panchayats are the rural local authorities in India, just like Municipalities - the urban thing.) My course is just finished. I developed this on a Debian GNU/Linux Etch system using GRASS GIS, PostgreSQL with PostGIS, Quantum GIS, UMN MapServer, ka-Map etc. Coded in MapScript and php. All Free/Open Source things. I want to expand this to the entire district with some added query modules, such as shortest route to a place, maximum coverage for some areas, flood risk analysis etc, to make it a complete plan-development support system. -- ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ http://www.whylinuxisbetter.net/ ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ (`'?.?(`'?.? ?.?'?)?.?'?) ???`?*Jaisen.*..??`? (?.?'?(?.?'? `'?.?)`'?.?) ?.?? ( `?.? `?.? ) ?.?)? (.?? ( `v? ) `v? -------------- next part -------------- An HTML attachment was scrubbed... URL: From nils.zierath at uni-bonn.de Wed Aug 27 06:42:52 2008 From: nils.zierath at uni-bonn.de (Nils Zierath) Date: Wed, 27 Aug 2008 15:42:52 +0200 Subject: [mapserver-users] howto draw amount of points features of one layer depending on scale In-Reply-To: <48B42F47.9060601@pdx.edu> References: <48B4251F.6050905@uni-bonn.de> <48B42F47.9060601@pdx.edu> Message-ID: <48B559DC.8060603@uni-bonn.de> Hi David, your suggestion is similar to Jeff's? How would I treat a point as lable? I haven't had any luck in displaying the points with "TYPE ANNOTATION". What would the syntax in the mapfile would look like to either treat a point as lable or with "TYPE ANNOTATION"? My mapfile currently looks like: LAYER NAME 'Field research locations' DATA '../vector/gps/fieldresearch_complete' STATUS default TYPE point #TYPE annotation TRANSPARENCY 100 TOLERANCE 7 TOLERANCEUNITS pixels UNITS kilometers METADATA ... END #METADATA PROJECTION ... END #PROJECTION CLASSITEM 'StudyFocus' #LABELITEM 'LableAnnot' CLASS NAME 'Research locations (all)' #MINSCALEDENOM 1000000 STYLE SYMBOL 'ttf_pin-sm' SIZE 10 COLOR 255 180 0 ANGLE 345 END #STYLE END #CLASS END #LAYER David Percy schrieb: > If you treated them as labels when zoomed out (maxscale 50000 for > example), then you could take advantage of the label colission features > of mapserver to avoid overlaps. > > when zoomed in further you could have another layer (minscale 50000 for > example) that shows all the detail... > > so you would have two layer definitions in this case... > Cheers, > Percy > > > Nils Zierath wrote: >> Dear list, >> I got a layer with gps points. On the largest scale of my map the >> symbols for points overlap and are not distinguishable from one >> another since they are too close together. >> >> Is it possible to tell mapserver to draw only that many of the >> points/symbols that do not overlap, so that more points will be shown >> the more I zoom into the map? >> >> Thank you, >> Nils >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > From yassefa at dmsolutions.ca Wed Aug 27 06:44:10 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 27 Aug 2008 09:44:10 -0400 Subject: [MAPSERVER-USERS] Key labelcache_map_edge_buffer does not exist (While using TiF files in Raster Layer) In-Reply-To: <19176014.post@talk.nabble.com> References: <19176014.post@talk.nabble.com> Message-ID: <48B55A2A.7050704@dmsolutions.ca> This should only happen if you have you have debug ON at the map level. Setting it to OFF should get rid of the message. Best Regards, Ritesh Ambastha wrote: > Hello, > > I am using Tilecache to generate tiles by reading few raster layers from my > mapfile. I have successfully generated tiles using tilecache and mapserver > vector layers. My raster images includes TIF files. > > When I checked my logs, I got these errors/warning: > > > getMetaData: Hash table error. Key labelcache_map_edge_buffer does not exist > msDrawLabelCacheGD(): labelcache_map_edge_buffer = -15 > > > I have not used labelcache_map_edge_buffer anywhere in the mapfile. I tried > to keep a negative value to this in the METADATA seciton, but it didn't > worked. > > I am using MapServer version 5.0.0. > > Any help will be highly appreciated. > > Thanks, > Ritesh Ambastha -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From arnaud.sig at gmail.com Wed Aug 27 07:07:02 2008 From: arnaud.sig at gmail.com (Arnaud Vandecasteele) Date: Wed, 27 Aug 2008 18:07:02 +0400 Subject: [mapserver-users] Use featureid WMS Property in MapServer Message-ID: <166b86070808270707r255407c4n57c56cf17bb539b4@mail.gmail.com> Hi the list, I work in fedora 8, and my MapServer version is : 4.10.3. I use MapServer as a WMS/WFS Server. For a project, i need to be able to ask some custom WMS request to MapServer. The aim it's that a user can draw a polygon on a map and all the feature includ in this polygon will be color in an other style (like yellow for example). So can I use the WMS property featureid (or FILTER) ? My example works with G?oServer but not with mapServer. Could someone tell me what is wrong ? Here it's my OpenLayers code : // setup tiled layer tiled = new OpenLayers.Layer.WMS( "topp:rts_nv_6_7_8 - Tiled", " http://localhost:8080/geoserver/wms", { width: '800', srs: 'EPSG:4326', styles: '', height: '629', layers: 'topp:rts_nv_6_7_8', format: 'image/png', tiled: 'true', tilesOrigin : "55.186482,-21.41333445", featureid:'rts_nv_6_7_8.1' }, {buffer: 0} ); // Layer Route Niveau1 rprincipal_z500KWMS = new OpenLayers.Layer.WMS( "rprincipal_z500KWMS", " http://localhost/cgi-bin/mapserv?map=/var/www/html/mapserver/rdt_map.map", { layers: 'rprincipal_z500K', srs: 'EPSG:4326', width: '800', styles: '', height: '626', format: 'image/png', tiled: 'true', tilesOrigin : "55.185611724,-21.415085482499997", transparent:true, featureid:'rprincipal_z500KWMS.1' }, {buffer: 0} ); And my map configuration : ####################################### LAYER NAME "rprincipal_z500K" MINSCALE 250000 MAXSCALE 500000 METADATA "wms_title" "rprincipal_z500K" "wfs_title" "rprincipal_z500K" "gml_featureid" "id_voie" END DUMP TRUE PROJECTION "init=epsg:4326" END TEMPLATE " " TOLERANCE 5 GROUP map_ligne TYPE LINE STATUS ON CONNECTIONTYPE OGR CONNECTION "/home/projets/v3/projets/reunion/routes/route_frca_3_4.tab" CLASS STYLE COLOR 255 0 0 SYMBOL "line" SIZE 4 MINSIZE 4 MAXSIZE 36 END STYLE COLOR 250 250 200 SYMBOL "line" SIZE 2 MINSIZE 2 MAXSIZE 22 END END # END OF CLASS END ####################################### -- -------------------------------------------------------------------- Van De Casteele Arnaud 72 Rue de la colline des cam?lias 97400 Saint-Denis 0262 30 67 79 - 0692 23 73 17 SIG - WebMapping - GPS embarqu? Site internet : http://cataloguesig.c-webhosting.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at osgis.nl Wed Aug 27 07:11:17 2008 From: bartvde at osgis.nl (bartvde at osgis.nl) Date: Wed, 27 Aug 2008 16:11:17 +0200 (CEST) Subject: [mapserver-users] Use featureid WMS Property in MapServer In-Reply-To: <166b86070808270707r255407c4n57c56cf17bb539b4@mail.gmail.com> References: <166b86070808270707r255407c4n57c56cf17bb539b4@mail.gmail.com> Message-ID: <19399.145.50.39.11.1219846277.squirrel@webmail.hostingdiscounter.nl> This is probably a vendor-specific extension that Geoserver did, since this is not part of the WMS standard AFAIK. With Mapserver you have to create an SLD (Styled Layer Descriptor) document to achieve the same thing. In an SLD you can use a Filter. Best regards, Bart > Hi the list, > > I work in fedora 8, and my MapServer version is : 4.10.3. I use MapServer > as > a WMS/WFS Server. > For a project, i need to be able to ask some custom WMS request to > MapServer. The aim it's that a user can draw a polygon on a map and all > the > feature includ in this polygon will be color in an other style (like > yellow > for example). > So can I use the WMS property featureid (or FILTER) ? My example works > with > G?oServer but not with mapServer. Could someone tell me what is wrong ? > > Here it's my OpenLayers code : > > // setup tiled layer > tiled = new OpenLayers.Layer.WMS( > "topp:rts_nv_6_7_8 - Tiled", " > http://localhost:8080/geoserver/wms", > { > width: '800', > srs: 'EPSG:4326', > styles: '', > height: '629', > layers: 'topp:rts_nv_6_7_8', > format: 'image/png', > tiled: 'true', > tilesOrigin : "55.186482,-21.41333445", > featureid:'rts_nv_6_7_8.1' > }, > {buffer: 0} > ); > > // Layer Route Niveau1 > rprincipal_z500KWMS = new OpenLayers.Layer.WMS( > "rprincipal_z500KWMS", " > http://localhost/cgi-bin/mapserv?map=/var/www/html/mapserver/rdt_map.map", > { > layers: 'rprincipal_z500K', > srs: 'EPSG:4326', > width: '800', > styles: '', > height: '626', > format: 'image/png', > tiled: 'true', > tilesOrigin : > "55.185611724,-21.415085482499997", > transparent:true, > featureid:'rprincipal_z500KWMS.1' > }, > {buffer: 0} > ); > > And my map configuration : > > ####################################### > LAYER > NAME "rprincipal_z500K" > MINSCALE 250000 > MAXSCALE 500000 > METADATA > "wms_title" "rprincipal_z500K" > "wfs_title" "rprincipal_z500K" > "gml_featureid" "id_voie" > END > DUMP TRUE > PROJECTION > "init=epsg:4326" > END > TEMPLATE " " > TOLERANCE 5 > GROUP map_ligne > TYPE LINE > STATUS ON > CONNECTIONTYPE OGR > CONNECTION > "/home/projets/v3/projets/reunion/routes/route_frca_3_4.tab" > CLASS > STYLE > COLOR 255 0 0 > SYMBOL "line" > SIZE 4 > MINSIZE 4 > MAXSIZE 36 > END > STYLE > COLOR 250 250 200 > SYMBOL "line" > SIZE 2 > MINSIZE 2 > MAXSIZE 22 > END > END # END OF CLASS > END > ####################################### > > -- > -------------------------------------------------------------------- > Van De Casteele Arnaud > 72 Rue de la colline des cam?lias 97400 Saint-Denis > 0262 30 67 79 - 0692 23 73 17 > SIG - WebMapping - GPS embarqu? > Site internet : http://cataloguesig.c-webhosting.org/ > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From yassefa at dmsolutions.ca Wed Aug 27 07:26:50 2008 From: yassefa at dmsolutions.ca (Yewondwossen Assefa) Date: Wed, 27 Aug 2008 10:26:50 -0400 Subject: [mapserver-users] howto draw amount of points features of one layer depending on scale In-Reply-To: <48B559DC.8060603@uni-bonn.de> References: <48B4251F.6050905@uni-bonn.de> <48B42F47.9060601@pdx.edu> <48B559DC.8060603@uni-bonn.de> Message-ID: <48B5642A.2040306@dmsolutions.ca> Nils, look at this thread: it gives details of what you want to accomplish with an example of a working layer: http://www.mail-archive.com/mapserver-users at lists.osgeo.org/msg00164.html Best Regards, Nils Zierath wrote: > Hi David, > your suggestion is similar to Jeff's? > How would I treat a point as lable? I haven't had any luck in displaying > the points with "TYPE ANNOTATION". > > What would the syntax in the mapfile would look like to either treat a > point as lable or with "TYPE ANNOTATION"? > > My mapfile currently looks like: > > LAYER > NAME 'Field research locations' > DATA '../vector/gps/fieldresearch_complete' > STATUS default > TYPE point > #TYPE annotation > TRANSPARENCY 100 > TOLERANCE 7 > TOLERANCEUNITS pixels > UNITS kilometers > > METADATA > ... > END #METADATA > > PROJECTION > ... > END #PROJECTION > > CLASSITEM 'StudyFocus' > #LABELITEM 'LableAnnot' > > CLASS > NAME 'Research locations (all)' > #MINSCALEDENOM 1000000 > > STYLE > SYMBOL 'ttf_pin-sm' > SIZE 10 > COLOR 255 180 0 > ANGLE 345 > END #STYLE > END #CLASS > END #LAYER > > > > David Percy schrieb: >> If you treated them as labels when zoomed out (maxscale 50000 for >> example), then you could take advantage of the label colission >> features of mapserver to avoid overlaps. >> >> when zoomed in further you could have another layer (minscale 50000 >> for example) that shows all the detail... >> >> so you would have two layer definitions in this case... >> Cheers, >> Percy >> >> >> Nils Zierath wrote: >>> Dear list, >>> I got a layer with gps points. On the largest scale of my map the >>> symbols for points overlap and are not distinguishable from one >>> another since they are too close together. >>> >>> Is it possible to tell mapserver to draw only that many of the >>> points/symbols that do not overlap, so that more points will be shown >>> the more I zoom into the map? >>> >>> Thank you, >>> Nils >>> >>> _______________________________________________ >>> mapserver-users mailing list >>> mapserver-users at lists.osgeo.org >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------------- 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 Wed Aug 27 07:39:57 2008 From: crschmidt at metacarta.com (Christopher Schmidt) Date: Wed, 27 Aug 2008 10:39:57 -0400 Subject: [MAPSERVER-USERS] Key labelcache_map_edge_buffer does not exist (While using TiF files in Raster Layer) In-Reply-To: <19176014.post@talk.nabble.com> References: <19176014.post@talk.nabble.com> Message-ID: <20080827143957.GG26678@metacarta.com> On Wed, Aug 27, 2008 at 12:30:14AM -0700, Ritesh Ambastha wrote: > > Hello, > > I am using Tilecache to generate tiles by reading few raster layers from my > mapfile. I have successfully generated tiles using tilecache and mapserver > vector layers. My raster images includes TIF files. You sound like you're using TileCache with metaTiling. TileCache sets this property internally when using metaTiling. I'm surprised you're seeing this though. The code says: try: # if the metadata is already set, don't override. wms.getMetaData("labelcache_map_edge_buffer") except mapscript._mapscript.MapServerError: Perhaps turning debug off as suggested will get rid of this... I don't know. But this is definitely directly related to TileCache. > When I checked my logs, I got these errors/warning: > > > getMetaData: Hash table error. Key labelcache_map_edge_buffer does not exist > msDrawLabelCacheGD(): labelcache_map_edge_buffer = -15 > > > I have not used labelcache_map_edge_buffer anywhere in the mapfile. I tried > to keep a negative value to this in the METADATA seciton, but it didn't > worked. > > I am using MapServer version 5.0.0. > > Any help will be highly appreciated. > > Thanks, > Ritesh Ambastha > -- > View this message in context: http://www.nabble.com/Key-labelcache_map_edge_buffer-does-not-exist-%28While-using-TiF-files-in-Raster-Layer%29-tp19176014p19176014.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users -- Christopher Schmidt MetaCarta From group.ritesh at gmail.com Wed Aug 27 08:40:23 2008 From: group.ritesh at gmail.com (Ritesh Ambastha) Date: Wed, 27 Aug 2008 08:40:23 -0700 (PDT) Subject: [MAPSERVER-USERS] Key labelcache_map_edge_buffer does not exist (While using TiF files in Raster Layer) In-Reply-To: <20080827143957.GG26678@metacarta.com> References: <19176014.post@talk.nabble.com> <20080827143957.GG26678@metacarta.com> Message-ID: <19183697.post@talk.nabble.com> Thanks Christopher, I turned DEBUG OFF, and resolved the problem. Now I am successfully generating tiles from Mapserver's raster layer. Regards, Ritesh Ambastha Christopher Schmidt-4 wrote: > > On Wed, Aug 27, 2008 at 12:30:14AM -0700, Ritesh Ambastha wrote: >> >> Hello, >> >> I am using Tilecache to generate tiles by reading few raster layers from >> my >> mapfile. I have successfully generated tiles using tilecache and >> mapserver >> vector layers. My raster images includes TIF files. > > You sound like you're using TileCache with metaTiling. TileCache sets > this property internally when using metaTiling. > > I'm surprised you're seeing this though. The code says: > > try: > # if the metadata is already set, don't override. > wms.getMetaData("labelcache_map_edge_buffer") > except mapscript._mapscript.MapServerError: > > Perhaps turning debug off as suggested will get rid of this... > > I don't know. But this is definitely directly related to TileCache. > >> When I checked my logs, I got these errors/warning: >> >> >> getMetaData: Hash table error. Key labelcache_map_edge_buffer does not >> exist >> msDrawLabelCacheGD(): labelcache_map_edge_buffer = -15 >> >> >> I have not used labelcache_map_edge_buffer anywhere in the mapfile. I >> tried >> to keep a negative value to this in the METADATA seciton, but it didn't >> worked. >> >> I am using MapServer version 5.0.0. >> >> Any help will be highly appreciated. >> >> Thanks, >> Ritesh Ambastha >> -- >> View this message in context: >> http://www.nabble.com/Key-labelcache_map_edge_buffer-does-not-exist-%28While-using-TiF-files-in-Raster-Layer%29-tp19176014p19176014.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- > Christopher Schmidt > MetaCarta > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/Key-labelcache_map_edge_buffer-does-not-exist-%28While-using-TiF-files-in-Raster-Layer%29-tp19176014p19183697.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thy at 42.dk Wed Aug 27 12:06:06 2008 From: thy at 42.dk (Kristian Thy) Date: Wed, 27 Aug 2008 21:06:06 +0200 Subject: [mapserver-users] GetFeatureInfo from Oracle Spatial In-Reply-To: <484D4A62020000E90005AC02@mail.msp.gouv.qc.ca> References: <20080607224919.GB14026@42.dk> <484D4A62020000E90005AC02@mail.msp.gouv.qc.ca> Message-ID: <20080827190606.GA29383@42.dk> On Mon, Jun 09, SIMON MERCIER wrote: > maybe you can try to limite the output field in the metadata > "$$$_include_items" "$$$_exclude_items" tag : > ... > DATA "SHAPE FROM MAPSERVER_TRIMQ USING UNIQUE MAXIMO_ID SRID 32632 > VERSION 10g" > ... > METADATA > ... > "wms_exclude_items" "ALL" > "wms_include_items" "MAXIMO_ID, ASSETTYPE" > "oms_exclude_items" "ALL" > "ows_include_items" "MAXIMO_ID, ASSETTYPE" > "gms_exclude_items" "ALL" > "gml_include_items" "MAXIMO_ID, ASSETTYPE" > END > ... Yeah, it's been a while ... ;-) Just wanted to record for posterity that the cause of my problem was my unique id not being unique in the table. \\kristian -- ... et nemo ex vobis interrogat me: ?Quo vadis?? From mgleahy at alumni.uwaterloo.ca Wed Aug 27 21:43:46 2008 From: mgleahy at alumni.uwaterloo.ca (Mike Leahy) Date: Thu, 28 Aug 2008 16:43:46 +1200 Subject: [mapserver-users] expressions for Postgis layers Message-ID: <48B62D02.3030100@alumni.uwaterloo.ca> Hello list, I'm having a bit of trouble setting up expressions for a PostGIS layer. The layer is fine if I set the CLASSITEM property for the property, and set the EXPRESSION equal to specific values. However, I'd like to be able to use more complex expressions based on one or more fields in the layer. Unfortunately, I can't seem to get it to work just with a single field. Below is an example of a layer in my mapfile - previously it was classified using the field 'lcdb1name' as the classitem. I tried rewriting the expression (see below), but I just get a blank image - no error messages. I'm fairly sure that I've done this before...maybe somebody can spot what I've missed? Thanks for any help, Mike ================================ LAYER NAME 'Land Cover Database' TYPE POLYGON CONNECTIONTYPE postgis CONNECTION 'host=localhost user=postgres dbname=testdb port=5432' DATA 'the_geom FROM lcdb_test' STATUS ON #CLASSITEM 'lcdb1name' CLASS NAME 'High Producing Exotic Grassland' #EXPRESSION "High Producing Exotic Grassland" EXPRESSION "('[lcdb1name]' = 'High Producing Exotic Grassland')" STYLE OUTLINECOLOR 192 192 192 COLOR 170 255 0 END END END From gregor at hostgis.com Wed Aug 27 21:46:36 2008 From: gregor at hostgis.com (Gregor Mosheh) Date: Wed, 27 Aug 2008 22:46:36 -0600 Subject: [mapserver-users] expressions for Postgis layers In-Reply-To: <48B62D02.3030100@alumni.uwaterloo.ca> References: <48B62D02.3030100@alumni.uwaterloo.ca> Message-ID: <48B62DAC.6030308@hostgis.com> Mike Leahy wrote: > EXPRESSION "('[lcdb1name]' = 'High Producing Exotic Grassland')" Remove the "" from it. An expression with () around it is the complex sort you're looking for. -- Gregor Mosheh / Greg Allensworth BS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From mgleahy at alumni.uwaterloo.ca Wed Aug 27 21:53:58 2008 From: mgleahy at alumni.uwaterloo.ca (Mike Leahy) Date: Thu, 28 Aug 2008 16:53:58 +1200 Subject: [mapserver-users] expressions for Postgis layers In-Reply-To: <48B62DAC.6030308@hostgis.com> References: <48B62D02.3030100@alumni.uwaterloo.ca> <48B62DAC.6030308@hostgis.com> Message-ID: <48B62F66.5040605@alumni.uwaterloo.ca> Thanks for such a quick answer. Of course, the mapfile reference had the answer right in front of me - it just didn't click. Regards, Mike Gregor Mosheh wrote: > Mike Leahy wrote: >> EXPRESSION "('[lcdb1name]' = 'High Producing Exotic Grassland')" > > Remove the "" from it. An expression with () around it is the complex > sort you're looking for. > From valerio.vianello at yahoo.it Thu Aug 28 00:16:47 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Thu, 28 Aug 2008 07:16:47 +0000 (GMT) Subject: [mapserver-users] show only some point on the map Message-ID: <682497.61302.qm@web27304.mail.ukl.yahoo.com> Dear list, I have this question: I have a map file in which there is a POINT layer that uses a shapefile as datasource. Is possible with mapserver to do a request to show only some point on the map ? I know that i can show a group of points or only one point using FILTER and CLASSITEM into the map file but my goal is a bit different. In my case each poi has an ID into the shapefile, and I want make a request to serve? the follow question: Show on map the poi with ID 3,6,8. any suggetsion ? P.S I'm using CGI interface maybe is this possible to do with mapscript ? thanks everybady Valerio __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From adams at terrestris.de Thu Aug 28 00:35:59 2008 From: adams at terrestris.de (Till Adams) Date: Thu, 28 Aug 2008 09:35:59 +0200 Subject: [mapserver-users] show only some point on the map In-Reply-To: <682497.61302.qm@web27304.mail.ukl.yahoo.com> References: <682497.61302.qm@web27304.mail.ukl.yahoo.com> Message-ID: <48B6555F.5000604@terrestris.de> Dear Valerio, I guess what you need is this: http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub So add a variable substitution and insert it into your expression in the CALL section of your layer. Regards, Till > Dear list, > > I have this question: > > I have a map file in which there is a POINT layer that uses a > shapefile as datasource. Is possible with mapserver to do a request to > show only some point on the map ? > > I know that i can show a group of points or only one point using > FILTER and CLASSITEM into the map file but my goal is a bit different. > In my case each poi has an ID into the shapefile, and I want make a > request to serve the follow question: > > Show on map the poi with ID 3,6,8. > > any suggetsion ? > > P.S I'm using CGI interface maybe is this possible to do with mapscript ? > > thanks everybady > > Valerio > > > __________________________________________________ > Do You Yahoo!? > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > tanto spazio gratuito per i tuoi file e i messaggi > http://mail.yahoo.it > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------- 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 valerio.vianello at yahoo.it Thu Aug 28 01:28:55 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Thu, 28 Aug 2008 08:28:55 +0000 (GMT) Subject: [mapserver-users] show only some point on the map In-Reply-To: <48B6555F.5000604@terrestris.de> Message-ID: <498289.90429.qm@web27303.mail.ukl.yahoo.com> Dear Till, Thanks for the suggestion. But with variable substitution I am able to specify only one parameter like EXPRESSION ([FNR]=%myid%) . in this case on the map will be shown only one point (if myid is unique) or a group of points (if myid is shared among them) in my case I want show the points with myid1,myid2,myid3... how I should set this into the mapfile ? regards Valerio --- Gio 28/8/08, Till Adams ha scritto: Da: Till Adams Oggetto: Re: [mapserver-users] show only some point on the map A: valerio.vianello at yahoo.it Cc: "mapserver" Data: Gioved? 28 agosto 2008, 09:35 Dear Valerio, I guess what you need is this: http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub So add a variable substitution and insert it into your expression in the CALL section of your layer. Regards, Till > Dear list, > > I have this question: > > I have a map file in which there is a POINT layer that uses a > shapefile as datasource. Is possible with mapserver to do a request to > show only some point on the map ? > > I know that i can show a group of points or only one point using > FILTER and CLASSITEM into the map file but my goal is a bit different. > In my case each poi has an ID into the shapefile, and I want make a > request to serve the follow question: > > Show on map the poi with ID 3,6,8. > > any suggetsion ? > > P.S I'm using CGI interface maybe is this possible to do with mapscript ? > > thanks everybady > > Valerio > > > __________________________________________________ > Do You Yahoo!? > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > tanto spazio gratuito per i tuoi file e i messaggi > http://mail.yahoo.it > ------------------------------------------------------------------------ > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ---------------------------------------------------------- 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 __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From adams at terrestris.de Thu Aug 28 01:41:34 2008 From: adams at terrestris.de (Till Adams) Date: Thu, 28 Aug 2008 10:41:34 +0200 Subject: [mapserver-users] show only some point on the map In-Reply-To: <498289.90429.qm@web27303.mail.ukl.yahoo.com> References: <498289.90429.qm@web27303.mail.ukl.yahoo.com> Message-ID: <48B664BE.8090006@terrestris.de> valerio, OK, I think you may use more than one subvar, but if there are too many, ... And there is no way to group the points together in any attribute, which are shown together? One solution might be to generate a temporary view in a database (if the points come out of such) and then send the name of the view via subvar to your file. Even better, generate a string out of your selected gid's like 1,3,45,567,789,790 Send this Stringvia subvar to your mapfile and use a "WHERE gid IN (' YOURSTRING ') in your SQL in the mapfile... Another possible solution might be...hack around and not really fine, but write a temporary SLD file - which only works when using mapserver as WMS server. You can let a script write a temporary-SLD file, where your filter is set to your ids and apply this to your getmap request (&SLD=path/tp/your_name.xml). To ensure, that only user A uses his filtered SLD, we normally used the PHP session ID or sth similar for naming the sld. Many ideas, find the best way for you... Regards, Till > Dear Till, > > Thanks for the suggestion. > > But with variable substitution I am able to specify only one parameter > like > > EXPRESSION ([FNR]=%myid%) . > > in this case on the map will be shown only one point (if myid is > unique) or a group of points (if myid is shared among them) > > in my case I want show the points with myid1,myid2,myid3... > > how I should set this into the mapfile ? > > regards > > Valerio > --- *Gio 28/8/08, Till Adams //* ha scritto: > > Da: Till Adams > Oggetto: Re: [mapserver-users] show only some point on the map > A: valerio.vianello at yahoo.it > Cc: "mapserver" > Data: Gioved? 28 agosto 2008, 09:35 > > Dear Valerio, > > I guess what you need is this: > http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub > > So add a variable substitution and insert it into your expression in the > CALL section of your layer. > > Regards, > Till > > Dear list, > > > > I have this question: > > > > I have a map file in which there is a POINT layer that uses a > > shapefile as datasource. Is possible with mapserver to do a request to > > show only some point on the map ? > > > > I know that i can show a group of points or only one point using > > FILTER and CLASSITEM into the map file but my goal is a bit different. > > In my case each poi has an ID into the shapefile, and I want make a > > request to serve the follow question: > > > > Show on map the poi with ID 3,6,8. > > > > any suggetsion ? > > > > P.S I'm using CGI interface maybe is this possible to do with > mapscript ? > > > > thanks everybady > > > > Valerio > > > > > > __________________________________________________ > > Do You Yahoo!? > > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > > > tanto spazio gratuito per i tuoi file e i messaggi > > http://mail.yahoo.it > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > ---------------------------------------------------------- > 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 > > > > > __________________________________________________ > Do You Yahoo!? > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > tanto spazio gratuito per i tuoi file e i messaggi > http://mail.yahoo.it -- ---------------------------------------------------------- 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 pal.kristensen at statkart.no Thu Aug 28 02:11:50 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Thu, 28 Aug 2008 02:11:50 -0700 (PDT) Subject: [MAPSERVER-USERS] New cache mechanism In-Reply-To: <18273341.post@talk.nabble.com> References: <18273341.post@talk.nabble.com> Message-ID: <19196930.post@talk.nabble.com> Hi all! GeoCache version 0.2 is now available on codeplex. News: - Cross platform, windows an linux with use of mono. - Support for apache - Some bug fixing In development: - the ability make geoCache response to regular WMS GetMap requests, not only WMS-C Regards, P?l Kristensen P?l Kristensen wrote: > > Hi! > > Norwegian Mapping and Cadastre Authority (statkart) has developed a new > open source cache mechanism called geoCache, for use with WMS services. > The project is part of a larger research activity which is being performed > by statkart and Gecko Informasjonssystemer AS (www.gecko.no), partially > founded by Innovation Norway > (www.innovasjonnorge.no/system/Global-toppmeny/English/). The research > activity will be carried out to the end of 2009. > > GeoCache is based on the tilecache.org project, but is completely > rewritten, version 0.1 is published at codeplex > (http://www.codeplex.com/geoCache). > > GeoCache will be subject to extensive development, and one of the main > projects in the research activity the next year. Some of the new features > that will be developed first is: > - the ability make geoCache response to regular WMS GetMap requests, not > only WMS-C. > - partially cache updates > - dynamic cache generation (cache is generated by use) > - cross platform support (Linux and Windows as a minimum) and support for > apache > > Regards, > P?l Kristensen > > -- View this message in context: http://www.nabble.com/New-cache-mechanism-tp18273341p19196930.html Sent from the Mapserver - User mailing list archive at Nabble.com. From fcampos at efacec.pt Thu Aug 28 02:50:57 2008 From: fcampos at efacec.pt (FCampos) Date: Thu, 28 Aug 2008 02:50:57 -0700 (PDT) Subject: [MAPSERVER-USERS] New cache mechanism In-Reply-To: <18273341.post@talk.nabble.com> References: <18273341.post@talk.nabble.com> Message-ID: <19197435.post@talk.nabble.com> Hi, what are the diferences between tilecahce and geocache ? What geocache does better than tilecache ? cheers. Filipe P?l Kristensen wrote: > > Hi! > > Norwegian Mapping and Cadastre Authority (statkart) has developed a new > open source cache mechanism called geoCache, for use with WMS services. > The project is part of a larger research activity which is being performed > by statkart and Gecko Informasjonssystemer AS (www.gecko.no), partially > founded by Innovation Norway > (www.innovasjonnorge.no/system/Global-toppmeny/English/). The research > activity will be carried out to the end of 2009. > > GeoCache is based on the tilecache.org project, but is completely > rewritten, version 0.1 is published at codeplex > (http://www.codeplex.com/geoCache). > > GeoCache will be subject to extensive development, and one of the main > projects in the research activity the next year. Some of the new features > that will be developed first is: > - the ability make geoCache response to regular WMS GetMap requests, not > only WMS-C. > - partially cache updates > - dynamic cache generation (cache is generated by use) > - cross platform support (Linux and Windows as a minimum) and support for > apache > > Regards, > P?l Kristensen > > -- View this message in context: http://www.nabble.com/New-cache-mechanism-tp18273341p19197435.html Sent from the Mapserver - User mailing list archive at Nabble.com. From hellomps at gmail.com Thu Aug 28 03:06:37 2008 From: hellomps at gmail.com (ramya srinivasan) Date: Thu, 28 Aug 2008 15:36:37 +0530 Subject: [mapserver-users] Querybypoint and drawquery Message-ID: <3702658f0808280306j4abbc620o5b427420582fc728@mail.gmail.com> hi, iam new to mapservers.can i get a sample php code for implementation of queryBypoint and drawquery methods and the required changes to be made in the mapfile for this code to work.Also please say something about template in the layer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.vianello at yahoo.it Thu Aug 28 03:15:09 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Thu, 28 Aug 2008 10:15:09 +0000 (GMT) Subject: [mapserver-users] show only some point on the map In-Reply-To: <48B664BE.8090006@terrestris.de> Message-ID: <757879.19018.qm@web27301.mail.ukl.yahoo.com> Hi Till, maybe I forgot to tell you that my data source is a shapefile and not a database. so if I have good understood the only solution that I have to try is to use an SLD file. Regards to group the point in such a way in not possible in this case becouse I have a certain number of points and in each request the user should be able to select the point to show. br, Valerio. --- Gio 28/8/08, Till Adams ha scritto: Da: Till Adams Oggetto: Re: [mapserver-users] show only some point on the map A: valerio.vianello at yahoo.it Cc: "mapserver" Data: Gioved? 28 agosto 2008, 10:41 valerio, OK, I think you may use more than one subvar, but if there are too many, ... And there is no way to group the points together in any attribute, which are shown together? One solution might be to generate a temporary view in a database (if the points come out of such) and then send the name of the view via subvar to your file. Even better, generate a string out of your selected gid's like 1,3,45,567,789,790 Send this Stringvia subvar to your mapfile and use a "WHERE gid IN (' YOURSTRING ') in your SQL in the mapfile... Another possible solution might be...hack around and not really fine, but write a temporary SLD file - which only works when using mapserver as WMS server. You can let a script write a temporary-SLD file, where your filter is set to your ids and apply this to your getmap request (&SLD=path/tp/your_name.xml). To ensure, that only user A uses his filtered SLD, we normally used the PHP session ID or sth similar for naming the sld. Many ideas, find the best way for you... Regards, Till > Dear Till, > > Thanks for the suggestion. > > But with variable substitution I am able to specify only one parameter > like > > EXPRESSION ([FNR]=%myid%) . > > in this case on the map will be shown only one point (if myid is > unique) or a group of points (if myid is shared among them) > > in my case I want show the points with myid1,myid2,myid3... > > how I should set this into the mapfile ? > > regards > > Valerio > --- *Gio 28/8/08, Till Adams //* ha scritto: > > Da: Till Adams > Oggetto: Re: [mapserver-users] show only some point on the map > A: valerio.vianello at yahoo.it > Cc: "mapserver" > Data: Gioved? 28 agosto 2008, 09:35 > > Dear Valerio, > > I guess what you need is this: > http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub > > So add a variable substitution and insert it into your expression in the > CALL section of your layer. > > Regards, > Till > > Dear list, > > > > I have this question: > > > > I have a map file in which there is a POINT layer that uses a > > shapefile as datasource. Is possible with mapserver to do a request to > > show only some point on the map ? > > > > I know that i can show a group of points or only one point using > > FILTER and CLASSITEM into the map file but my goal is a bit different. > > In my case each poi has an ID into the shapefile, and I want make a > > request to serve the follow question: > > > > Show on map the poi with ID 3,6,8. > > > > any suggetsion ? > > > > P.S I'm using CGI interface maybe is this possible to do with > mapscript ? > > > > thanks everybady > > > > Valerio > > > > > > __________________________________________________ > > Do You Yahoo!? > > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > > > tanto spazio gratuito per i tuoi file e i messaggi > > http://mail.yahoo.it > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > ---------------------------------------------------------- > 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 > > > > > __________________________________________________ > Do You Yahoo!? > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > tanto spazio gratuito per i tuoi file e i messaggi > http://mail.yahoo.it -- ---------------------------------------------------------- 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 __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From hellomps at gmail.com Thu Aug 28 04:01:33 2008 From: hellomps at gmail.com (ramya srinivasan) Date: Thu, 28 Aug 2008 16:31:33 +0530 Subject: [mapserver-users] Can anyone help me please???/ Message-ID: <3702658f0808280401h6c5c2f1eo9cf7b664e3a83299@mail.gmail.com> HI, I have to display the user clicked point on the map. But i don get the point in the map.. Can any one please correct my code.. setXY($HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]); $nGeoX = Pix2Geo($my_point->x, 0,$map->width , $map->extext->minx, $map->extent->maxx, 0); $nGeoY = Pix2Geo($my_point->y, 0, $map->height, $map->extent->miny, $map->extent->maxy, 1); $point=ms_newpointobj(); $point->setXY($nGeoX,$nGeoY); $layer=$map->getLayerByName("US state boundaries"); if (@$layer->queryByPoint($point,MS_SINGLE ,0) == MS_SUCCESS) { $image_from_query=$map->drawQuery(); $image_from_query_url=$image_from_query->saveWebImage(); } } function Pix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, $dfGeoMax, $nInversePix) { $dfWidthGeo = $dfGeoMax - $dfGeoMin; $dfWidthPix = $dfPixMax - $dfPixMin; $dfPixToGeo = $dfWidthGeo / $dfWidthPix; if (!$nInversePix) $dfDeltaPix = $nPixPos - $dfPixMin; else $dfDeltaPix = $dfPixMax - $nPixPos; $dfDeltaGeo = $dfDeltaPix * $dfPixToGeo; $dfPosGeo = $dfGeoMin + $dfDeltaGeo; return ($dfPosGeo); } $image=$map->draw(); $image_url=$image->saveWebImage(); ?> map file MAP NAME USA1 STATUS ON SIZE 800 500 IMAGETYPE PNG IMAGECOLOR 200 200 200 SHAPEPATH "C:\ms4w\Apache\data" EXTENT -8000000 300000 5000000 1500000 UNITS METERS PROJECTION "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" END WEB IMAGEPATH "C:\ms4w\tmp\ms_tmp" IMAGEURL "C:\ms4w\tmp\ms_tmp" 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 175 175 175 COLOR 150 150 150 SYMBOL 0 TEMPLATE "hello.html" END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at ec.gc.ca Thu Aug 28 05:12:29 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Thu, 28 Aug 2008 08:12:29 -0400 Subject: [mapserver-users] MapServer history In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC3D9@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F036CF4EE@ecburexch1.ontario.int.ec.gc.ca> All: we have made some headwway here (see wiki page per below). If there is anything you feel would be valuable to add to the history (some references to popular apps starting to use MapServer would be good highlights, IMHO), or if some information is incorrect, feel free to make modifications to the wiki page or pass them along. Thanks ..Tom > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org > [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of > Kralidis,Tom [Burlington] > Sent: 22 August, 2008 2:06 PM > To: Jeff McKenna; mapserver-users at lists.osgeo.org > Subject: RE: [mapserver-users] MapServer history > > > Thanks for this. Steve's history would be of obvious value here! > > I've started a page at > http://trac.osgeo.org/mapserver/wiki/MapServerHistory . > Contributions are welcome! > > ..Tom > > > -----Original Message----- > From: mapserver-users-bounces at lists.osgeo.org on behalf of > Jeff McKenna > Sent: Fri 22-Aug-08 12:12 > To: mapserver-users at lists.osgeo.org > Subject: Re: [mapserver-users] MapServer history > > There is a history section in the (unpublished) user > manual...and Steve Lime wrote an excellent chapter on > MapServer (for an OSGeo book, I believe). > > > > Kralidis,Tom [Burlington] wrote: > > Interesting thread going on at > > http://lists.osgeo.org/pipermail/discuss/2008-August/004120.html > > > > I think it would be valuable to have this for MapServer. > There would be > > initial effort, but it could be easily maintained over time > (2-3 times > > per year/as needed). > > > > I'd be interested in helping out, or even coordinating, but > this would > > depend on compilation and input from many in the MapServer community > > (users, developers, etc.). > > > > Any interest? > > From pal.kristensen at statkart.no Thu Aug 28 05:56:54 2008 From: pal.kristensen at statkart.no (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Thu, 28 Aug 2008 05:56:54 -0700 (PDT) Subject: [MAPSERVER-USERS] New cache mechanism In-Reply-To: <19197435.post@talk.nabble.com> References: <18273341.post@talk.nabble.com> <19197435.post@talk.nabble.com> Message-ID: <19199965.post@talk.nabble.com> Hi! One big difference is that GeoCache is written in .Net, while tilecache.org is written in python. But more important is that one of the main targets for the GeoCache development is to make the cache capable of answering regular WMS GetMap request (not only WMS-C), and in that way be totally transparent to the end user. This has the potential to speed up regular WMS services by maybe 10 times or more. There are some obvious challenges in achieving this: 1) How to handle different projections in the requests? 2) How to handle layers and group layers? The developers does understand this issues, and they will be solved. At the moment there is no "show-stoppers". Further the GeoCache shall be able to build cache on demand, in the areas requested by the users. The GeoCache is also designed form scratch to be fast, at the moment the GeoCache software has no trouble delivering 500 tiles pr second, on one regular low-end server. FCampos wrote: > > Hi, > what are the diferences between tilecahce and geocache ? > What geocache does better than tilecache ? > > cheers. > Filipe > > > P?l Kristensen wrote: >> >> Hi! >> >> Norwegian Mapping and Cadastre Authority (statkart) has developed a new >> open source cache mechanism called geoCache, for use with WMS services. >> The project is part of a larger research activity which is being >> performed by statkart and Gecko Informasjonssystemer AS (www.gecko.no), >> partially founded by Innovation Norway >> (www.innovasjonnorge.no/system/Global-toppmeny/English/). The research >> activity will be carried out to the end of 2009. >> >> GeoCache is based on the tilecache.org project, but is completely >> rewritten, version 0.1 is published at codeplex >> (http://www.codeplex.com/geoCache). >> >> GeoCache will be subject to extensive development, and one of the main >> projects in the research activity the next year. Some of the new features >> that will be developed first is: >> - the ability make geoCache response to regular WMS GetMap requests, not >> only WMS-C. >> - partially cache updates >> - dynamic cache generation (cache is generated by use) >> - cross platform support (Linux and Windows as a minimum) and support >> for apache >> >> Regards, >> P?l Kristensen >> >> > > -- View this message in context: http://www.nabble.com/New-cache-mechanism-tp18273341p19199965.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at dnr.state.mn.us Thu Aug 28 07:27:28 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Thu, 28 Aug 2008 09:27:28 -0500 Subject: [mapserver-users] show only some point on the map Message-ID: <48B66F800200008F0001AF27@co5.dnr.state.mn.us> The IN operator works with all datasources since it's an expression. I've done this before and it works fine although there are probably some practical limits in the number of features you'd want to deal with this way. If you can group the IDs into one var (e.g ids) and then use an expression like: EXRESSION ('[myid] in '%ids') That should work... Steve >>> valerio vianello 08/28/08 5:16 AM >>> Hi Till, maybe I forgot to tell you that my data source is a shapefile and not a database. so if I have good understood the only solution that I have to try is to use an SLD file. Regards to group the point in such a way in not possible in this case becouse I have a certain number of points and in each request the user should be able to select the point to show. br, Valerio. --- Gio 28/8/08, Till Adams ha scritto: Da: Till Adams Oggetto: Re: [mapserver-users] show only some point on the map A: valerio.vianello at yahoo.it Cc: "mapserver" Data: Gioved? 28 agosto 2008, 10:41 valerio, OK, I think you may use more than one subvar, but if there are too many, ... And there is no way to group the points together in any attribute, which are shown together? One solution might be to generate a temporary view in a database (if the points come out of such) and then send the name of the view via subvar to your file. Even better, generate a string out of your selected gid's like 1,3,45,567,789,790 Send this Stringvia subvar to your mapfile and use a "WHERE gid IN (' YOURSTRING ') in your SQL in the mapfile... Another possible solution might be...hack around and not really fine, but write a temporary SLD file - which only works when using mapserver as WMS server. You can let a script write a temporary-SLD file, where your filter is set to your ids and apply this to your getmap request (&SLD=path/tp/your_name.xml). To ensure, that only user A uses his filtered SLD, we normally used the PHP session ID or sth similar for naming the sld. Many ideas, find the best way for you... Regards, Till > Dear Till, > > Thanks for the suggestion. > > But with variable substitution I am able to specify only one parameter > like > > EXPRESSION ([FNR]=%myid%) . > > in this case on the map will be shown only one point (if myid is > unique) or a group of points (if myid is shared among them) > > in my case I want show the points with myid1,myid2,myid3... > > how I should set this into the mapfile ? > > regards > > Valerio > --- *Gio 28/8/08, Till Adams //* ha scritto: > > Da: Till Adams > Oggetto: Re: [mapserver-users] show only some point on the map > A: valerio.vianello at yahoo.it > Cc: "mapserver" > Data: Gioved? 28 agosto 2008, 09:35 > > Dear Valerio, > > I guess what you need is this: > http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub > > So add a variable substitution and insert it into your expression in the > CALL section of your layer. > > Regards, > Till > > Dear list, > > > > I have this question: > > > > I have a map file in which there is a POINT layer that uses a > > shapefile as datasource. Is possible with mapserver to do a request to > > show only some point on the map ? > > > > I know that i can show a group of points or only one point using > > FILTER and CLASSITEM into the map file but my goal is a bit different. > > In my case each poi has an ID into the shapefile, and I want make a > > request to serve the follow question: > > > > Show on map the poi with ID 3,6,8. > > > > any suggetsion ? > > > > P.S I'm using CGI interface maybe is this possible to do with > mapscript ? > > > > thanks everybady > > > > Valerio > > > > > > > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > > > tanto spazio gratuito per i tuoi file e i messaggi > > http://mail.yahoo.it > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > ---------------------------------------------------------- > 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 > > > > > __________________________________________________ > Do You Yahoo!? > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > tanto spazio gratuito per i tuoi file e i messaggi > http://mail.yahoo.it -- ---------------------------------------------------------- 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 __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it From nuryadin at gmail.com Thu Aug 28 07:45:09 2008 From: nuryadin at gmail.com (Ruslan Nuryadin) Date: Thu, 28 Aug 2008 21:45:09 +0700 Subject: [mapserver-users] Can anyone help me please???/ In-Reply-To: <3702658f0808280401h6c5c2f1eo9cf7b664e3a83299@mail.gmail.com> References: <3702658f0808280401h6c5c2f1eo9cf7b664e3a83299@mail.gmail.com> Message-ID: Try these: 1. On your map file: IMAGEURL "/ms_tmp/" 2. On your PHP code, add:
>
Regards, Ruslan On Thu, Aug 28, 2008 at 6:01 PM, ramya srinivasan wrote: > HI, > I have to display the user clicked point on the map. But i don get the > point in the map.. Can any one please correct my code.. > dl('php_mapscript.dll'); > // Default values and configuration > $map_file="./usa12.map"; > $map = ms_newMapObj($map_file); > if ( isset($HTTP_POST_VARS["mapa_x"]) && isset($HTTP_POST_VARS["mapa_y"])) > { > $my_point = ms_newpointObj(); > $my_point->setXY($HTTP_POST_VARS["mapa_x"],$HTTP_POST_VARS["mapa_y"]); > $nGeoX = Pix2Geo($my_point->x, 0,$map->width , $map->extext->minx, > $map->extent->maxx, 0); > $nGeoY = Pix2Geo($my_point->y, 0, $map->height, $map->extent->miny, > $map->extent->maxy, 1); > $point=ms_newpointobj(); > $point->setXY($nGeoX,$nGeoY); > $layer=$map->getLayerByName("US state boundaries"); > if (@$layer->queryByPoint($point,MS_SINGLE ,0) == MS_SUCCESS) > { > $image_from_query=$map->drawQuery(); > $image_from_query_url=$image_from_query->saveWebImage(); > } > } > function Pix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, $dfGeoMax, > $nInversePix) > { > > $dfWidthGeo = $dfGeoMax - $dfGeoMin; > $dfWidthPix = $dfPixMax - $dfPixMin; > > > $dfPixToGeo = $dfWidthGeo / $dfWidthPix; > > if (!$nInversePix) > $dfDeltaPix = $nPixPos - $dfPixMin; > else > $dfDeltaPix = $dfPixMax - $nPixPos; > > $dfDeltaGeo = $dfDeltaPix * $dfPixToGeo; > > > $dfPosGeo = $dfGeoMin + $dfDeltaGeo; > > > > return ($dfPosGeo); > > } > $image=$map->draw(); > $image_url=$image->saveWebImage(); > ?> > map file > MAP > NAME USA1 > STATUS ON > SIZE 800 500 > IMAGETYPE PNG > IMAGECOLOR 200 200 200 > SHAPEPATH "C:\ms4w\Apache\data" > EXTENT -8000000 300000 5000000 1500000 > UNITS METERS > PROJECTION > "proj=lcc" "lat_1=32" "lat_2=44" "lat_0=38" "lon_0=-100" "x_0=0" > "y_0=0" "ellps=GRS80" "datum=NAD83" > END > WEB > IMAGEPATH "C:\ms4w\tmp\ms_tmp" > IMAGEURL "C:\ms4w\tmp\ms_tmp" > > 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 175 175 175 > COLOR 150 150 150 > SYMBOL 0 > TEMPLATE "hello.html" > END > END > > END > > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From adams at terrestris.de Thu Aug 28 07:53:06 2008 From: adams at terrestris.de (Till Adams) Date: Thu, 28 Aug 2008 16:53:06 +0200 Subject: [mapserver-users] show only some point on the map In-Reply-To: <48B66F800200008F0001AF27@co5.dnr.state.mn.us> References: <48B66F800200008F0001AF27@co5.dnr.state.mn.us> Message-ID: <48B6BBD2.7080502@terrestris.de> Steve, thats good info, I didn't even try that till now.... although, most of the time we have a database, so we do not care :-) thanks and happy to see you soon in Cape Town -- Till > The IN operator works with all datasources since it's an expression. > I've done this before and it works fine although there are probably some > practical limits in the number of features you'd want to deal with this > way. If you can group the IDs into one var (e.g ids) and then use an > expression like: > > EXRESSION ('[myid] in '%ids') > > That should work... > > Steve > > >>>> valerio vianello 08/28/08 5:16 AM >>> >>>> > Hi Till, > > maybe I forgot to tell you that my data source is a shapefile and not a > database. > > so if I have good understood the only solution that I have to try is to > use an SLD file. > > Regards to group the point in such a way in not possible in this case > becouse I have a certain number of points and in each request the user > should be able to select the point to show. > > br, > Valerio. > > --- Gio 28/8/08, Till Adams ha scritto: > Da: Till Adams > Oggetto: Re: [mapserver-users] show only some point on the map > A: valerio.vianello at yahoo.it > Cc: "mapserver" > Data: Gioved? 28 agosto 2008, 10:41 > > valerio, > > OK, I think you may use more than one subvar, but if there are too many, > ... > > And there is no way to group the points together in any attribute, which > > are shown together? > > One solution might be to generate a temporary view in a database (if the > > points come out of such) and then > send the name of the view via subvar to your file. > > Even better, generate a string out of your selected gid's like > > 1,3,45,567,789,790 > > Send this Stringvia subvar to your mapfile and use a "WHERE gid IN (' > > YOURSTRING ') in your SQL in the mapfile... > > > Another possible solution might be...hack around and not really fine, > but write a temporary SLD file - which only works when using mapserver > as WMS server. > You can let a script write a temporary-SLD file, where your filter is > set to your ids and apply this to your getmap request > (&SLD=path/tp/your_name.xml). > > To ensure, that only user A uses his filtered SLD, we normally used the > PHP session ID or sth similar for naming the sld. > > Many ideas, find the best way for you... > Regards, Till > > >> Dear Till, >> >> Thanks for the suggestion. >> >> But with variable substitution I am able to specify only one parameter >> > > >> like >> >> EXPRESSION ([FNR]=%myid%) . >> >> in this case on the map will be shown only one point (if myid is >> unique) or a group of points (if myid is shared among them) >> >> in my case I want show the points with myid1,myid2,myid3... >> >> how I should set this into the mapfile ? >> >> regards >> >> Valerio >> --- *Gio 28/8/08, Till Adams //* ha scritto: >> >> Da: Till Adams >> Oggetto: Re: [mapserver-users] show only some point on the map >> A: valerio.vianello at yahoo.it >> Cc: "mapserver" >> Data: Gioved? 28 agosto 2008, 09:35 >> >> Dear Valerio, >> >> I guess what you need is this: >> http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub >> >> So add a variable substitution and insert it into your expression >> > in > the > >> CALL section of your layer. >> >> Regards, >> Till >> > Dear list, >> > >> > I have this question: >> > >> > I have a map file in which there is a POINT layer that uses a >> > shapefile as datasource. Is possible with mapserver to do a >> > request to > >> > show only some point on the map ? >> > >> > I know that i can show a group of points or only one point using >> > > >> > FILTER and CLASSITEM into the map file but my goal is a bit >> > different. > >> > In my case each poi has an ID into the shapefile, and I want >> > make > a > >> > request to serve the follow question: >> > >> > Show on map the poi with ID 3,6,8. >> > >> > any suggetsion ? >> > >> > P.S I'm using CGI interface maybe is this possible to do with >> mapscript ? >> > >> > thanks everybady >> > >> > Valerio >> > >> > >> > > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e >> > ti > da > >> > >> tanto spazio gratuito per i tuoi file e i messaggi >> > http://mail.yahoo.it >> > >> > ------------------------------------------------------------------------ > >> > >> > _______________________________________________ >> > mapserver-users mailing list >> > mapserver-users at lists.osgeo.org >> > http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > >> >> >> -- >> ---------------------------------------------------------- >> 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 >> >> >> >> >> __________________________________________________ >> Do You Yahoo!? >> Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da >> tanto spazio gratuito per i tuoi file e i messaggi >> http://mail.yahoo.it >> > > > -- ---------------------------------------------------------- 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 posthumusb at AGR.GC.CA Thu Aug 28 10:35:39 2008 From: posthumusb at AGR.GC.CA (Posthumus, Bradley) Date: Thu, 28 Aug 2008 13:35:39 -0400 Subject: [mapserver-users] RE: displaying ArcSDE raster data in MapServer Message-ID: Thanks to the help of Mr. Butler we were able to get our rasters to display. Connecting to ArcSDE raster layers requires the connection string (as denoted on this site http://www.gdal.org/frmt_sde.html) to be included in the DATA line as well as the CONNECTION line. Below is an example for anyone else having difficulty displaying SDE raster layers (using the MS4W 2.2.7 installation and ArcSDE 9.1 or 9.2) : LAYER NAME hillshade STATUS OFF TYPE RASTER CONNECTION "server,port:5151,sde,username,password" CONNECTIONTYPE PLUGIN PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_92.dll" DATA "SDE:server,5151,sde,username,password,SCHEMA.RASTERLAYER,RASTER" PROCESSING "BANDS=1" PROCESSING "SCALE=0,255" OFFSITE 0 0 0 PROJECTION "+proj=lcc +lat_1=49 +lat_0=49 +lon_0=-95 +k_0=1 +x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs" END END Brad Posthumus -----Original Message----- >Is there any documentation or mapfile examples on how to display ArcSDE >raster data (9.1 or 9.2) using MapServer 5.x? Everything that I have >seen is outdated since the SDE raster capabilities was moved to GDAL. >Displaying SDE vector data is relatively simple, but attempting to use >the same connection properties with raster data gives us this error >(using DEBUG ON): >..msDrawRaster(): Unable to access file. >(SCHEMA.RASTERNAME,FOOTPRINT,SDE.DEFAULT) >..Unable to open file SCHEMA.RASTERNAME,FOOTPRINT,SDE.DEFAULT for layer >rastername ... ignoring this missing data. >(where SCHEMA.RASTERNAME is the name of the raster which DOES exist in >the database) >Has anyone been able to successfully display SDE raster data? >Brad Posthumus From SansonR at asurequality.com Thu Aug 28 16:51:03 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Fri, 29 Aug 2008 11:51:03 +1200 Subject: [mapserver-users] Problems with TILEINDEX moving from Mapserver 5.0 to 5.2 Message-ID: <48B7E2A7.379F.0037.0@asurequality.com> Hi I have just installed ms4w v 2.2.8 with mapserver 5.2. My mapfile no longer seems to work for raster layers using a TILEINDEX. Other layers are displaying fine. Has there been any change that anyone knows of? Here is an typical raster layer entry: LAYER NAME nz1mtm GROUP "Toposcans" PROJECTION "init=epsg:2193" END TYPE RASTER DUMP TRUE STATUS ON TILEINDEX ../data/nztm/1mtm_index TILEITEM Location MAXSCALE 3000000 MINSCALE 300000 END Many thanks, Robert Sanson ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Thu Aug 28 17:38:35 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Thu, 28 Aug 2008 20:38:35 -0400 Subject: [mapserver-users] Problems with TILEINDEX moving from Mapserver 5.0 to 5.2 In-Reply-To: <48B7E2A7.379F.0037.0@asurequality.com> References: <48B7E2A7.379F.0037.0@asurequality.com> Message-ID: <48B7450B.90607@gatewaygeomatics.com> There were some changes, but the old behavior should have been maintained (http://trac.osgeo.org/mapserver/ticket/2369). Maybe you should be more specific (what your SHAPEPATH parameter states, as well as your index's LOCATION values are). -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Robert Sanson wrote: > Hi > > I have just installed ms4w v 2.2.8 with mapserver 5.2. My mapfile no > longer seems to work for raster layers using a TILEINDEX. Other layers > are displaying fine. Has there been any change that anyone knows of? > > Here is an typical raster layer entry: > > LAYER > NAME nz1mtm > GROUP "Toposcans" > PROJECTION > "init=epsg:2193" > END > TYPE RASTER > DUMP TRUE > STATUS ON > TILEINDEX ../data/nztm/1mtm_index > TILEITEM Location > MAXSCALE 3000000 > MINSCALE 300000 > END > > Many thanks, > > Robert Sanson > > > > From SansonR at asurequality.com Thu Aug 28 17:43:06 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Fri, 29 Aug 2008 12:43:06 +1200 Subject: [mapserver-users] Problems with TILEINDEX moving from Mapserver 5.0 to 5.2 In-Reply-To: <48B7450B.90607@gatewaygeomatics.com> References: <48B7E2A7.379F.0037.0@asurequality.com> <48B7450B.90607@gatewaygeomatics.com> Message-ID: <48B7EED9.379F.0037.0@asurequality.com> Hi Jeff SHAPEPATH parameter? Not sure what this is. My Location values are like: ../data/nztm/j50k/k29.0800.jpg I just looked at ms_error.txt I get an error message: [Fri Aug 29 12:24:25 2008].453000 loadParams() QUERY_STRING: service=wms&version=1.1.1&request=GetMap&Layers=nz50ktm,crs_parcels&SRS=EPSG:27200&BBOX=2405659,5940832,2414109,5949283&WIDTH=512&HEIGHT=512&FORMAT=image/png&STYLES= [Fri Aug 29 12:24:25 2008].515000 msLoadMap(): 0.062s [Fri Aug 29 12:24:25 2008].515000 CGI Request 1 on process 4224 [Fri Aug 29 12:24:25 2008].562000 msDrawRasterLayerLow(nz50ktm): entering. [Fri Aug 29 12:24:25 2008].562000 msDrawRaster(): Unable to access file. ../data/nztm/j50k/k29.0800.jpg using full path ../data/nztm/j50k/k29.0800.jpg [Fri Aug 29 12:24:25 2008].562000 Unable to open file ../data/nztm/j50k/k29.0800.jpg for layer nz50ktm ... ignoring this missing data. Much appreciated, Robert Sanson >>> Jeff McKenna 29/08/2008 12:38 p.m. >>> There were some changes, but the old behavior should have been maintained (http://trac.osgeo.org/mapserver/ticket/2369). Maybe you should be more specific (what your SHAPEPATH parameter states, as well as your index's LOCATION values are). -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Robert Sanson wrote: > Hi > > I have just installed ms4w v 2.2.8 with mapserver 5.2. My mapfile no > longer seems to work for raster layers using a TILEINDEX. Other layers > are displaying fine. Has there been any change that anyone knows of? > > Here is an typical raster layer entry: > > LAYER > NAME nz1mtm > GROUP "Toposcans" > PROJECTION > "init=epsg:2193" > END > TYPE RASTER > DUMP TRUE > STATUS ON > TILEINDEX ../data/nztm/1mtm_index > TILEITEM Location > MAXSCALE 3000000 > MINSCALE 300000 > END > > Many thanks, > > Robert Sanson > > > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From SansonR at asurequality.com Thu Aug 28 17:49:49 2008 From: SansonR at asurequality.com (Robert Sanson) Date: Fri, 29 Aug 2008 12:49:49 +1200 Subject: [mapserver-users] Problems with TILEINDEX moving from Mapserver 5.0 to 5.2 - solved Message-ID: <48B7F06D.379F.0037.0@asurequality.com> Hi Jeff OK - I see that the Location values should be relative to TILEINDEX rather than Map file. Solved. Much appreciated, Robert Sanson >>> Jeff McKenna 29/08/2008 12:38 p.m. >>> There were some changes, but the old behavior should have been maintained (http://trac.osgeo.org/mapserver/ticket/2369). Maybe you should be more specific (what your SHAPEPATH parameter states, as well as your index's LOCATION values are). -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ Robert Sanson wrote: > Hi > > I have just installed ms4w v 2.2.8 with mapserver 5.2. My mapfile no > longer seems to work for raster layers using a TILEINDEX. Other layers > are displaying fine. Has there been any change that anyone knows of? > > Here is an typical raster layer entry: > > LAYER > NAME nz1mtm > GROUP "Toposcans" > PROJECTION > "init=epsg:2193" > END > TYPE RASTER > DUMP TRUE > STATUS ON > TILEINDEX ../data/nztm/1mtm_index > TILEITEM Location > MAXSCALE 3000000 > MINSCALE 300000 > END > > Many thanks, > > Robert Sanson > > > > _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ------------------------------------------------------------------ The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message. ------------------------------------------------------------------ This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gluker at scu.edu.au Thu Aug 28 18:03:54 2008 From: gluker at scu.edu.au (Greg Luker) Date: Fri, 29 Aug 2008 11:03:54 +1000 Subject: [mapserver-users] 5.2 problem - MySQL In-Reply-To: <48AEAD41.3030603@mapgears.com> References: <200808220536.m7M5aZom030131@atom.scu.edu.au> <48AEAD41.3030603@mapgears.com> Message-ID: <200808290104.m7T140kp025450@atom.scu.edu.au> Hi list, At 10:12 PM 22/08/2008, Daniel Morissette wrote: >You probably also upgraded GDAL/OGR when you went from MapServer >4.10 to 5.2, right? Perhaps check that ogrinfo can still read your >VRT with the new version. Correct. We recompiled with the old GDAL/OGR and it works now. Thanks for your help Daniel! (The problem was MapServer 5.2.0 was not returning anything from a valid query on a MySQL database, where MapServer 4.10.1 did return a result in the same environment) >If it does, then I'd suggest setting "DEBUG 5" in your layer and >then watch what you get in the MS_ERROR file... you should see a >bunch of "msOGRFileNextShape: Returning shape=..." if MapServer can >read the data... or hopefully some warnings or errors if it can't. We will do this and report our findings back to the list. Thanks, Greg. Greg Luker GIS Lab Manager, Southern Cross University Lismore, AUSTRALIA. gluker at scu.edu.au phone 61 2 66203026 From valerio.vianello at yahoo.it Thu Aug 28 23:33:47 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Fri, 29 Aug 2008 06:33:47 +0000 (GMT) Subject: [mapserver-users] show only some point on the map In-Reply-To: <48B66F800200008F0001AF27@co5.dnr.state.mn.us> Message-ID: <257666.63664.qm@web27308.mail.ukl.yahoo.com> Hi Steve, I have still some problem, my setting is the follow CLASSITEM 'id' and then into the CLASS EXPRESSION ('id' IN '%listid%' ) where id is the value in the shapefile and listid is the parameter that I pass to the cgi as a comma separated value. What's wrong ? Thanks Valerio --- Gio 28/8/08, Steve Lime ha scritto: Da: Steve Lime Oggetto: Re: [mapserver-users] show only some point on the map A: adams at terrestris.de, valerio.vianello at yahoo.it Cc: mapserver-users at lists.osgeo.org Data: Gioved? 28 agosto 2008, 16:27 The IN operator works with all datasources since it's an expression. I've done this before and it works fine although there are probably some practical limits in the number of features you'd want to deal with this way. If you can group the IDs into one var (e.g ids) and then use an expression like: EXRESSION ('[myid] in '%ids') That should work... Steve >>> valerio vianello 08/28/08 5:16 AM >>> Hi Till, maybe I forgot to tell you that my data source is a shapefile and not a database. so if I have good understood the only solution that I have to try is to use an SLD file. Regards to group the point in such a way in not possible in this case becouse I have a certain number of points and in each request the user should be able to select the point to show. br, Valerio. --- Gio 28/8/08, Till Adams ha scritto: Da: Till Adams Oggetto: Re: [mapserver-users] show only some point on the map A: valerio.vianello at yahoo.it Cc: "mapserver" Data: Gioved? 28 agosto 2008, 10:41 valerio, OK, I think you may use more than one subvar, but if there are too many, ... And there is no way to group the points together in any attribute, which are shown together? One solution might be to generate a temporary view in a database (if the points come out of such) and then send the name of the view via subvar to your file. Even better, generate a string out of your selected gid's like 1,3,45,567,789,790 Send this Stringvia subvar to your mapfile and use a "WHERE gid IN (' YOURSTRING ') in your SQL in the mapfile... Another possible solution might be...hack around and not really fine, but write a temporary SLD file - which only works when using mapserver as WMS server. You can let a script write a temporary-SLD file, where your filter is set to your ids and apply this to your getmap request (&SLD=path/tp/your_name.xml). To ensure, that only user A uses his filtered SLD, we normally used the PHP session ID or sth similar for naming the sld. Many ideas, find the best way for you... Regards, Till > Dear Till, > > Thanks for the suggestion. > > But with variable substitution I am able to specify only one parameter > like > > EXPRESSION ([FNR]=%myid%) . > > in this case on the map will be shown only one point (if myid is > unique) or a group of points (if myid is shared among them) > > in my case I want show the points with myid1,myid2,myid3... > > how I should set this into the mapfile ? > > regards > > Valerio > --- *Gio 28/8/08, Till Adams //* ha scritto: > > Da: Till Adams > Oggetto: Re: [mapserver-users] show only some point on the map > A: valerio.vianello at yahoo.it > Cc: "mapserver" > Data: Gioved? 28 agosto 2008, 09:35 > > Dear Valerio, > > I guess what you need is this: > http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub > > So add a variable substitution and insert it into your expression in the > CALL section of your layer. > > Regards, > Till > > Dear list, > > > > I have this question: > > > > I have a map file in which there is a POINT layer that uses a > > shapefile as datasource. Is possible with mapserver to do a request to > > show only some point on the map ? > > > > I know that i can show a group of points or only one point using > > FILTER and CLASSITEM into the map file but my goal is a bit different. > > In my case each poi has an ID into the shapefile, and I want make a > > request to serve the follow question: > > > > Show on map the poi with ID 3,6,8. > > > > any suggetsion ? > > > > P.S I'm using CGI interface maybe is this possible to do with > mapscript ? > > > > thanks everybady > > > > Valerio > > > > > > > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > > > tanto spazio gratuito per i tuoi file e i messaggi > > http://mail.yahoo.it > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > ---------------------------------------------------------- > 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 > > > > > __________________________________________________ > Do You Yahoo!? > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > tanto spazio gratuito per i tuoi file e i messaggi > http://mail.yahoo.it -- ---------------------------------------------------------- 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 __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From valerio.vianello at yahoo.it Thu Aug 28 23:49:07 2008 From: valerio.vianello at yahoo.it (valerio vianello) Date: Fri, 29 Aug 2008 06:49:07 +0000 (GMT) Subject: [mapserver-users] show only some point on the map In-Reply-To: <257666.63664.qm@web27308.mail.ukl.yahoo.com> Message-ID: <525367.13338.qm@web27303.mail.ukl.yahoo.com> Hi again, I'm reading better your previous email and I see that the solution is already there only a "'" was missing :-) so the good format is EXPRESSION ('[id]' IN '%shoplist%') Thank you very much Valerio --- Ven 29/8/08, valerio vianello ha scritto: Da: valerio vianello Oggetto: Re: [mapserver-users] show only some point on the map A: adams at terrestris.de, "Steve Lime" Cc: mapserver-users at lists.osgeo.org Data: Venerd? 29 agosto 2008, 08:33 Hi Steve, I have still some problem, my setting is the follow CLASSITEM 'id' and then into the CLASS EXPRESSION ('id' IN '%listid%' ) where id is the value in the shapefile and listid is the parameter that I pass to the cgi as a comma separated value. What's wrong ? Thanks Valerio --- Gio 28/8/08, Steve Lime ha scritto: Da: Steve Lime Oggetto: Re: [mapserver-users] show only some point on the map A: adams at terrestris.de, valerio.vianello at yahoo.it Cc: mapserver-users at lists.osgeo.org Data: Gioved? 28 agosto 2008, 16:27 The IN operator works with all datasources since it's an expression. I've done this before and it works fine although there are probably some practical limits in the number of features you'd want to deal with this way. If you can group the IDs into one var (e.g ids) and then use an expression like: EXRESSION ('[myid] in '%ids') That should work... Steve >>> valerio vianello 08/28/08 5:16 AM >>> Hi Till, maybe I forgot to tell you that my data source is a shapefile and not a database. so if I have good understood the only solution that I have to try is to use an SLD file. Regards to group the point in such a way in not possible in this case becouse I have a certain number of points and in each request the user should be able to select the point to show. br, Valerio. --- Gio 28/8/08, Till Adams ha scritto: Da: Till Adams Oggetto: Re: [mapserver-users] show only some point on the map A: valerio.vianello at yahoo.it Cc: "mapserver" Data: Gioved? 28 agosto 2008, 10:41 valerio, OK, I think you may use more than one subvar, but if there are too many, ... And there is no way to group the points together in any attribute, which are shown together? One solution might be to generate a temporary view in a database (if the points come out of such) and then send the name of the view via subvar to your file. Even better, generate a string out of your selected gid's like 1,3,45,567,789,790 Send this Stringvia subvar to your mapfile and use a "WHERE gid IN (' YOURSTRING ') in your SQL in the mapfile... Another possible solution might be...hack around and not really fine, but write a temporary SLD file - which only works when using mapserver as WMS server. You can let a script write a temporary-SLD file, where your filter is set to your ids and apply this to your getmap request (&SLD=path/tp/your_name.xml). To ensure, that only user A uses his filtered SLD, we normally used the PHP session ID or sth similar for naming the sld. Many ideas, find the best way for you... Regards, Till > Dear Till, > > Thanks for the suggestion. > > But with variable substitution I am able to specify only one parameter > like > > EXPRESSION ([FNR]=%myid%) . > > in this case on the map will be shown only one point (if myid is > unique) or a group of points (if myid is shared among them) > > in my case I want show the points with myid1,myid2,myid3... > > how I should set this into the mapfile ? > > regards > > Valerio > --- *Gio 28/8/08, Till Adams //* ha scritto: > > Da: Till Adams > Oggetto: Re: [mapserver-users] show only some point on the map > A: valerio.vianello at yahoo.it > Cc: "mapserver" > Data: Gioved? 28 agosto 2008, 09:35 > > Dear Valerio, > > I guess what you need is this: > http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub > > So add a variable substitution and insert it into your expression in the > CALL section of your layer. > > Regards, > Till > > Dear list, > > > > I have this question: > > > > I have a map file in which there is a POINT layer that uses a > > shapefile as datasource. Is possible with mapserver to do a request to > > show only some point on the map ? > > > > I know that i can show a group of points or only one point using > > FILTER and CLASSITEM into the map file but my goal is a bit different. > > In my case each poi has an ID into the shapefile, and I want make a > > request to serve the follow question: > > > > Show on map the poi with ID 3,6,8. > > > > any suggetsion ? > > > > P.S I'm using CGI interface maybe is this possible to do with > mapscript ? > > > > thanks everybady > > > > Valerio > > > > > > > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > > > tanto spazio gratuito per i tuoi file e i messaggi > > http://mail.yahoo.it > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > mapserver-users mailing list > > mapserver-users at lists.osgeo.org > > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > > > -- > ---------------------------------------------------------- > 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 > > > > > __________________________________________________ > Do You Yahoo!? > Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da > tanto spazio gratuito per i tuoi file e i messaggi > http://mail.yahoo.it -- ---------------------------------------------------------- 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 __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it _______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users __________________________________________________ Do You Yahoo!? Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi http://mail.yahoo.it -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan.holl at intevation.de Fri Aug 29 00:02:22 2008 From: stephan.holl at intevation.de (Stephan Holl) Date: Fri, 29 Aug 2008 09:02:22 +0200 Subject: [mapserver-users] MapServer-packages for SuSE-derived systems available Message-ID: <20080829090222.50fb2b39@intevation.de> Hello mapserver-users, while at it I built MapServer-packages for SuSE-dervied systems using opensuses build-service. Currently mapserver 5.2.0 is available for * SLE_10 (i586/x86_64) * OpenSUSE 10.2 (i586/x86_64) * OpenSUSE 10.3 (i586/x86_64) * OpenSUSE 11 (i586/x86_64) * OpenSUSE_Factory (i586/x86_64 scheduled to build) You can add the repository as add-on within your favourite package-manager. http://download.opensuse.org/repositories/Application:/Geo/ Please report back any problems. Have fun. Best regards Stephan Holl -- Stephan Holl , http://intevation.de/~stephan Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From yjacolin at free.fr Fri Aug 29 01:42:06 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Fri, 29 Aug 2008 10:42:06 +0200 Subject: [mapserver-users] Parameters in memory Message-ID: <200808291042.06891.yjacolin@free.fr> Hi list, I have a strange issue using mapserv. I think this will be difficult to reproduced, but I try asking in the list ;) I am using mapserver as WMS service with Openlayers and tilecache. We are moving our application to the release 2 and so we are cleaning the spatial configuration. For example, we changed the SHAPEPATH parameter from /var/local/cartoweb/transparens_immo/cres to /var/local/spatial/. This is a very good example because my problem come from this changing. So we moved spatial data in this new directory and changed SHAPEPATH in the mapfile. This change works for almost all layers. I don't know why, some layers don't want to use the new SHAPEPATH and I get this kind of error when requesting WMS layer (here named ortho_92): <<<< msDrawMap(): Image handling error. Failed to draw layer named 'ortho_92'. msDrawRaster(): Unable to access file. (/var/local/cartoweb/transparens_immo/cres/Referentiel/Bd_Ortho/92/92-2003-0595-2415-LA2E-C07.ecw) >>> Is this something known? I am using mapserver 4.10.1 on Debian Etch. Mapserver come from C2C repository. thanks for your help. Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From adams at terrestris.de Fri Aug 29 01:49:01 2008 From: adams at terrestris.de (Till Adams) Date: Fri, 29 Aug 2008 10:49:01 +0200 Subject: [mapserver-users] Parameters in memory In-Reply-To: <200808291042.06891.yjacolin@free.fr> References: <200808291042.06891.yjacolin@free.fr> Message-ID: <48B7B7FD.7010201@terrestris.de> Jacolin Yves schrieb: > Hi list, > > I have a strange issue using mapserv. I think this will be difficult to > reproduced, but I try asking in the list ;) > > I am using mapserver as WMS service with Openlayers and tilecache. We are > moving our application to the release 2 and so we are cleaning the spatial > configuration. For example, we changed the SHAPEPATH parameter > from /var/local/cartoweb/transparens_immo/cres to /var/local/spatial/. > > This is a very good example because my problem come from this changing. So we > moved spatial data in this new directory and changed SHAPEPATH in the > mapfile. This change works for almost all layers. I don't know why, some > layers don't want to use the new SHAPEPATH and I get this kind of error when > requesting WMS layer (here named ortho_92): > > <<<< > > SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > msDrawMap(): Image handling error. Failed to draw layer named > 'ortho_92'. > msDrawRaster(): Unable to access file. > (/var/local/cartoweb/transparens_immo/cres/Referentiel/Bd_Ortho/92/92-2003-0595-2415-LA2E-C07.ecw) > > > > > Is this something known? I am using mapserver 4.10.1 on Debian Etch. Mapserver > come from C2C repository. thanks for your help. > > Regards, > > Y. > Yves, sounds like you are using tileindexes? Within these the path in attribute "location" maybe wrong because unchanged? Till -- ---------------------------------------------------------- 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 yjacolin at free.fr Fri Aug 29 02:00:52 2008 From: yjacolin at free.fr (Jacolin Yves) Date: Fri, 29 Aug 2008 11:00:52 +0200 Subject: [mapserver-users] Parameters in memory In-Reply-To: <48B7B7FD.7010201@terrestris.de> References: <200808291042.06891.yjacolin@free.fr> <48B7B7FD.7010201@terrestris.de> Message-ID: <200808291100.53120.yjacolin@free.fr> Le Friday 29 August 2008 10:49:01 Till Adams, vous avez ?crit?: > Jacolin Yves schrieb: > > Hi list, > > > > I have a strange issue using mapserv. I think this will be difficult to > > reproduced, but I try asking in the list ;) > > > > I am using mapserver as WMS service with Openlayers and tilecache. We are > > moving our application to the release 2 and so we are cleaning the > > spatial configuration. For example, we changed the SHAPEPATH parameter > > from /var/local/cartoweb/transparens_immo/cres to /var/local/spatial/. > > > > This is a very good example because my problem come from this changing. > > So we moved spatial data in this new directory and changed SHAPEPATH in > > the mapfile. This change works for almost all layers. I don't know why, > > some layers don't want to use the new SHAPEPATH and I get this kind of > > error when requesting WMS layer (here named ortho_92): > > > > <<<< > > > > > SYSTEM "http://schemas.opengis.net/wms/1.1.1/exception_1_1_1.dtd"> > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > > 'ortho_92'. > > msDrawRaster(): Unable to access file. > > (/var/local/cartoweb/transparens_immo/cres/Referentiel/Bd_Ortho/92/92-200 > >3-0595-2415-LA2E-C07.ecw) > > > > > > > > Is this something known? I am using mapserver 4.10.1 on Debian Etch. > > Mapserver come from C2C repository. thanks for your help. > > > > Regards, > > > > Y. > > Yves, > > sounds like you are using tileindexes? Within these the path in > attribute "location" maybe wrong > because unchanged? > > Till :O Good point ! Big thanks Till !!! Y. -- Yves Jacolin --- http://softlibre.gloobe.org From aberenyi at burken.hu Fri Aug 29 06:20:50 2008 From: aberenyi at burken.hu (=?ISO-8859-2?Q?Ber=E9nyi_Attila?=) Date: Fri, 29 Aug 2008 15:20:50 +0200 Subject: [mapserver-users] reprojection Message-ID: <48B7F7B2.1080505@burken.hu> Dear All, I have a lot of data in epsg:23700 (HD-72 EOV), and I try to display it as an overlay over Google Map (epsg:900913) in Openlayers trough WMS. Theoretically it is possible to do this but I have no success at all...Which projection should I define in tha main MAP part? And in the LAYER part? Have anybody done something like this before? If yes, please help me. Thanks in advance, Attila Ber?nyi -------------- next part -------------- An HTML attachment was scrubbed... URL: From CLAY.LINC at flsenate.gov Fri Aug 29 06:37:08 2008 From: CLAY.LINC at flsenate.gov (CLAY.LINC) Date: Fri, 29 Aug 2008 09:37:08 -0400 Subject: [mapserver-users] reprojection In-Reply-To: <48B7F7B2.1080505@burken.hu> References: <48B7F7B2.1080505@burken.hu> Message-ID: Hello Attila, I posted the item below to the OpenLayers forum regarding a similar problem. As noted in the posting, if the overlay is not visible by default the initial placement of the layer is off. However, any map move that fetches the data again fixes the problem. I have received no answers to the posting nor have I figured it out myself yet. This posting includes the map file and the OpenLayers example. In addition to what is in the posting below, you need to include the Google projection (900913) definition in the PROJ4 data file. Information on that can be found at this posting: http://lists.osgeo.org/pipermail/mapserver-users/2008-August/057291.html If you are using PostGIS, you will need to do both items 1 and 2. If you are not using PostGIS, then I believe you only need item 1. Also, thanks to Paul Ramsey, if you add the Google projection definition to the top of the PROJ4 epsg file (as well as the definitions of the other projections/coordinate systems you are using) MapServer will make your map faster. (Thanks Paul, this make a perceptible difference!). I hope this helps, Best regards, -Linc --- OpenLayers Posting --- Using an overlay layer projected by MS (OpenLayer.MapServer object) to Google (and Virtual Earth, EPSG 900913), if the overlay layer is initially visible (visibility: true) then the overlay layer is correctly placed. If the initial visibility is false, then upon the first fetch of the layer, it is NOT correctly placed. However, any subsequent map navigation that causes a fetch of the data correctly places the overlay layer. This behavior is consistent using the layer switcher control and manually turning the layer on and off (not including the layer switcher control). The relevant portions of code are below. Sorry it is a bit long, but it is needed for completeness. Hopefully this is a newbie error on my part. Any ideas? Thanks, -Linc MS Map File Fragment... PROJECTION "init=epsg:900913" #Google END #end projection LAYER NAME "senate" connectiontype postgis connection "user=xxxx password=xxxx dbname=xxxx host=xxxx port=xxxx" data "geom from s17s0036_shapes" PROJECTION "init=epsg:4269" END #end projection TYPE polygon STATUS OFF CLASS STYLE OUTLINECOLOR 0 255 0 WIDTH 3 END #end style END #end class END #end layer LAYER NAME "senate_go" connectiontype postgis connection "user=xxx password=xxx dbname=xxx host=xxx port=xxx" data "geom from s17s0036_go" PROJECTION "init=epsg:900913" END #end projection TYPE polygon STATUS OFF #MINSCALE 7000000 CLASS STYLE OUTLINECOLOR 255 0 0 WIDTH 3 END #end style END #end class END #end layer 900913 projection defined to PROJ4 and PostGIS per Subha Ramakrishnan's MapServer posting of last week. I used the OpenLayers Google Overlay example. I'm a newbie so it's not real pretty.... In this code, I was trying to see if the layer switcher control was the issue so I did not include it and manually toggled layer visibility.

OpenLayers Google Example

Senate (EPSG:4269)
Senate (EPSG:900913)

From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Ber?nyi Attila Sent: Friday, August 29, 2008 9:21 AM To: _mapserver Subject: [mapserver-users] reprojection Dear All, I have a lot of data in epsg:23700 (HD-72 EOV), and I try to display it as an overlay over Google Map (epsg:900913) in Openlayers trough WMS. Theoretically it is possible to do this but I have no success at all...Which projection should I define in tha main MAP part? And in the LAYER part? Have anybody done something like this before? If yes, please help me. Thanks in advance, Attila Ber?nyi -------------- next part -------------- An HTML attachment was scrubbed... URL: From nellyfromma at gmail.com Fri Aug 29 07:30:23 2008 From: nellyfromma at gmail.com (Nelson Soto) Date: Fri, 29 Aug 2008 10:30:23 -0400 Subject: [mapserver-users] ArcSDE Message-ID: <69935d110808290730q1168f38dyf357bdc1b14216db@mail.gmail.com> Does ms4w come compiled with ArcSDE capability or do I need to compile a version of Mapserver that incorporates this functionality? Thanks, Nelson Soto -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at gatewaygeomatics.com Fri Aug 29 09:30:36 2008 From: jmckenna at gatewaygeomatics.com (Jeff McKenna) Date: Fri, 29 Aug 2008 12:30:36 -0400 Subject: [mapserver-users] ArcSDE In-Reply-To: <69935d110808290730q1168f38dyf357bdc1b14216db@mail.gmail.com> References: <69935d110808290730q1168f38dyf357bdc1b14216db@mail.gmail.com> Message-ID: <48B8242C.3080205@gatewaygeomatics.com> Nelson, Yes MS4W should be able to connect to ArcSDE, as per the instructions in the README[1]. However, please note that SDE is the one part of MS4W that I cannot test before each release, as I do not have access to SDE. If someone has an idea how I could access a machine with SDE for testing purposes please contact me directly. Nelson if you run into problems in your tests, you can file a bug for MS4W[2], by first clicking on the "create a new account" link on that page. Also, note that MS4W does have its own mailing list[3] for issues such as this. [1] http://maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde [2] http://bugzilla.maptools.org/enter_bug.cgi?product=MS4W [3] http://lists.maptools.org/mailman/listinfo/ms4w-users Nelson Soto wrote: > Does ms4w come compiled with ArcSDE capability or do I need to compile a > version of Mapserver that incorporates this functionality? > > Thanks, > Nelson Soto > -- Jeff McKenna FOSS4G Consulting and Training Services http://www.gatewaygeomatics.com/ From Steve.Lime at dnr.state.mn.us Fri Aug 29 10:16:49 2008 From: Steve.Lime at dnr.state.mn.us (Steve Lime) Date: Fri, 29 Aug 2008 12:16:49 -0500 Subject: [mapserver-users] MapServer-packages for SuSE-derived systemsavailable In-Reply-To: <20080829090222.50fb2b39@intevation.de> References: <20080829090222.50fb2b39@intevation.de> Message-ID: <48B7E8B0.5157.008F.0@dnr.state.mn.us> Sweet! Might be worth adding a link to http://mapserver.gis.umn.edu/download/current/? Steve >>> Stephan Holl 8/29/2008 2:02 AM >>> Hello mapserver-users, while at it I built MapServer-packages for SuSE-dervied systems using opensuses build-service. Currently mapserver 5.2.0 is available for * SLE_10 (i586/x86_64) * OpenSUSE 10.2 (i586/x86_64) * OpenSUSE 10.3 (i586/x86_64) * OpenSUSE 11 (i586/x86_64) * OpenSUSE_Factory (i586/x86_64 scheduled to build) You can add the repository as add-on within your favourite package-manager. http://download.opensuse.org/repositories/Application:/Geo/ Please report back any problems. Have fun. Best regards Stephan Holl -- Stephan Holl , http://intevation.de/~stephan Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabr?ck - HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner From bill.wordsworth at gmail.com Fri Aug 29 14:38:08 2008 From: bill.wordsworth at gmail.com (Bill Wordsworth) Date: Fri, 29 Aug 2008 17:38:08 -0400 Subject: [MAPSERVER-USERS] How to map attribute data (non-geom) fromOracle(not Spatial)? In-Reply-To: References: <1e07a2bd0808040928g4be5dd00v4fe72848387938b3@mail.gmail.com> <1e07a2bd0808050725i79bc98edsce08e4511cfd0e75@mail.gmail.com> <1e07a2bd0808051301p389a7e80h3149874f0218cb58@mail.gmail.com> <1e07a2bd0808061147v678f2419oc967e873e5021262@mail.gmail.com> Message-ID: <1e07a2bd0808291438s6e6d16fo4423a0616fd5ab68@mail.gmail.com> msDrawMap(): Image handling error. Failed to draw layer named 'ora'. msOracleSpatialLayerOpen(): OracleSpatial error. OracleSpatial is not supported Upgrade or perish? Can I compile support into my existing setup (4.8.3)? I've heard Hobu is great at this :). I am afraid with all the syntax changes in 5.2.x my map files will throw bigger errors. Cheers, Bill On Wed, Aug 6, 2008 at 3:20 PM, Nolte, Tim wrote: > Bill, > > You got it. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > 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: mapserver-users-bounces at lists.osgeo.org >> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of >> Bill Wordsworth >> Sent: Wednesday, August 06, 2008 2:47 PM >> To: mapserver-users at lists.osgeo.org >> Subject: Re: [MAPSERVER-USERS] How to map attribute data >> (non-geom) fromOracle(not Spatial)? >> >> http://www.oracle.com/technology/products/spatial/spatial_loca >> tor_features.html >> >> Shapefile Converter > SQL*Loader > MapServer Query? Is that >> all it takes? >> >> On Tue, Aug 5, 2008 at 4:01 PM, Bill Wordsworth >> wrote: >> > Tim, >> > I didn't know you could do "geom from..." without Oracle Spatial, so >> > this is great! >> > >> > This is my current compilation: >> > MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG >> OUTPUT=WBMP >> > OUTPUT=PDF OUTPUT=SWF 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=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> > DEBUG=MSDEBUG >> > >> > I don't see any Oracle support. Could you shed some light on how to >> > enable that? And how do you insert geom into Oracle Locator without >> > Oracle Spatial- what tools? >> > >> > So as I understand, Oracle Spatial allows geoprocessing type queries >> > (buffer, nearest, shortest) while Oracle Locator doesn't allow any >> > thing that but does display geom (point, line, polygon, (raster)). >> > Correct?? I just want to take a shapefile, insert it and >> then display >> > its filtered set. >> > Cheers, Bill >> > >> > On Tue, Aug 5, 2008 at 10:38 AM, Nolte, Tim >> > wrote: >> >> Bill, >> >> >> >> Here is a layer definition I am using for Oracle >> Spatial(Locator) data. >> >> >> >> LAYER >> >> GROUP "Cell Sites" >> >> NAME "On-Air" >> >> TYPE POINT >> >> STATUS ON >> >> CONNECTIONTYPE oraclespatial >> >> CONNECTION "username/password at sid" >> >> PROCESSING "CLOSE_CONNECTION=DEFER" >> >> DATA "geom FROM (SELECT st.bts_nbr, sgt.geom FROM site_tab st, >> >> site_geom_tab sgt WHERE st.site_id = sgt.site_id AND >> st.site_status_id >> >> IN (4,7)) USING SRID 8307" >> >> LABELITEM "bts_nbr" >> >> METADATA >> >> "static_legend" "1" >> >> END >> >> DUMP true >> >> CLASS >> >> NAME "On-Air Large Scale" >> >> MINSCALE 0 >> >> MAXSCALE 1200000 >> >> STYLE >> >> SYMBOL "circle" >> >> COLOR 22 129 17 >> >> OUTLINECOLOR 255 255 255 >> >> SIZE 12 >> >> END >> >> LABEL >> >> TYPE TRUETYPE >> >> FONT "sans" >> >> SIZE 7 >> >> POSITION CR >> >> OFFSET 0 2 >> >> ANGLE AUTO >> >> BUFFER 3 >> >> MINDISTANCE 30 >> >> MINFEATURESIZE 10 >> >> COLOR 0 0 0 >> >> OUTLINECOLOR 245 245 231 >> >> SHADOWSIZE 3 3 >> >> BACKGROUNDSHADOWSIZE 1 -1 >> >> END >> >> END >> >> CLASS >> >> NAME "On-Air Small Scale" >> >> MINSCALE 1200000 >> >> MAXSCALE 6000000 >> >> STYLE >> >> SYMBOL "circle" >> >> COLOR 22 129 17 >> >> OUTLINECOLOR 255 255 255 >> >> SIZE 8 >> >> END >> >> END >> >> END >> >> >> >> The key here is that you need to have MapServer compiled >> with Oracle >> >> Spatial support. And you can see from my data line that that I do >> >> standard Oracle SQL statements for building my spatial >> results. I'm not >> >> using any shapefiles in this instance. The spatial data is actually >> >> stored right in the database table. There are tools to >> import shapefiles >> >> into Oracle. If your data is points you can build insert >> statements to >> >> populated your geometry columns. You're probably going to >> want to do >> >> some reading up on Oracle spatial. >> >> >> >> - Tim >> >> >> >> ---- >> >> Timothy J Nolte - tnolte at ilpcs.com >> >> 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: Bill Wordsworth [mailto:bill.wordsworth at gmail.com] >> >>> Sent: Tuesday, August 05, 2008 10:25 AM >> >>> To: Nolte, Tim; mapserver-users at lists.osgeo.org >> >>> Subject: Re: [MAPSERVER-USERS] How to map attribute data >> >>> (non-geom) from Oracle(not Spatial)? >> >>> >> >>> This is exciting news! I am using Oracle 10g and get >> Oracle Locator >> >>> free but how do I map data from Oracle Locator? Are you doing a >> >>> JOIN+FILTER? Can you share a LAYER snippet from your MAP file? >> >>> Cheers, Bill >> >> >> > >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > From thomas.bonfort at gmail.com Sat Aug 30 00:22:30 2008 From: thomas.bonfort at gmail.com (thomas bonfort) Date: Sat, 30 Aug 2008 09:22:30 +0200 Subject: [mapserver-users] Fractional line widths? In-Reply-To: <0712161B-993F-4054-AEB1-1450FCBFF6F1@hailmail.net> References: <48AA78A80200008F0001AB26@co5.dnr.state.mn.us> <0712161B-993F-4054-AEB1-1450FCBFF6F1@hailmail.net> Message-ID: Sorry for not hopping into the thread earlier, blame holidays :) For the time being, you can achieve similar output with mapserver 5.2, by using the OPACITY keyword at the style level STYLE COLOR r g b OPACITY 50 # essentially the same as WIDTH 0.5 WIDTH 1 END cheers, thomas On Tue, Aug 19, 2008 at 4:28 PM, Dane Springmeyer wrote: > Fantastic, thanks for the feedback everyone. > > Dane > > > On Aug 19, 2008, at 5:39 AM, Steve Lime wrote: > >> We've talked about this as part of a package of graphics-related >> enhancements. Look for >> it in 5.4 soon. >> >> Steve >> >>>>> "Tamas Szekeres" 08/18/08 7:06 PM >>> >> >> Dane, >> >> I think it would be implemented by means of replacing the int-s with >> doubles at the style and the symbol definitions and the corresponding >> interfaces since AGG have already been using doubles internally in the >> code. >> >> >> Best regards, >> >> Tamas >> >> >> 2008/8/19 Dane Springmeyer : >>> >>> Tamas, >>> Great, thanks!. I'll file a ticket then regarding the agg render and >>> adding >>> a FORMATOPTION for generating 'thinner' looking lines. >>> My question comes from the context of comparing Mapnik's agg output to >>> mapserver. Mapnik seems to interpret user-entered fractional widths in a >>> clever way, by lightening the color and intensity. >>> I'm comparing this graphic generated with a width=0.1 with Mapnik: >>> >>> http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/xml_config/map/hello_world_using_xml_config.png >>> to this graphic generated with Mapserver with Width 1.0: >>> >>> http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile.png >>> It fully possible that my mapfile is not doing an equal comparison, so if >>> anyone has suggestions I've pasted it below. >>> >>> Thanks, >>> Dane >>> ------------ >>> >>> # This mapfile mirrors the mapnik hello world example >>> here: >>> http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/pure_python/ >>> # A map can be generated from it by running shp2img. >>> # For example: >>> # $ shp2img -m world.map -o map/hello_world_with_mapserver_mapfile.png >>> # or >>> # once you have installed the mapserv cgi use this url: >>> # >>> >>> http://localhost/cgi-bin/mapserv?map=/path/to/this/mapfile/world.map&layers=world&mode=map >>> MAP >>> IMAGETYPE AGG >>> EXTENT -180 -93 180 86 >>> SIZE 600 300 >>> SHAPEPATH "../../data/" >>> IMAGECOLOR 70 130 180 >>> >>> OUTPUTFORMAT >>> NAME 'AGG' >>> DRIVER AGG/PNG >>> IMAGEMODE RGB >>> MIMETYPE "image/png" >>> END >>> LAYER >>> NAME world >>> DATA world_borders.shp >>> STATUS ON >>> TYPE POLYGON >>> CLASS >>> NAME "World" >>> STYLE >>> COLOR 242 239 249 >>> OUTLINECOLOR 127 127 127 >>> WIDTH 1 >>> END >>> >>> END >>> END >>> END >>> >>> >>> On Aug 18, 2008, at 3:53 PM, Tamas Szekeres wrote: >>> >>> Dane, >>> >>> I think it's reasonable but would only be feasible for the AGG renderer >>> though. >>> >>> >>> Best regards, >>> >>> Tamas >>> >>> >>> >>> 2008/8/19 Dane Springmeyer : >>> >>> I can see from http://mapserver.gis.umn.edu/docs/reference/mapfile/style >>> >>> that only integers are supported for the Style > Width parameter. >>> >>> Are thinner lines (a float type) a possibility or have they been >>> considered >>> >>> in the MapServer code base? >>> >>> I can't find anything in trac to suggest so, but I thought to check here >>> >>> before filing a ticket. >>> >>> Thanks, >>> >>> Dane >>> >>> >>> >>> _______________________________________________ >>> >>> mapserver-users mailing list >>> >>> mapserver-users at lists.osgeo.org >>> >>> http://lists.osgeo.org/mailman/listinfo/mapserver-users >>> >>> >>> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From elshayal55 at yahoo.com Sat Aug 30 13:52:25 2008 From: elshayal55 at yahoo.com (Mohamed Elshayal) Date: Sat, 30 Aug 2008 15:52:25 -0500 (CDT) Subject: [mapserver-users] Egypt Smart Village Satellites Images Map Message-ID: <915547.13322.qm@web57407.mail.re1.yahoo.com> DownLoad Egypt Smart Village Satellites Images Map from http://www.smartwebonline.com/Pages/Downloads/SmartVillage.zip ? ? ? ?which can be Opened by Elshayal Smart GIS Map Editor 3.5 ( Written by VB6 ) View and Rectify Raster Images gif, jpg, bmp. Build and Edit shape files. ? ? ? ?which is available in http://www.smartwebonline.com/ ? ? ? ?or in Direct Download http://www.cadmagazine.com/downloads/download.php?id=143 Thank you and best regards Mohamed Elshayal The First Arabian GIS Software http://www.smartwebonline.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at online-archaeology.co.uk Sat Aug 30 14:08:37 2008 From: steve at online-archaeology.co.uk (Steve White) Date: Sat, 30 Aug 2008 22:08:37 +0100 Subject: [mapserver-users] Dynamic symbols based on attribute - how? Message-ID: <001501c90ae4$9253da80$b6fb8f80$@co.uk> I'm using MS4W version 2.2.7 and have an Icon field in my shp file. My map file CLASS for the layer looks like this: CLASS TEMPLATE "C:\Inetpub\wwwroot\Map\test.html" SYMBOL "C:\Inetpub\wwwroot\Map\images\[Icon]" SIZE 16 COLOR 255 0 255 END This doesn't want to play because I get the following error: Undefined overlay symbol "C:\Inetpub\wwwroot\Map\images\[Icon]" If I add an explicit png file name it works, like this: CLASS TEMPLATE "C:\Inetpub\wwwroot\Map\test.html" SYMBOL "C:\Inetpub\wwwroot\Map\images\test.png" SIZE 16 COLOR 255 0 255 END I thought it was possible to use attribute data in a map file like this. How would I get this to work so that my data holds the filenames and I can have different icons per item? Cheers, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at gmail.com Sat Aug 30 15:52:35 2008 From: szekerest at gmail.com (Tamas Szekeres) Date: Sun, 31 Aug 2008 00:52:35 +0200 Subject: [mapserver-users] Dynamic symbols based on attribute - how? In-Reply-To: <001501c90ae4$9253da80$b6fb8f80$@co.uk> References: <001501c90ae4$9253da80$b6fb8f80$@co.uk> Message-ID: Steve, I'm afraid this kind of handling haven't been implemented yet. You might want to turn your icon field into a CLASSITEM attribute to achieve similar results. Best regards, Tamas 2008/8/30 Steve White : > I'm using MS4W version 2.2.7 and have an Icon field in my shp file. My map > file CLASS for the layer looks like this: > > > > CLASS > > TEMPLATE > "C:\Inetpub\wwwroot\Map\test.html" > > SYMBOL > "C:\Inetpub\wwwroot\Map\images\[Icon]" > > SIZE 16 > > COLOR 255 0 255 > > END > > > > This doesn't want to play because I get the following error: > > > > Undefined overlay symbol "C:\Inetpub\wwwroot\Map\images\[Icon]" > > > > If I add an explicit png file name it works, like this: > > > > CLASS > > TEMPLATE > "C:\Inetpub\wwwroot\Map\test.html" > > SYMBOL > "C:\Inetpub\wwwroot\Map\images\test.png" > > SIZE 16 > > COLOR 255 0 255 > > END > > > > I thought it was possible to use attribute data in a map file like this. > > > > How would I get this to work so that my data holds the filenames and I can > have different icons per item? > > > > Cheers, > > > > Steve > > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > From elshayal55 at yahoo.com Sat Aug 30 15:57:17 2008 From: elshayal55 at yahoo.com (Mohamed Elshayal) Date: Sat, 30 Aug 2008 15:57:17 -0700 (PDT) Subject: [mapserver-users] Egypt Smart Village Satellites Images Map Message-ID: <225628.88148.qm@web57415.mail.re1.yahoo.com> DownLoad Egypt Smart Village Satellites Images Map from http://www.smartwebonline.com/Pages/Downloads/SmartVillage.zip ? ? ? ?which can be Opened by Elshayal Smart GIS Map Editor 3.5 View and Rectify Raster Images gif, jpg, bmp. Build and Edit shape files. ? ? ? ?which is available in http://www.smartwebonline.com/ ? ? ? ?or in Direct Download http://www.cadmagazine.com/downloads/download.php?id=143 Thank you and best regards Mohamed Elshayal The First Arabian GIS Software http://www.smartwebonline.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve at online-archaeology.co.uk Sun Aug 31 04:40:39 2008 From: steve at online-archaeology.co.uk (Steve White) Date: Sun, 31 Aug 2008 12:40:39 +0100 Subject: [mapserver-users] Filter on attribute - how? Message-ID: <000301c90b5e$64e0df60$2ea29e20$@co.uk> I want to pass in a string of values in one variable and filter on them as if they are in an OR clause. I've tried the following which works fine: FILTER "Castles" FILTERITEM "CategoryNa" Now I want to filter on 2 sets like this: FILTER "Castles OR Battlefields" FILTERITEM "CategoryNa" I'm hardcoding them in the mapfile initially so I know they work, but eventually I want to use a variable: FILTER "%filtervar%" FILTERITEM "CategoryNa" The variable substitution works for just one type, but how do I use multiple types? Cheers, Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From myrtactle at gmail.com Sun Aug 31 06:32:19 2008 From: myrtactle at gmail.com (Marte Raphael Y. Soliza) Date: Sun, 31 Aug 2008 21:32:19 +0800 Subject: [mapserver-users] Display a map in lower detail Message-ID: Is it possible in Mapscript to display a map in lower "detail"? For example, I have a shape file whose boundary polygons are so detailed, that when viewed from a low zoom factor, the edges are not smooth because of lots of points in the boundaries. My objective is to display them with less detail (i.e. less points) so that the edges will be smooth, without effectively ruining the shape of the map. If it is not built-in in Mapscript, do you know of a utility/algorithm that can do the above conversion? -------------- next part -------------- An HTML attachment was scrubbed... URL: From reh2 at prodigy.net Sun Aug 31 10:05:04 2008 From: reh2 at prodigy.net (ROBERT HOLLINGSWORTH) Date: Sun, 31 Aug 2008 10:05:04 -0700 (PDT) Subject: [mapserver-users] Re: Display a map in lower detail In-Reply-To: <20080831133225.6A71DE007D1@lists.osgeo.org> Message-ID: <530706.93374.qm@web80504.mail.mud.yahoo.com> You're basically describing "generalization" here.? I don't think mapscript has facilities for this, but you may be able to perform your own generalization on your shape objects.? Try a google on "Douglas-Peucker algorithm" and see what you find.? In some cases I think people simplify their polygons at various scales in advance and store them, then use the mapserver CLASS and MINSCALE/MAXSCALE in the mapfile to select which polygons to output. Robert H. Is it possible in Mapscript to display a map in lower "detail"? For example, I have a shape file whose boundary polygons are so detailed, that when viewed from a low zoom factor, the edges are not smooth because of lots of points in the boundaries. My objective is to display them with less detail (i.e. less points) so that the edges will be smooth, without effectively ruining the shape of the map. If it is not built-in in Mapscript, do you know of a utility/algorithm that can do the above conversion? _______________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From myrtactle at gmail.com Sun Aug 31 12:00:22 2008 From: myrtactle at gmail.com (Marte Raphael Y. Soliza) Date: Mon, 1 Sep 2008 03:00:22 +0800 Subject: [mapserver-users] Re: Display a map in lower detail In-Reply-To: <530706.93374.qm@web80504.mail.mud.yahoo.com> References: <20080831133225.6A71DE007D1@lists.osgeo.org> <530706.93374.qm@web80504.mail.mud.yahoo.com> Message-ID: Thanks a lot, it's what I exactly needed. On Mon, Sep 1, 2008 at 1:05 AM, ROBERT HOLLINGSWORTH wrote: > You're basically describing "generalization" here. I don't think mapscript > has facilities for this, but you may be able to perform your own > generalization on your shape objects. Try a google on "Douglas-Peucker > algorithm" and see what you find. In some cases I think people simplify > their polygons at various scales in advance and store them, then use the > mapserver CLASS and MINSCALE/MAXSCALE in the mapfile to select which > polygons to output. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at cleverelephant.ca Sun Aug 31 20:22:32 2008 From: pramsey at cleverelephant.ca (Paul Ramsey) Date: Sun, 31 Aug 2008 20:22:32 -0700 Subject: [mapserver-users] Reg:How to implement Tile-based output for Mapserver in C#.net In-Reply-To: References: <000001c90740$ae814aa0$0b83dfe0$@com> Message-ID: <30fe546d0808312022g5f618e72vc1d53098ab0fe028@mail.gmail.com> See also, http://svn.osgeo.org/mapserver/trunk/docs/howto/tile_mode.txt On Tue, Aug 26, 2008 at 12:19 AM, Tamas Szekeres wrote: > Venkat, > > I'm not totaly sure what you've mean't by 'tile-based output', however > if you would generate tiles by mapserver you might want to refer to an > existing project like ka-map and see how tile.php is working. It have > been implemented by using mapscipt php, but you can easily transform > the algorithm to mapscript C# if needed. > > Best regards, > > Tamas > > > > > 2008/8/26 Venkat Rao Tammineni : >> Dear All, >> >> >> >> I am planning to implement Tile-based output for mapserver.But I don't >> now where to start. I am using C#.net.I have gone through Mapserver API.But >> I did not get any information about this.Please let me know if any one has >> implemented Tile-based output. >> >> >> >> Please let me know.I am waiting for your great response. >> >> >> >> Thanks and Regards, >> >> Venkat. >> >> >> >> >> >> >> >> _______________________________________________ >> mapserver-users mailing list >> mapserver-users at lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/mapserver-users >> >> > _______________________________________________ > mapserver-users mailing list > mapserver-users at lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > From Tom.Kralidis at ec.gc.ca Sun Aug 31 22:17:02 2008 From: Tom.Kralidis at ec.gc.ca (Kralidis,Tom [Burlington]) Date: Mon, 1 Sep 2008 01:17:02 -0400 Subject: [mapserver-users] Re: Display a map in lower detail References: <20080831133225.6A71DE007D1@lists.osgeo.org><530706.93374.qm@web80504.mail.mud.yahoo.com> Message-ID: <2DC5CCA14756424BBBEE8B4B2E4A682F03BCC42C@ecburexch1.ontario.int.ec.gc.ca> FYI there is an example of shape thinning using Perl mapscript at http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapscript/perl/examples/thin.pl ..Tom -----Original Message----- From: mapserver-users-bounces at lists.osgeo.org on behalf of Marte Raphael Y. Soliza Sent: Sun 31-Aug-08 15:00 To: reh2 at prodigy.net Cc: mapserver-users at lists.osgeo.org Subject: Re: [mapserver-users] Re: Display a map in lower detail Thanks a lot, it's what I exactly needed. On Mon, Sep 1, 2008 at 1:05 AM, ROBERT HOLLINGSWORTH wrote: > You're basically describing "generalization" here. I don't think mapscript > has facilities for this, but you may be able to perform your own > generalization on your shape objects. Try a google on "Douglas-Peucker > algorithm" and see what you find. In some cases I think people simplify > their polygons at various scales in advance and store them, then use the > mapserver CLASS and MINSCALE/MAXSCALE in the mapfile to select which > polygons to output. > From ishwari.s at gmail.com Sun Aug 31 22:53:56 2008 From: ishwari.s at gmail.com (Ishwari Sivagnanam) Date: Mon, 1 Sep 2008 11:23:56 +0530 Subject: [mapserver-users] Java mapscript: connection timeout Message-ID: Hello all, I developed a mapserver site in Java mapscript and have run into a timeout issue. I have tried to explain the problem as best as I can below. I am new to web application development and mapserver so I apologize for errors in the description. I have two seperate mapserver pages in my website. The scripting is done using Java Mapscript and JSP pages. The backend data comes from a Postgresql/ PostGIS database. I developed the exact same application in PHP and 'deployed' it. I have had no issues with that site. The Java mapscript was developed along the same lines as the PHP application. Both mapserver pages share ~ 10 base maps. Additionally each of these pages has a set of thematic maps. Page 1 has 2 thematic maps of the same point layer and a third thematic layer with a summary statistic for a polygon layer. Page 2 has a single thematic map which displays a summary statistic of a polygon layer. Page 1 by itself works well. Page 2 by itself works well. The problem occurs when (a) page 1 and page 2 are merged or (b) if they are deployed parallely in the same site I get an message which says "Connection timed out". I have tried searching the web for an answer but haven't been very successful Version and Specs: ---------------------------- MapServer version 5.0.0 PHP MapScript Version - ($Revision: 6872 $ $Date: 2007-09-10 10:45:30 -0400 (Mon, 10 Sep 2007) $) PostgreSQL 8.2.3 PostGIS 1.3.2 Apache Tomcat 5.5 Java 1.6 Java mapscript - Downloaded and installed using the page in the mapserver.umn.. website Could somebody help me please? Ishwari -------------- next part -------------- An HTML attachment was scrubbed... URL: