Re: [mapserver-users] Installing mapserver 6.4 with cmake - custom library paths

2014-01-29 Thread Jiří Kadlec
After a couple of failed trials with cmake, I resorted to installing the
older version MapServer 6.2.2.
I've described my installation steps on the Webfaction webhosting account
here:
https://community.webfaction.com/questions/15234/web-map-service-wms-installation

I think that more examples on compiling mapserver with cmake (similar to
http://mapserver.org/installation/unix.html) would really help people like
me who are not Linux and cmake experts.

Cheers,
Jiri


On Tue, Jan 28, 2014 at 3:09 PM, Jiří Kadlec jirikadl...@gmail.com wrote:

 I tried to understand the documentation
 https://github.com/mapserver/mapserver/blob/rel-6-4-1/INSTALL.CMAKE#L174
 But I'm still stuck.
 Here are the steps that I did:

 wget http://download.osgeo.org/mapserver/mapserver-6.4.1.tar.gz
 tar -xf mapserver-6.4.1.tar.gz
 cd mapserver-6.4.1
 mkdir build
 cd build
 cmake -DCMAKE_PREFIX_PATH=$HOME:$HOME/bin:$HOME/lib:$HOME/bin/gdal-config
 -DCMAKE_INSTALL_PREFIX=$HOME -DWITH_WCS=1 -DWITH_WFS=1 -DWITH_PROJ=1
 -DWITH_POSTGIS=1 -DWITH_FCGI=0 -DWITH_FRIBIDI=0 ..

 $HOME/bin/gdal-config --version is 1.10.1
 $HOME/bin/proj is version 4.8.0

 But for some reason, cmake still wants to use the old system version of
 gdal and proj libraries because it shows the following output:
 -- * Summary of configured options for this build
 --  * Mandatory components
 --   * png: /usr/lib64/libpng.so
 --   * jpeg: /usr/lib64/libjpeg.so
 --   * freetype: /usr/lib64/libfreetype.so
 --  * Optional components
 --   * GDAL: /usr/lib/libgdal.so
 --   * OGR: /usr/lib/libgdal.so
 --   * GD: disabled
 --   * GIF: /home/keskari/lib/libgif.so
 --   * MYSQL: disabled
 --   * FRIBIDI: disabled
 --   * GIF: /home/keskari/lib/libgif.so
 --   * CAIRO: /usr/lib64/libcairo.so
 --   * SVGCAIRO: disabled
 --   * RSVG: disabled
 --   * CURL: disabled
 --   * PROJ: /usr/lib64/libproj.so
 --   * LIBXML2: /usr/lib64/libxml2.so
 --   * POSTGIS: /usr/pgsql-9.1/lib/libpq.so
 --   * GEOS: /usr/lib64/libgeos_c.so
 --   * FastCGI: disabled
 --   * Oracle Spatial: disabled
 --   * SDE: disabled
 --   * Exempi XMP: disabled
 --  * Optional features
 --   * WMS SERVER: ENABLED
 --   * WFS SERVER: ENABLED
 --   * WCS SERVER: ENABLED
 --   * SOS SERVER: disabled
 --   * WMS CLIENT: disabled
 --   * WFS CLIENT: disabled
 --   * ICONV: ENABLED
 --   * Thread-safety support: disabled
 --   * KML output: disabled
 --   * Z+M point coordinate support: disabled
 --   * XML Mapfile support: disabled
 --  * Mapscripts
 --   * Python: disabled
 --   * PHP: disabled
 --   * PERL: disabled
 --   * RUBY: disabled
 --   * JAVA: disabled
 --   * C#: disabled
 --   * Apache Module (Experimental): disabled
 --
 -- Will install files to /home/keskari
 -- Will install libraries to /home/keskari/lib64
 -- Configuring done

 Also, I'm getting a lot of warnings like:
 CMake Warning at CMakeLists.txt:263 (add_executable):
   Cannot generate a safe runtime search path for target legend because
 files
   in some directories may conflict with libraries in implicit directories:

 runtime library [libproj.so.0] in /usr/lib64 may be hidden by files in:
   /home/keskari/lib
 runtime library [libgdal.so.1] in /usr/lib may be hidden by files in:
   /home/keskari/lib
 runtime library [libxml2.so.2] in /usr/lib64 may be hidden by files in:
   /home/keskari/lib

   Some of these libraries may not be found correctly.

 Why is CMake unable to find the correct GDAL and PROJ libraries? Can you
 see anything wrong I'm doing in my cmake command?

 Thanks,
 Jiri





 On Tue, Jan 28, 2014 at 12:18 PM, Thomas Bonfort thomas.bonf...@gmail.com
  wrote:

 https://github.com/mapserver/mapserver/blob/rel-6-4-1/INSTALL.CMAKE#L174

 On 28/01/2014 11:03, Jiří Kadlec wrote:
  I'm trying to install the latest version of mapserver (6.4) on my Linux
  webhosting account (webfaction.com). The default libraries such as
 GDAL,
  PROJ and Libxml2 on the WebFaction's server are quite old, so I
 installed
  the latest versions of gdal, proj and libxml2 in my $HOME/lib directory.
 
  I noticed that I should use the cmake tool to build mapserver. I need
 some
  help with cmake: How do I tell cmake to use the proj, gdal and libxml2
   libraries from my $HOME/lib folder instead of the default locations?
 
  Here is the content of my $HOME/lib folder:
  drwxr-xr-x  2 keskari keskari  4096 Jan 25 19:45 gdalplugins
  -rw-r--r--  1 keskari keskari 136728250 Jan 25 19:45 libgdal.a
  -rwxr-xr-x  1 keskari keskari  1054 Jan 25 19:45 libgdal.la
  lrwxrwxrwx  1 keskari keskari17 Jan 25 19:45 libgdal.so -
  libgdal.so.1.17.1
  lrwxrwxrwx  1 keskari keskari17 Jan 25 19:45 libgdal.so.1 -
  libgdal.so.1.17.1
  -rwxr-xr-x  1 keskari keskari  58424319 Jan 25 19:45 libgdal.so.1.17.1
  -rw-r--r--  1 keskari keskari   2442638 Jan 28 07:37 libproj.a
  -rwxr-xr-x  1 keskari keskari   922 Jan 28 07:37 libproj.la
  lrwxrwxrwx  1 keskari keskari16 Jan 28 07:37 libproj.so -
  libproj.so.0.7.0
  lrwxrwxrwx  1

[mapserver-users] Installing mapserver 6.4 with cmake - custom library paths

2014-01-28 Thread Jiří Kadlec
I'm trying to install the latest version of mapserver (6.4) on my Linux
webhosting account (webfaction.com). The default libraries such as GDAL,
PROJ and Libxml2 on the WebFaction's server are quite old, so I installed
the latest versions of gdal, proj and libxml2 in my $HOME/lib directory.

I noticed that I should use the cmake tool to build mapserver. I need some
help with cmake: How do I tell cmake to use the proj, gdal and libxml2
 libraries from my $HOME/lib folder instead of the default locations?

Here is the content of my $HOME/lib folder:
drwxr-xr-x  2 keskari keskari  4096 Jan 25 19:45 gdalplugins
-rw-r--r--  1 keskari keskari 136728250 Jan 25 19:45 libgdal.a
-rwxr-xr-x  1 keskari keskari  1054 Jan 25 19:45 libgdal.la
lrwxrwxrwx  1 keskari keskari17 Jan 25 19:45 libgdal.so -
libgdal.so.1.17.1
lrwxrwxrwx  1 keskari keskari17 Jan 25 19:45 libgdal.so.1 -
libgdal.so.1.17.1
-rwxr-xr-x  1 keskari keskari  58424319 Jan 25 19:45 libgdal.so.1.17.1
-rw-r--r--  1 keskari keskari   2442638 Jan 28 07:37 libproj.a
-rwxr-xr-x  1 keskari keskari   922 Jan 28 07:37 libproj.la
lrwxrwxrwx  1 keskari keskari16 Jan 28 07:37 libproj.so -
libproj.so.0.7.0
lrwxrwxrwx  1 keskari keskari16 Jan 28 07:37 libproj.so.0 -
libproj.so.0.7.0
-rwxr-xr-x  1 keskari keskari   1143691 Jan 28 07:37 libproj.so.0.7.0
-rw-r--r--  1 keskari keskari   7214544 Jan 25 19:59 libxml2.a
-rwxr-xr-x  1 keskari keskari   932 Jan 25 19:59 libxml2.la
lrwxrwxrwx  1 keskari keskari16 Jan 25 19:59 libxml2.so -
libxml2.so.2.8.0
lrwxrwxrwx  1 keskari keskari16 Jan 25 19:59 libxml2.so.2 -
libxml2.so.2.8.0
-rwxr-xr-x  1 keskari keskari   4237533 Jan 25 19:59 libxml2.so.2.8.0
drwxrwxr-x  2 keskari keskari  4096 Jan 28 07:37 pkgconfig
drwx--  2 keskari keskari  4096 Aug 23  2012 python2.3
drwx--  2 keskari keskari  4096 Jun 26  2013 python2.4
drwx--  2 keskari keskari  4096 Aug 23  2012 python2.5
drwx--  3 keskari keskari  4096 Jan 25 19:59 python2.6
drwxrwxr-x 42 keskari keskari  4096 Nov 23 07:43 python2.7
-rw-r--r--  1 keskari keskari   216 Jan 25 19:59 xml2Conf.sh


-- 
Jiří Kadlec
Research Assistant
Aalto university
Lahti, Finland
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Installing mapserver 6.4 with cmake - custom library paths

2014-01-28 Thread Jiří Kadlec
I tried to understand the documentation
https://github.com/mapserver/mapserver/blob/rel-6-4-1/INSTALL.CMAKE#L174
But I'm still stuck.
Here are the steps that I did:

wget http://download.osgeo.org/mapserver/mapserver-6.4.1.tar.gz
tar -xf mapserver-6.4.1.tar.gz
cd mapserver-6.4.1
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=$HOME:$HOME/bin:$HOME/lib:$HOME/bin/gdal-config
-DCMAKE_INSTALL_PREFIX=$HOME -DWITH_WCS=1 -DWITH_WFS=1 -DWITH_PROJ=1
-DWITH_POSTGIS=1 -DWITH_FCGI=0 -DWITH_FRIBIDI=0 ..

$HOME/bin/gdal-config --version is 1.10.1
$HOME/bin/proj is version 4.8.0

But for some reason, cmake still wants to use the old system version of
gdal and proj libraries because it shows the following output:
-- * Summary of configured options for this build
--  * Mandatory components
--   * png: /usr/lib64/libpng.so
--   * jpeg: /usr/lib64/libjpeg.so
--   * freetype: /usr/lib64/libfreetype.so
--  * Optional components
--   * GDAL: /usr/lib/libgdal.so
--   * OGR: /usr/lib/libgdal.so
--   * GD: disabled
--   * GIF: /home/keskari/lib/libgif.so
--   * MYSQL: disabled
--   * FRIBIDI: disabled
--   * GIF: /home/keskari/lib/libgif.so
--   * CAIRO: /usr/lib64/libcairo.so
--   * SVGCAIRO: disabled
--   * RSVG: disabled
--   * CURL: disabled
--   * PROJ: /usr/lib64/libproj.so
--   * LIBXML2: /usr/lib64/libxml2.so
--   * POSTGIS: /usr/pgsql-9.1/lib/libpq.so
--   * GEOS: /usr/lib64/libgeos_c.so
--   * FastCGI: disabled
--   * Oracle Spatial: disabled
--   * SDE: disabled
--   * Exempi XMP: disabled
--  * Optional features
--   * WMS SERVER: ENABLED
--   * WFS SERVER: ENABLED
--   * WCS SERVER: ENABLED
--   * SOS SERVER: disabled
--   * WMS CLIENT: disabled
--   * WFS CLIENT: disabled
--   * ICONV: ENABLED
--   * Thread-safety support: disabled
--   * KML output: disabled
--   * Z+M point coordinate support: disabled
--   * XML Mapfile support: disabled
--  * Mapscripts
--   * Python: disabled
--   * PHP: disabled
--   * PERL: disabled
--   * RUBY: disabled
--   * JAVA: disabled
--   * C#: disabled
--   * Apache Module (Experimental): disabled
-- 
-- Will install files to /home/keskari
-- Will install libraries to /home/keskari/lib64
-- Configuring done

Also, I'm getting a lot of warnings like:
CMake Warning at CMakeLists.txt:263 (add_executable):
  Cannot generate a safe runtime search path for target legend because files
  in some directories may conflict with libraries in implicit directories:

runtime library [libproj.so.0] in /usr/lib64 may be hidden by files in:
  /home/keskari/lib
runtime library [libgdal.so.1] in /usr/lib may be hidden by files in:
  /home/keskari/lib
runtime library [libxml2.so.2] in /usr/lib64 may be hidden by files in:
  /home/keskari/lib

  Some of these libraries may not be found correctly.

Why is CMake unable to find the correct GDAL and PROJ libraries? Can you
see anything wrong I'm doing in my cmake command?

Thanks,
Jiri





On Tue, Jan 28, 2014 at 12:18 PM, Thomas Bonfort
thomas.bonf...@gmail.comwrote:

 https://github.com/mapserver/mapserver/blob/rel-6-4-1/INSTALL.CMAKE#L174

 On 28/01/2014 11:03, Jiří Kadlec wrote:
  I'm trying to install the latest version of mapserver (6.4) on my Linux
  webhosting account (webfaction.com). The default libraries such as GDAL,
  PROJ and Libxml2 on the WebFaction's server are quite old, so I installed
  the latest versions of gdal, proj and libxml2 in my $HOME/lib directory.
 
  I noticed that I should use the cmake tool to build mapserver. I need
 some
  help with cmake: How do I tell cmake to use the proj, gdal and libxml2
   libraries from my $HOME/lib folder instead of the default locations?
 
  Here is the content of my $HOME/lib folder:
  drwxr-xr-x  2 keskari keskari  4096 Jan 25 19:45 gdalplugins
  -rw-r--r--  1 keskari keskari 136728250 Jan 25 19:45 libgdal.a
  -rwxr-xr-x  1 keskari keskari  1054 Jan 25 19:45 libgdal.la
  lrwxrwxrwx  1 keskari keskari17 Jan 25 19:45 libgdal.so -
  libgdal.so.1.17.1
  lrwxrwxrwx  1 keskari keskari17 Jan 25 19:45 libgdal.so.1 -
  libgdal.so.1.17.1
  -rwxr-xr-x  1 keskari keskari  58424319 Jan 25 19:45 libgdal.so.1.17.1
  -rw-r--r--  1 keskari keskari   2442638 Jan 28 07:37 libproj.a
  -rwxr-xr-x  1 keskari keskari   922 Jan 28 07:37 libproj.la
  lrwxrwxrwx  1 keskari keskari16 Jan 28 07:37 libproj.so -
  libproj.so.0.7.0
  lrwxrwxrwx  1 keskari keskari16 Jan 28 07:37 libproj.so.0 -
  libproj.so.0.7.0
  -rwxr-xr-x  1 keskari keskari   1143691 Jan 28 07:37 libproj.so.0.7.0
  -rw-r--r--  1 keskari keskari   7214544 Jan 25 19:59 libxml2.a
  -rwxr-xr-x  1 keskari keskari   932 Jan 25 19:59 libxml2.la
  lrwxrwxrwx  1 keskari keskari16 Jan 25 19:59 libxml2.so -
  libxml2.so.2.8.0
  lrwxrwxrwx  1 keskari keskari16 Jan 25 19:59 libxml2.so.2 -
  libxml2.so.2.8.0
  -rwxr-xr-x  1 keskari keskari   4237533 Jan 25 19:59 libxml2.so.2.8.0
  drwxrwxr-x  2 keskari keskari  4096 Jan 28 07:37 pkgconfig
  drwx--  2 keskari keskari  4096

Re: [mapserver-users] One table with multiple GeometryColumns

2014-01-27 Thread Jiří Kadlec
Hi Thomas,
Thanks for explanation but it's still a bit unclear. I tried to study the
manual on http://mapserver.org/mapfile/projection.html.
Can I define two or more PROJECTION blocks for one LAYER?

What I'm trying to achieve is something like this: In the GetCapabilities
document, the client will see the list of supported projections for each
layer. Something like:

Layer
Namecryosphere_atlas_north/Name
TitleAtlas of the Cryosphere: Northern Hemisphere/Title
SRSEPSG:32661/SRSSRSEPSG:4326/SRSSRSEPSG:3408/SRSSRSEPSG:3410/SRSSRSEPSG:3411/SRSSRSEPSG:3413/SRSSRSEPSG:3571/SRS
..

--Jiri


On Mon, Jan 27, 2014 at 12:48 PM, Thomas Bonfort
thomas.bonf...@gmail.comwrote:

 (please keep your messages on list)

 yes, it will do that if proj support is built in. Just make sure you
 have defined a PROJECTION block at the LAYER level describing the
 projection of the underlying data.

 --
 thomas

 On 27/01/2014 11:45, Jiří Kadlec wrote:
  Thank you for the clarification.
  I have a related question:
 
  Can MapServer do 'on-the-fly' reprojection of my WMS layer data on the
  server?
  Let's say I have a table 'lakes' with one geometry column in EPSG:4326.
 And
  I want to make the same layer available in 3 other projections and I
 don't
  mind the reprojection overhead.
 
  Regards,
  Jiri
 
 
  On Mon, Jan 27, 2014 at 12:38 PM, Thomas Bonfort
  thomas.bonf...@gmail.comwrote:
 
  AFAIK, creating 3 distinct layers is currently the only solution
  available, which has the inconvenience that the client must explicitely
  request the correct layer in order to avoid the overhead of
 reprojection.
  You can use INCLUDEs inside those layers in order to avoid duplicating
  the rest of the LAYER configuration (i.e. for everything except NAME,
  DATA, PROJECTION).
  The mechanism used for
  http://mapserver.org/fr/development/rfc/ms-rfc-86.html SCALETOKENs
 could
  probably be extended to include other runtime-replaceable tokens
  (notably projection id), but there would still be issues in that case as
  to how mapserver itself should be instructed whether to reproject the
  data or not.
 
  --
  thomas
 
  On 27/01/2014 11:28, Jiří Kadlec wrote:
  Dear mapserver forum,
 
  In my PostGIS database I have a table 'lakes' with 3 geometry columns:
  the_geom4326, the_geom3857, the_geom3067
  My goal is to make my 'lakes' layer available in the 3 different
  projections: (EPSG:4326, EPSG:3857, EPSG:3067)
 
  Is this possible in MapServer?
 
  (then only way I managed so far is to serve the table as 3 different
  layers, first layer in EPSG:4326, second layer in EPSG:3857, third
 layer
  in
  EPSG:3067)
 
 
  Thanks a lot for help,
 
 
 
  ___
  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
 
 
 
 




-- 
Jiří Kadlec
Research Assistant
Aalto university
Lahti, Finland
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] One table with multiple GeometryColumns

2014-01-27 Thread Jiří Kadlec
Hi Jukka,
Yes you are right. wms_srs EPSG:4326 EPSG:3067 EPSG:3857 in the
metadata block is where I need to list the supported WMS layer projections.
So in my case, I will have The  http://mapserver.org/ogc/wms_server.html
is what I was looking for. I'll rely on MapServer to reproject my layers
in-the-fly.


On Mon, Jan 27, 2014 at 3:00 PM, Rahkonen Jukka (Tike) 
jukka.rahko...@mmmtike.fi wrote:

  Hi,



 So I guess that you have all the thousands of our Finnish lakes in your
 database and you have reprojected the native 3067 geometries into 4326 and
 3857 as new columns? This is unnecessary work because Mapserver can
 reproject in-the-fly to other projections. All you need is to give the list
 of supported projections in the metadata block either on MAP or LAYER level.

 wms_srs  EPSG:4326  EPSG:3857 EPSG:3067



 This and much more is well documented in
 http://mapserver.org/ogc/wms_server.html

 The other folks who answered you believed that you have some lakes in
 EPSG:3067 and others in EPSG:4326 of EPSG:3857. Forget what they wrote, I
 do not believe that your case is such complicated.

 Thomas: I am sure that deep inside you knew that wms_srs can be given also
 in the LAYER metadata and thus all layers do not need to advertise the same
 list of supported projections.



 -Jukka Rahkonen-





 Jirí Kadlec wrote:



 Dear mapserver forum,



 In my PostGIS database I have a table 'lakes' with 3 geometry columns:
 the_geom4326, the_geom3857, the_geom3067

 My goal is to make my 'lakes' layer available in the 3 different
 projections: (EPSG:4326, EPSG:3857, EPSG:3067)



 Is this possible in MapServer?



 (then only way I managed so far is to serve the table as 3 different
 layers, first layer in EPSG:4326, second layer in EPSG:3857, third layer in
 EPSG:3067)





 Thanks a lot for help,

 --
 Jiří Kadlec
 Research Assistant
 Aalto university
 Lahti, Finland




-- 
Jiří Kadlec
Research Assistant
Aalto university
Lahti, Finland
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] TinyOWS insert feature not working

2014-01-22 Thread Jiří Kadlec
I have installed and set-up TinyOWS for editing features from PostGIS
database on a RHEL6 Linux server.
Displaying features is working OK in QGIS and in Openlayers.
Editing a feature also works correctly.
However, when I try to insert a new feature I get the following error
response:

?xml version='1.0' encoding='UTF-8'?
ows:ExceptionReport
 xmlns='http://www.opengis.net/ows'
 xmlns:ows='http://www.opengis.net/ows'
 xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
 xsi:schemaLocation='http://www.opengis.net/ows
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd'
 version='1.1.0' language='en'
 ows:Exception exceptionCode='InvalidParameterValue' locator='request'
  ows:ExceptionTextXML request isn't valid/ows:ExceptionText
 /ows:Exception
/ows:ExceptionReport

Here is the Request payload that gets posted to TinyOWS:

   1. wfs:Transaction xmlns:wfs=http://www.opengis.net/wfs; service=WFS
   version=1.0.0 xsi:schemaLocation=http://www.opengis.net/wfs
   http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd; xmlns:xsi=
   
http://www.w3.org/2001/XMLSchema-instance;wfs:Insertfeature:mk_city_centre
   
xmlns:feature=https://geoinformatics.aalto.fi/;feature:the_geom3857gml:MultiPolygon
   xmlns:gml=http://www.opengis.net/gml;
   
srsName=EPSG:3857gml:polygonMembergml:Polygongml:outerBoundaryIsgml:LinearRinggml:coordinates
   decimal=. cs=, ts= 2852436.2002366,8629373.6312116
   2851633.6114397,8628494.6053864 2850678.1485863,8629067.8830985
   2850563.4930439,8630176.2200085
   
2852436.2002366,8629373.6312116/gml:coordinates/gml:LinearRing/gml:outerBoundaryIs/gml:Polygon/gml:polygonMember/gml:MultiPolygon/feature:the_geom3857/feature:mk_city_centre/wfs:Insert/wfs:Transaction




-- 
My TinyOWS error log shows:


   1.
   2. [Thu Jan 23 04:45:19 2014] [ERROR] Element '{
   http://www.w3.org/2001/XMLSchema}import': Failed to locate a schema at
   location '
   
https://geoinformatics.aalto.fi/kala/tinyows.cgi?service=WFSrequest=DescribeFeatureTypeversion=1.0.0'.
   Skipping the import.
   3.
   4. [Thu Jan 23 04:45:19 2014] [ERROR] Element '{
   https://geoinformatics.aalto.fi/}mk_city_centre': This element is not
   expected. Expected is one of ( {http://www.opengis.net/gml}_Feature, {
   http://www.opengis.net/wfs}FeatureCollection ).
   5.
   6. [Thu Jan 23 04:45:19 2014] [ERROR] XML request isn't valid
   7.




Here's my tinyows.xml configuration file:

tinyows online_resource=https://geoinformatics.aalto.fi/kala/tinyows.cgi;
 schema_dir=/usr/local/share/tinyows/schema/
 log=/tmp/tinyows.log
 log_level=1
  pg host=localhost user=postgres password=* dbname=LAHTI
port=5432/

  metadata name=TinyOWS Server
title=Lahti Urban  WFS Server /

  layer retrievable=1
 writable=1
 ns_prefix=tows
 ns_uri=https://geoinformatics.aalto.fi/;
 name=subwatersheds
 title=subwatersheds /

 layer retrievable=1
 writable=1
 ns_prefix=tows
 ns_uri=https://geoinformatics.aalto.fi/;
 name=mk_city_centre
 title=Lahti City Centre
 exclude_items=the_geom3880 /
/tinyows

And finally, here is my OpenLayers editing client javascript code snippet:

  var saveStrategy = new OpenLayers.Strategy.Save();
  saveStrategy.events.register(success, '', showSuccessMsg);
  saveStrategy.events.register(fail, '', showFailureMsg);
  wfs = new OpenLayers.Layer.Vector(Editable Features, {
  strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
  projection: new OpenLayers.Projection(EPSG:3857),
  protocol: new OpenLayers.Protocol.WFS({
  version: 1.0.0,
  srsName: EPSG:3857,
  url: https://geoinformatics.aalto.fi/kala/tinyows.cgi;,
  featureNS :  https://geoinformatics.aalto.fi/;,
  featureType: mk_city_centre,
  geometryName: the_geom3857
  //schema: 
https://geoinformatics.aalto.fi/kala/tinyows.cgi?service=wfsversion=1.0.0request=DescribeFeatureTypetypeName=tows:mk_city_centre

  })
  });


I've never used TinyOWS before. Any Ideas what I'm doing wrong? Especially
the error message
Element '{https://geoinformatics.aalto.fi/}mk_city_centre': This element is
not expected. Expected is one of ( {http://www.opengis.net/gml}_Feature, {
http://www.opengis.net/wfs}FeatureCollection ).

is confusing.

Thanks in advance for any hints or suggestions how to solve the problem.

Jiri Kadlec
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users