Re: [mapserver-users] KML reading through OGR

2015-03-12 Thread Schylberg Lars
The OGR style is the variable that is returned in the variable that is casted. Please look at the Layer definitions that I sent yesterday in the mapfile example. DATA SELECT Name as NAME, CAST(OGR_STYLE AS character(32)) AS STYLE FROM 'Fibertech solution' WHERE OGR_GEOMETRY='LINESTRING'

[mapserver-users] Inverted polygon shapeburst effect

2015-03-12 Thread Kalbermatten Michaël
Hi, I am looking for a way to create a shapeburst effect (or outer glow) on the outer side of a polygon. This is something which has been added to QGIS (using the inverted polygon option, see http://planet.qgis.org/planet/tag/shapeburst/) I was wondering if something like that was possible in

Re: [mapserver-users] KML reading through OGR

2015-03-12 Thread alok mathur
Hi Lars, I want to create a styling for each placemark in .map file. Means If i have a KML containing one folder with multiple placemarks as shown below. I want to create a .map file which will contain style for each placemark. What if i have the same names of placemarks. Please help me to get

Re: [mapserver-users] Inverted polygon shapeburst effect

2015-03-12 Thread Kalbermatten Michaël
Just an update... I found some kind of solution... My polygon layer is a postgis layer, thus I just duplicated it in the mapfile, and added a st_translate on the geometry using an attribute of the table. In this new layer, I defined a class having multiple geotransform style tags. Something

Re: [mapserver-users] Odd warning in WFS GetCapabilities ~ what's missing in the config?

2015-03-12 Thread Rahkonen Jukka (MML)
Hi Jeff, If you use version=1.1.0 you'll see the warnings: http://194.66.252.155/cgi-bin/BGS_OGE_Bedrock_and_Surface_Geology_in2/ows?service=WFSrequest=GetCapabilitiesVERSION=1.1.0 -Jukka- Jeff McKenna wrote: On 2015-03-12 9:12 AM, Passmore, James H. wrote: I have a MapServer version 6.4.1

Re: [mapserver-users] Odd warning in WFS GetCapabilities ~ what's missing in the config?

2015-03-12 Thread Jeff McKenna
Hi Jukka, I never do use 1.1.0 :) But please do let the reporter (James) know. Thanks, -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ On 2015-03-12 10:41 AM, Rahkonen Jukka (MML) wrote: Hi Jeff, If you use version=1.1.0 you'll see the

Re: [mapserver-users] Odd warning in WFS GetCapabilities ~ what's missing in the config?

2015-03-12 Thread Eichner, Andreas - SID
Behavior might be unstable as msOWSGetEPSGProj() returns a pointer to a character buffer on the local stack frame. While WFS 1.0.0 code uses the result directly the WFS 1.1.0 code uses msOWSGetProjURN() as a wrapper around it which might disrupt the character buffer. I'm wondering how this

Re: [mapserver-users] Odd warning in WFS GetCapabilities ~ what's missing in the config?

2015-03-12 Thread Jeff McKenna
On 2015-03-12 9:12 AM, Passmore, James H. wrote: I have a MapServer version 6.4.1 service set-up and was looking at the WFS GetCapabilities response: http://194.66.252.155/cgi-bin/BGS_OGE_Bedrock_and_Surface_Geology_in2/ows?service=WFSrequest=GetCapabilities; All my FeatureTypes have the

Re: [mapserver-users] Odd warning in WFS GetCapabilities ~ what's missing in the config?

2015-03-12 Thread Passmore, James H.
Hi Jukka, Thanks you are correct. I added WFS_OWS EPSG:4326 to the LAYER METADATA section as a quick hack after getting those errors and it was too quick a hack. So changing the incorrect WFS_OWS EPSG:4326 to the WFS_SRS EPSG:4326 in the LAYER METADATA makes the error message go away, but

Re: [mapserver-users] Odd warning in WFS GetCapabilities ~ what's missing in the config?

2015-03-12 Thread Rahkonen Jukka (MML)
Hi James, You are right with the version negotiation but if you want to avoid troubles in real life you should not trust that it works as supposed. But in your case Mapserver behaves as it should. Browser do not know how to negotiate and Mapserver sends WFS 1.1.0 GetCapabilities as an answer

Re: [mapserver-users] Odd warning in WFS GetCapabilities ~ what's missing in the config?

2015-03-12 Thread Rahkonen Jukka (MML)
Hi, With my minimal mapfile for the states.shp the behaviour seems to be as documented. Projection given in only one place from the list is enough for making the warning to disappear. Something that you have in a different way must make the difference. Some alternatives: - you do not use

Re: [mapserver-users] Odd warning in WFS GetCapabilities ~ what's missing in the config?

2015-03-12 Thread Passmore, James H.
Thanks to Jeff and Jukka for commenting on this. You are missing the required parameter VERSION in your request. If I add it to your request I get no warnings: http://194.66.252.155/cgi-bin/BGS_OGE_Bedrock_and_Surface_Geology_in2/ows?service=WFSrequest=GetCapabilitiesVERSION=1.0.0 -- Jeff

[mapserver-users] 4 band wms

2015-03-12 Thread Newcomb, Doug
Hi Folks, Is there any way of serving up 4 bands of imagery as a wms that the client can switch from rgb to false color on the fly? I'm guessing not, that serving up 2 wms services would be the solution, but I would love to be corrected. Doug -- Doug Newcomb USFWS Raleigh, NC 919-856-4520 ext.

Re: [mapserver-users] 4 band wms

2015-03-12 Thread Rahkonen Jukka (MML)
Hi, With PROCESSING - BANDS http://www.mapserver.org/input/raster.html you can make one layer RGB and another for CIR. Once RFC 109 http://mapserver.org/development/rfc/ms-rfc-109.html is implemented it will be possible to use one layer and let users to select the bands by including a

Re: [mapserver-users] MS7 wfs

2015-03-12 Thread Even Rouault
Selon steve.tout...@inspq.qc.ca: hello Using mapserver 7 I make this request to get the number of features in a WFS layer. it returns numberOfFeatures=450361 http://localhost/cgi-bin/ms7?version=1.1.0request=getfeatureservice=wfstypename=feature:aqreseauresultType=hits this layer is a

[mapserver-users] MS7 wfs

2015-03-12 Thread Steve . Toutant
hello Using mapserver 7 I make this request to get the number of features in a WFS layer. it returns numberOfFeatures=450361 http://localhost/cgi-bin/ms7?version=1.1.0request=getfeatureservice=wfstypename=feature:aqreseauresultType=hits this layer is a postgis table on localhost. This request

Re: [mapserver-users] 4 band wms

2015-03-12 Thread Newcomb, Doug
Thanks! Doug On Thu, Mar 12, 2015 at 2:14 PM, Rahkonen Jukka (MML) jukka.rahko...@maanmittauslaitos.fi wrote: Hi, With PROCESSING - BANDS http://www.mapserver.org/input/raster.html you can make one layer RGB and another for CIR. Once RFC 109

Re: [mapserver-users] box query point data

2015-03-12 Thread Rahkonen Jukka (MML)
Hi, If you want to stay with OGC services, WMS GetFeatureInfo takes only a point as an input geometry. You can enlarge it to circle by using a bigger TOLERANCE setting in a mapfile (remember also to increase FEATURE_COUNT from the default which is one). For making queries from inside a box

Re: [mapserver-users] 4 band wms

2015-03-12 Thread Newcomb, Doug
Looking over the WMS dimension documentation , http://mapserver.org/id/ogc/wms_dimension.html#processing-dimension-requests. Would that be a possibility? Doug On Thu, Mar 12, 2015 at 12:59 PM, Newcomb, Doug doug_newc...@fws.gov wrote: Hi Folks, Is there any way of serving up 4 bands of

[mapserver-users] box query point data

2015-03-12 Thread Weisbender, Eric
Hello List, I have a map file with an output projection of utm13. When I define a point layer that is in wgs84 it will only query one point at a time with a single click. When I try to query multiple points with a box query it returns nothing. I can't find any documentation that even

Re: [mapserver-users] [EXTERNAL] MS7 wfs

2015-03-12 Thread Smith, Michael ERDC-RDE-CRREL-NH
One side note, you can set wfs_compute_number_matched false In the LAYER METADATA section to disable this. See http://mapserver.org/development/rfc/ms-rfc-105.html for details. Michael Smith US Army Corps Remote Sensing GIS/Center michael.sm...@usace.army.mil From:

[mapserver-users] getExtent for Postgis Layer

2015-03-12 Thread Sven Schroeter
Hi, I try to get the extent of my layers using php mapscript: $map= ms_newMapObj($mapfilepath.'\map.map'); $mylayer = $map-getLayerByName($getlayer); $layerextent = $mylayer-getExtent(); echo $layerextent-minx. .$layerextent-miny. .$layerextent-maxx. .$layerextent-maxy; This works fine for

Re: [mapserver-users] KML reading through OGR

2015-03-12 Thread Schylberg Lars
From: alok mathur [mailto:mathuralok...@gmail.com] Sent: den 12 mars 2015 10:57 To: Schylberg Lars Cc: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] KML reading through OGR You have to create symbol definitions to use in the mapfile: Plenty of examples on this page:

[mapserver-users] Odd warning in WFS GetCapabilities ~ what's missing in the config?

2015-03-12 Thread Passmore, James H.
I have a MapServer version 6.4.1 service set-up and was looking at the WFS GetCapabilities response: http://194.66.252.155/cgi-bin/BGS_OGE_Bedrock_and_Surface_Geology_in2/ows?service=WFSrequest=GetCapabilities; All my FeatureTypes have the following warning: !-- WARNING: Mandatory mapfile