Re: [mapserver-users] Point lables and tiles
Hi! OK, are there any methods that could be used to let MapServer produce a bigger image and then chop off excess area before sending the image to the client? I think that this would be the easiest and most flexible solution. Regards, Pål Kristensen Thomas Bonfort-2 wrote: it doesn't put any labels in the 10 outermost pixels surrounding the generated image (as they are chopped off by tilecache's metabuffer) thomas -- www.camptocamp.com +33 4 79 26 57 97 On Mon, May 25, 2009 at 16:45, paalkr pal.kristen...@statkart.no wrote: Hi! Thanks for the hint! The problem is that I'm using GeoWebCache and not tilecache :) Is the METADATA labelcache_map_edge_buffer -10 END a MapServer keyword? What does it do exactly? Any other possible solutions? Regards, Pål Kristensen Thomas Bonfort-2 wrote: http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060214.html regards, thomas -- www.camptocamp.com +33 4 79 26 57 97 On Mon, May 25, 2009 at 15:00, paalkr pal.kristen...@statkart.no wrote: Hi! When creating tiles for my tilecache I have some issues regarding point labels. Using the PROCESSING label_no_clip=true works for line and polygon labels, but points has not area/size and will therefor newer be present in two neighbouring tiles. The result are clipped labels because only one tile will ever know about the presence of a point. If then the label should have been rendered into the next tile, it will be clipped. Metatiles (requesting more than one tile at a time and splitting it up on the tile server) helps, but only a little, as the same problem will occur between metatiles. A solution would be that MapServer rendered each tile (map) some percentage larger than requested, and then chops of the excess area before delivering the final map. A setting at the MAP level of the mapfile controlling this grow mechanism would be great, defining the percentage the map shall be extended before rendering. Second, is there any other way to solve the issue? Especially if there are already features in MapServer that can be used. Regards, Pål Kristensen - Regards, Pål Kristensen -- View this message in context: http://n2.nabble.com/Point-lables-and-tiles-tp2969528p2969528.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users - Regards, Pål Kristensen -- View this message in context: http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2969950.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users - Regards, Pål Kristensen -- View this message in context: http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2987684.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SV: Clipping out unprojectable area?
Hi! Does anyone have a clue regarding what I have to do, to sort out this issue? Regards, Pål Kristensen paalkr wrote: Hi, thanks for the help! I tried your suggestion, but I didn't manage to get it to work correctly, this is what I did: Entered the following DATA statement: DATA geometri from ( select geometri, * from general.country where ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 0))',4326)) ) AS country USING UNIQUE ogc_fid USING SRID=4326 but I then got the following error in the MapServer logfile: [Mon May 25 14:03:08 2009].185400 msPostGISLayerWhichShapes query: select encode(AsBinary(force_collection(force_2d(geometri)),'NDR'),'base64') as geom,ogc_fid from ( select geometri, * from general.country where ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 0))',4326)) ) AS country where geometri GeomFromText('POLYGON((-5.89995617157446 59.7658748898858,-5.89995617157446 75.1604740311875,44.7675433183202 75.1604740311875,44.7675433183202 59.7658748898858,-5.89995617157446 59.7658748898858))',4326) [Mon May 25 14:03:08 2009].187786 msPostGISLayerWhichShapes query status: 7 [Mon May 25 14:03:08 2009].187807 msPostGISLayerWhichShapes(): Query error. Error (ERROR: argument of WHERE must be type boolean, not type geometry Anyone that can help with this? Regards, Pål Kristensen Espen.Messel wrote: Hi. You could try something like this: DATA geometri from ( select geometri, * from general.country where ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 0))',4326)) ) AS FOO USING UNIQUE ogc_fid USING SRID=4326 It's not very nice, but it works. Regards, Espen -- Espen Messel -Opprinnelig melding- Fra: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] På vegne av paalkr Sendt: 12. mai 2009 16:19 Til: mapserver-users@lists.osgeo.org Emne: Re: [mapserver-users] Clipping out unprojectable area? Hi! I'm trying to achieve the same thing, but I need some hints on how to incorporate the spatial filter in the DATA statement. This is a snippet from my mapfile DATA geometri from general.country USING UNIQUE ogc_fid USING SRID=4326 and this is the spatial filter i try to apply ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 0))',4326)) but I don't manage build the right the DATA statement! Can someone please help with the DATA statement? Regards, Pål Kristensen Gregor at HostGIS wrote: With some SQL know-how I did get the EPSG database merged with our own spatial_ref_sys table (it has other mods for our uses, so this was trivial) and our program generating ST_Intersection(the_geom) statements. This does work as expected, which is great. Thanks for another simple and elegant solution, Christopher. Now to cope with some of our data having self-intersecting polygons which break such operators... -- Gregor Mosheh / Greg AllensworthBS, 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 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users - Regards, Pål Kristensen -- View this message in context: http://n2.nabble.com/Clipping-out-unprojectable-area--tp229984 7p2869427.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users - Regards, Pål Kristensen -- View this message in context: http://n2.nabble.com/Clipping-out-unprojectable-area--tp2299847p2987697.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] expressions and threshold color
Hello, I'm attempting to color layers by their threshold values. When I use the following mapfile it is only coloring two layers instead of three. Also the layer its coloring changes based on the value in the expression but the areas of each layer never change. Am I going about this correctly? LAYER NAME Coverage TYPE POLYGON STATUS DEFAULT DATA ftwtest PROJECTION init=epsg:4326 END CLASSGROUP Coverage group CLASS EXPRESSION ([THRESHOLD] = -68) STYLE COLOR 255 0 0 END END CLASS EXPRESSION ([THRESHOLD] = -73) STYLE COLOR 0 255 0 END END CLASS EXPRESSION ([THRESHOLD] = -100) STYLE COLOR 0 0 255 END END Thank you. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Hiding layers, again ;)
Hi all dev! I just want to check the status, and if there where any discussion on the Toronto Code sprint regarding the hiding layers in different OGC services issue? There was put up a wiki page discussing different approaches and possible solutions http://trac.osgeo.org/mapserver/wiki/HidingLayersInOGCWebServices and the issue was also on the agenda for the code sprint http://trac.osgeo.org/mapserver/wiki/TorontoCodeSprint2009Notes http://wiki.osgeo.org/wiki/Toronto_Code_Sprint_2009_Agenda#Mapserver Regards, Pål Kristensen - Regards, Pål Kristensen -- View this message in context: http://n2.nabble.com/Hiding-layers%2C-again--%29-tp2987925p2987925.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Finding the centroid given the feature
Hi, I know mapserver uses a point-in-polygon method to find a feature given a set of co-ordinates, but can it do the same thing reversed? For example. Each polygon I draw has a number associated with it which is in a dbf file with the same name as the shp file that mapserver uses to draw the polygons. My current map file allows me to fetch that unique number whenever I pass the co-ordinates of any point inside that polygon (mapserver uses the point-in-polygon method to fetch me the polygonID). The query I use is http://127.0.0.1:8123/cgi-bin/mapserv.exe?map=C:/ms4w/apps/workshop-5.0/testMap.mapmode=querymapxy=-77.098617 38.87795 where mapxy keeps changing based on the user's click. The html template I send just has the variable name [polygonID] which helps me get the polygon ID of the point I specify in the mapxy variable. Now, is there a way in which I can send this polygonID to mapserver and get hold of any point (perhaps the centroid) inside of this polygon? Can someone point me in the right direction here? Thanks a lot. -Varun ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Mapserver layer + Openlayers = Random pink tiles...
Hello guys... I know It is a Openlayer question, but maybe someone here can help-me... I did a simple sample to show my problem... My layer sometimes is 100% showed, but when I zoom, several pink layers appears... Its absolute RANDOM... -- If I click right on the image, and get the image URL and PASTE on browser, I CAN SEE THE IMAGE... So It was created fine... Help? I´m getting crazy ... ps.: Using Windows XP + IIS Code: Javascript : var map, layer; function init() { map = new OpenLayers.Map('map', { numZoomLevels: 14, units: meters, controls: [ new OpenLayers.Control.ZoomToMaxExtent(), new OpenLayers.Control.PanZoomBar({ zoomWorldIcon: true }), new OpenLayers.Control.LayerSwitcher({ 'ascending': false }), new OpenLayers.Control.MousePosition(), new OpenLayers.Control.MouseDefaults(), new OpenLayers.Control.KeyboardDefaults() ] }); OpenLayers.IMAGE_RELOAD_ATTEMPTS = 10; layer = new OpenLayers.Layer.MapServer(Sample, http://localhost/cgi-bin/mapserv.exe;, { map: C:/Sample/Openlayer/Map.map, layers: Test }); map.addLayer(layer); map.zoomToMaxExtent(); Mapfile MAP EXTENT -79.7892 -34.2426 -24.9958 6.11775 FONTSET Fonts\Fonts.txt IMAGECOLOR 230 254 254 IMAGETYPE png SIZE 800 600 STATUS ON UNITS dd NAME Test OUTPUTFORMAT NAME png MIMETYPE image/png DRIVER GD/PNG EXTENSION png IMAGEMODE PC256 TRANSPARENT FALSE END PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END WEB IMAGEPATH 'C:\map\temp' IMAGEURL '/tmp/' QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END QUERYMAP COLOR 255 0 0 SIZE -1 -1 STATUS ON STYLE hilite END REFERENCE EXTENT -79.7892 -34.2426 -24.9958 6.11775 STATUS on SIZE 221 150 MINBOXSIZE 5 MAXBOXSIZE 150 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MARKERSIZE 8 END LAYER NAME Test GROUP Tests TYPE POLYGON STATUS default CONNECTIONTYPE POSTGIS CONNECTION user=xpassword=xdbname=x host=x port=5432 DATA the_geom from viwgeo_x USING UNIQUE oid USING SRID=-1 CLASS COLOR 255 0 255 END END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles...
Paul james wrote: -- If I click right on the image, and get the image URL and PASTE on browser, I CAN SEE THE IMAGE... So It was created fine... Help? I´m getting crazy ... ps.: Using Windows XP + IIS Did you check your IIS logs? It could be that you have too many connections at the same time when OpenLayers loads the map and IIS rejects some of them. -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles...
Hi Daniel! I ckecked the IIS Log... And I´m getting 403 to the pink tiles : 16:06:04 127.0.0.1 GET /cgi-bin/mapserv.exe 403 The IIS specification : *403 *- Forbidden. IIS defines a number of different 403 errors that indicate a more specific cause of the error: *403.1* - Execute access forbidden. *403.2* - Read access forbidden. *403.3* - Write access forbidden. *403.4* - SSL required. *403.5* - SSL 128 required. *403.6* - IP address rejected. *403.7* - Client certificate required. *403.8* - Site access denied. *403.9* - Too many users. *403.10* - Invalid configuration. *403.11* - Password change. *403.12* - Mapper denied access. *403.13* - Client certificate revoked. *403.14* - Directory listing denied. *403.15* - Client Access Licenses exceeded. *403.16* - Client certificate is untrusted or invalid. *403.17* - Client certificate has expired or is not yet valid. *403.18* - Cannot execute requested URL in the current application pool. This error code is specific to IIS 6.0. *403.19* - Cannot execute CGIs for the client in this application pool. This error code is specific to IIS 6.0. *403.20* - Passport logon failed. This error code is specific to IIS 6.0. Do you know how to fix that? Thanks On Thu, May 28, 2009 at 12:12 PM, Daniel Morissette dmorisse...@mapgears.com wrote: Paul james wrote: -- If I click right on the image, and get the image URL and PASTE on browser, I CAN SEE THE IMAGE... So It was created fine... Help? I´m getting crazy ... ps.: Using Windows XP + IIS Did you check your IIS logs? It could be that you have too many connections at the same time when OpenLayers loads the map and IIS rejects some of them. -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] problems with 'MapServer Itasca Application (ms v5.0)'
Which version of MapServer are you using? You can find it by running in a command prompt: mapserv -v Think that in the latest versions all Mapserver templates must have in their first line the string MapServer Template even if it is as a comment. In your case this would be the itasca_basic.html file... Pano -Original Message- From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Andre Steenveld sr Sent: 28 May 2009 00:56 To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] problems with 'MapServer Itasca Application (ms v5.0)' Hi, I try to install mapserver and to get it going but I run into some problems. Can someone advise me on what I'm doing wrong? This is what I have (and have done). Systems: 1) Windows Vista, dutch version. 2) Windows XP, dutch version. Installed mapserver as suggested in http://www.mapserver.org/introduction.html#introduction Om 1) in E:\usr\local\OSGeo4W On 2) in c:\OSGeo4W On both systems 'MapServer v. 5.0' Testing mapserver with http://127.0.0.1/cgi-bin/mapserv.exe and I get the expected result 'No query information to decode. QUERY_STRING is set, but empty.' (on both systems) Installed 'mapserver demo', added an alias in the apache configuration file, added another section with access rights for /workshop/ (was undocumented), restarted apache and changed the index.html file. The two aliasses in the apache configuration and the section on rights are: Alias /ms_tmp/ E:\usr\local\OSGeo4W/tmp/ms_tmp/ Alias /workshop/ E:\usr\local\OSGeo4W/apps/workshop-5.0/ ... Directory E:\usr\local\OSGeo4W/apps/workshop-5.0/ AllowOverride None Options None Order allow,deny Allow from all /Directory When I open http://127.0.0.1/workshop/ I get a page with a form which looks normal. In that form I select 'Basic Application' and click on the [Initialize] button. The result is an error message. (on both systems) Content-type: text/html isValidTemplate(): Web application error. Missing magic string, itasca_basic.html doesn't look like a MapServer template. I have no idea what is going wrong. Tried to find it in the documentation and archive of this list but nothing came up. The problems might have to do with the changes needed in index.html, it is not completely clear to me what kind of information is needed. This is what I have filled in. ... 08: // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP 09: var snippet = IMAGEPATH 'E:/usr/local/OSGeo4W/tmp'; // IMAGEPATH '/usr/local/www/docs_maps/tmp/'; 10: snippet += IMAGEURL '/tmp/'; Assuming that on line 09 an absolute path on the server is needed and on line 10 an absolute URL. Note that in the apache configuration there is no alias for /tmp/. Changing line 10 to '/ms_tmp/ does not make any difference. ... 33: !-- EDIT THE FORM ACTION -- 34: form name=demo method=GET action=/cgi-bin/mapserv.exe onSubmit=configure() 35: !-- action=/cgi-bin/mapserv50 -- Assuming that on line 35 an absolute URL is needed. ... 42: !-- EDIT THESE HIDDEN VARIABLES -- 43: input type=hidden name=map value=E:/usr/local/OSGeo4W/apps/workshop-5.0/itasca.map 44: !-- value=/usr/local/www/docs_maps/mapserver_demos/workshop-5.0/itasca.map -- 45: input type=hidden name=program value=/cgi-bin/mapserv.exe 46: !-- value=/cgi-bin/mapserv50 -- 47: input type=hidden name=root value=/workshop 48: !-- value=/mapserver_demos/workshop-5.0 -- Assuming that on line 43 an absolute path on the server is needed and on lines 45 and 47 an absolute URL. Can somebody point out to me what is wrong? Kind regards, Andre Steenveld. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles...
Paul james wrote: Hi Daniel! I ckecked the IIS Log... And I´m getting 403 to the pink tiles : 16:06:04 127.0.0.1 GET /cgi-bin/mapserv.exe 403 The IIS specification : *403 *- Forbidden. IIS defines a number of different 403 errors that indicate a more specific cause of the error: [...] Do you know how to fix that? You mean, other than using Apache? ;) ;) Seriously, you probably need to increase the number of concurrent connections that your IIS will accept, but I have no clue how to do it. Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Finding the centroid given the feature
I'm not sure if this is what you are doing, but I have done something similar I think. When I want to use the centroid geometry of a polygon, what I do is load the layer into postgis, create a new geometry field called points_geom or something like that, and write a stand alone program to find the centroid of each feature, adn insert that geometry into the new geometry field. I usually use Java since it has a really nice PostGIS object library Hope this helps -Adam On Thu, May 28, 2009 at 11:01 AM, Varun saraf vsaraf@gmail.com wrote: Hi, I know mapserver uses a point-in-polygon method to find a feature given a set of co-ordinates, but can it do the same thing reversed? For example. Each polygon I draw has a number associated with it which is in a dbf file with the same name as the shp file that mapserver uses to draw the polygons. My current map file allows me to fetch that unique number whenever I pass the co-ordinates of any point inside that polygon (mapserver uses the point-in-polygon method to fetch me the polygonID). The query I use is http://127.0.0.1:8123/cgi-bin/mapserv.exe?map=C:/ms4w/apps/workshop-5.0/testMap.mapmode=querymapxy=-77.098617 38.87795 where mapxy keeps changing based on the user's click. The html template I send just has the variable name [polygonID] which helps me get the polygon ID of the point I specify in the mapxy variable. Now, is there a way in which I can send this polygonID to mapserver and get hold of any point (perhaps the centroid) inside of this polygon? Can someone point me in the right direction here? Thanks a lot. -Varun ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Mapserver layer + Openlayers = Random pink tiles...
You are right :P To increase number connections on XP : http://www.dslreports.com/faq/10253 Thanks Daniel! On Thu, May 28, 2009 at 2:29 PM, Daniel Morissette dmorisse...@mapgears.com wrote: Paul james wrote: Hi Daniel! I ckecked the IIS Log... And I´m getting 403 to the pink tiles : 16:06:04 127.0.0.1 GET /cgi-bin/mapserv.exe 403 The IIS specification : *403 *- Forbidden. IIS defines a number of different 403 errors that indicate a more specific cause of the error: [...] Do you know how to fix that? You mean, other than using Apache? ;) ;) Seriously, you probably need to increase the number of concurrent connections that your IIS will accept, but I have no clue how to do it. Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Point lables and tiles
Not within MapServer proper. The various tiling services use this metatile approach so it does work. You'd need an intermediary script to do the clipping for you. Steve On 5/28/2009 at 8:36 AM, in message 1243517779820-2987684.p...@n2.nabble.com, paalkr pal.kristen...@statkart.no wrote: Hi! OK, are there any methods that could be used to let MapServer produce a bigger image and then chop off excess area before sending the image to the client? I think that this would be the easiest and most flexible solution. Regards, Pål Kristensen Thomas Bonfort-2 wrote: it doesn't put any labels in the 10 outermost pixels surrounding the generated image (as they are chopped off by tilecache's metabuffer) thomas -- www.camptocamp.com +33 4 79 26 57 97 On Mon, May 25, 2009 at 16:45, paalkr pal.kristen...@statkart.no wrote: Hi! Thanks for the hint! The problem is that I'm using GeoWebCache and not tilecache :) Is the METADATA labelcache_map_edge_buffer -10 END a MapServer keyword? What does it do exactly? Any other possible solutions? Regards, Pål Kristensen Thomas Bonfort-2 wrote: http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060214.html regards, thomas -- www.camptocamp.com +33 4 79 26 57 97 On Mon, May 25, 2009 at 15:00, paalkr pal.kristen...@statkart.no wrote: Hi! When creating tiles for my tilecache I have some issues regarding point labels. Using the PROCESSING label_no_clip=true works for line and polygon labels, but points has not area/size and will therefor newer be present in two neighbouring tiles. The result are clipped labels because only one tile will ever know about the presence of a point. If then the label should have been rendered into the next tile, it will be clipped. Metatiles (requesting more than one tile at a time and splitting it up on the tile server) helps, but only a little, as the same problem will occur between metatiles. A solution would be that MapServer rendered each tile (map) some percentage larger than requested, and then chops of the excess area before delivering the final map. A setting at the MAP level of the mapfile controlling this grow mechanism would be great, defining the percentage the map shall be extended before rendering. Second, is there any other way to solve the issue? Especially if there are already features in MapServer that can be used. Regards, Pål Kristensen - Regards, Pål Kristensen -- View this message in context: http://n2.nabble.com/Point-lables-and-tiles-tp2969528p2969528.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users - Regards, Pål Kristensen -- View this message in context: http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2969950.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users - Regards, Pål Kristensen -- View this message in context: http://n2.nabble.com/Point-labels-and-tiles-tp2969528p2987684.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] How do I get WFS vector type (LINE, POINT or POLYGON) from mapserver WFS query?
Hello, I am using mapserver as a WFS server. When I query getCapabilities I get he following capabilities: - GetCapabilities - DescribeFeatureType - GetFeature I also get a list of features. If I then make 'describeFeatureType' or 'getFeature' requests for one of the features on the list I get a non verbose description of the feature, or the GML for the feature. There doesn't appear to be anything that discloses if the feature is a POINT, LINE, or POLYGON type feature. The map file layers are defined properly as POINT, LINE, POLYGON as the case may be. Am I querying mapserver correctly? What am I overlooking in the XML? Thanks, Peter ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[RESOLVED:] [mapserver-users] How do I get WFS vector type (LINE, POINT or POLYGON) from mapserver WFS query?
O.K., that was brief and non-productive The 'getFeature' query XML results have ms:msGeometry entries. ie: ms:msGeometry - gml:Polygon srsName=EPSG:4269 HERE!! - gml:outerBoundaryIs - gml:LinearRing - gml:coordinates /gml:coordinates /gml:LinearRing /gml:outerBoundaryIs /gml:Polygon /ms:msGeometry Sorry about that. Peter Peter Willis wrote: Hello, I am using mapserver as a WFS server. When I query getCapabilities I get he following capabilities: - GetCapabilities - DescribeFeatureType - GetFeature I also get a list of features. If I then make 'describeFeatureType' or 'getFeature' requests for one of the features on the list I get a non verbose description of the feature, or the GML for the feature. There doesn't appear to be anything that discloses if the feature is a POINT, LINE, or POLYGON type feature. The map file layers are defined properly as POINT, LINE, POLYGON as the case may be. Am I querying mapserver correctly? What am I overlooking in the XML? Thanks, Peter ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Upgrading 5.2 - 5.4 generating CGI error...
I got that error when try to enter : http://localhost/cgi-bin/mapserv.exe?map=C:/map.map CGI ErrorThe specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: My Map: MAP EXTENT -79.7892 -34.2426 -24.9958 6.11775 FONTSET Fonts\Fonts.txt IMAGECOLOR 230 254 254 IMAGETYPE png SIZE 800 600 STATUS ON UNITS dd NAME Test OUTPUTFORMAT NAME png MIMETYPE image/png DRIVER GD/PNG EXTENSION png IMAGEMODE PC256 TRANSPARENT FALSE END PROJECTION 'proj=longlat' 'ellps=WGS84' 'datum=WGS84' 'no_defs' END WEB IMAGEPATH 'C:\map\temp' IMAGEURL '/tmp/' QUERYFORMAT text/html LEGENDFORMAT text/html BROWSEFORMAT text/html END QUERYMAP COLOR 255 0 0 SIZE -1 -1 STATUS ON STYLE hilite END REFERENCE EXTENT -79.7892 -34.2426 -24.9958 6.11775 STATUS on SIZE 221 150 MINBOXSIZE 5 MAXBOXSIZE 150 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 MARKERSIZE 8 END LAYER NAME Test GROUP Tests TYPE POLYGON STATUS default CONNECTIONTYPE POSTGIS CONNECTION user=xpassword=xdbname=x host=x port=5432 DATA the_geom from viwgeo_x USING UNIQUE oid USING SRID=-1 CLASS COLOR 255 0 255 END END END ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] SV: Clipping out unprojectable area?
Pâl, On 28/05/2009, at 9:38 PM, paalkr wrote: Does anyone have a clue regarding what I have to do, to sort out this issue? there is a clue in the log file : [Mon May 25 14:03:08 2009].187807 msPostGISLayerWhichShapes(): Query error. Error (ERROR: argument of WHERE must be type boolean, not type geometry but if you look at your query in the log file (trying to make it look a bit nice for legibility) : FROM ( SELECT geometri, * FROMgeneral.country WHERE ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,120))',4326)) ) AS country You have a WHERE clause that returns a geometry (here is the manual entry) ST_Intersection(geometry, geometry) Returns a geometry that represents the point set intersection of the Geometries. In other words - that portion of geometry A and geometry B that is shared between the two geometries. So you need to actually compare something with the geometry to make the where clause work. I hope this helps to steer you in the right direction... I have no idea what you are trying to compare! Ben paalkr wrote: Hi, thanks for the help! I tried your suggestion, but I didn't manage to get it to work correctly, this is what I did: Entered the following DATA statement: DATA geometri from ( select geometri, * from general.country where ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 0))',4326)) ) AS country USING UNIQUE ogc_fid USING SRID=4326 but I then got the following error in the MapServer logfile: [Mon May 25 14:03:08 2009].185400 msPostGISLayerWhichShapes query: select encode (AsBinary(force_collection(force_2d(geometri)),'NDR'),'base64') as geom,ogc_fid from ( select geometri, * from general.country where ST_Intersection(geometri,GeomFromText('POLYGON((12 0,18 0,18 84,12 84,12 0))',4326)) ) AS country where geometri GeomFromText('POLYGON((-5.89995617157446 59.7658748898858,-5.89995617157446 75.1604740311875,44.7675433183202 75.1604740311875,44.7675433183202 59.7658748898858,-5.89995617157446 59.7658748898858))',4326) [Mon May 25 14:03:08 2009].187786 msPostGISLayerWhichShapes query status: 7 [Mon May 25 14:03:08 2009].187807 msPostGISLayerWhichShapes(): Query error. Error (ERROR: argument of WHERE must be type boolean, not type geometry Anyone that can help with this? Regards, Pål Kristensen -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 b...@remoteinformation.com.au Out here, it pays to know... ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users