Re: [mapserver-users] Calculate length!

2015-03-13 Thread Schylberg Lars
As far as I know there is no length function in Mapserver. The only geometry function to use in Expressions is area(shape). OGR sql doesn’t provide that either as far as I can see in the documentation. So the solutions might be to convert your KML data to sqlite or postgis where such functions a

Re: [mapserver-users] Calculate length!

2015-03-13 Thread alok mathur
Thanks Lars. Yes I am looking for geometric length. On Fri, Mar 13, 2015 at 3:11 PM, Schylberg Lars < lars.schylb...@saabgroup.com> wrote: > As far as I know there is no length function in Mapserver. > > The only geometry function to use in Expressions is area(shape). > > OGR sql doesn’t provid

Re: [mapserver-users] Calculate length!

2015-03-13 Thread Rahkonen Jukka (MML)
Hi Lars, You should not underestimate GDAL. Read http://www.gdal.org/ogr_sql_sqlite.html and look at this: ogrinfo -dialect sqlite -sql "select st_length(geometry) from line_demo limit 5" line_demo.shp INFO: Open of `line_demo.shp' using driver `ESRI Shapefile' successful. Layer name: S

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

2015-03-13 Thread Passmore, James H.
Hi Jukka, Thanks for persevering with this. OK, so, the issue is not that I'm not using a shapefile (I'm using an OGR connection to an ESRI Geodatabase), or per se that I specified a list of SRS (the documentation shows a WFS_SRS list), but it is to do with the first cited SRS in the list. So

Re: [mapserver-users] Calculate length!

2015-03-13 Thread Schylberg Lars
Hi Jukka, That is right and that is why I wrote about conversion to spatialite. Next questions is when it gets interesting. How can I get Mapserver to understand that it is sqlite dialect in the DATA statement? If this would be the case: CONNECTIONTYPE OGR CONNECTION "doc_test.kml" DATA "select

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

2015-03-13 Thread Rahkonen Jukka (MML)
Hi, It looks that at the moment this GetCapabilities is not valid: http://194.66.252.155/cgi-bin/BGS_OGE_Bedrock_and_Surface_Geology_in2/ows?service=WFS&request=GetCapabilities&version=1.1.0 The WFS 1.1.0 schema contains So, there must be either DefaultSRS or then NoSRS advertised, and