[mapserver-users] Ogrtileindex troubles with MS 6.2 on Linux

2013-07-17 Thread Rahkonen Jukka
Hi,

I have had some troubles with using ogrtileindex on Linux (CentOS) with 
Mapserver 6.2.1.  I faced two dictinct issues.

1) Uppercase/lowercase trouble with file names of the source vectors when using 
the MS native connection.
My shapefiles had names like MM26P3CP.SHP. I created an ogrtindex file from 
those and used the native connection as
TILEINDEX ogrtindextest.shp,0 

Result was an error and Mapserver told that it could not open file 
MM26P3CP.SHP,0. A desperate trial revealed me that if I renamed all my source 
shapefiles to lowercase characters the native connection started to work.

2) Http 503 server error when using OGR connection and SLD_BODY in the WMS 
GetMap request.
The original source files with uppercase characters in the file names work in 
stardard WMS usage by using OGR connection instead of the native one
CONNECTIONTYPE OGR
TILEINDEX ogrtindextest.shp,0 

However, our application is sending WMS GetMaps with SLD_BODY parameter and 
with OGR connection the result is always a server error.

I have made a test on Windows with MS4W and Mapserver version 6.3-dev and I can 
not reproduce those errors. I prepared a complete zip file from my MS4W test 
set-up with mapfile, couple of original shapefiles, corresponding ogrtindex 
file and GetMap request with SLD_BODY and it is downloadable from here
http://latuviitta.org/downloads/mapserver_62_trouble_with_ogrtindex.zip

As I said there are no troubles with MS4W but on our Linux server the ogrtindex 
does not work with native connection and with OGR connection using SLD_BODY in 
the GetMap request leads to server error.

The problem is not acute for us anymore because I have renamed the original 
shapefiles to lowercase and now we can use the native tindex connection and 
SLD_BODY works. However, it took so many hours to to analyze the problem that I 
think it is worth reporting my findings here.

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


Re: [mapserver-users] xslt transfofmr on getcapabilites of tinyows

2013-07-17 Thread Olivier Courtin
Hi Andrea,

First i could not reproduce your problem with TinyOWS.
I use trunk version (so really close to 1.1.0).

Could you provide tinyows -h output ?
Could you provide tinyows config file ?



Second, i could not reproduce your problem with XPath either ^^
as following works for me:


xsltproc foo.xsl capa.xml

With foo.xsl:

?xml version=1.0?
xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

xsl:template
  xsl:value-of select=//FeatureTypeList/FeatureType[1]/Name /
/xsl:template

/xsl:stylesheet


HTH,

O.



On Tue, Jul 16, 2013 at 11:53 PM, Andrea Peri aperi2...@gmail.com wrote:
 I open a ticket for this issue on keyword.

 https://github.com/mapserver/tinyows/issues/61

 Regards.


 2013/7/16 Andrea Peri aperi2...@gmail.com

 Hi,

 I test it with a validate tool,
 Effectively there was an error.

  Element Keywords is not allowed under element FeatureType.

 So I remove the keywords definition from my tiny config.xml,

 After this the xml was valid, but always the

 xsl:value-of select=//FeatureTypeList/FeatureType/Name /

 don't return the right value.





 2013/7/16 Olivier Courtin olivier.cour...@gmail.com

 If you have a doubt on a XML provided by a WFS server,
 there's OGC XSD you could use to validate against.
 (look in tinyows/schema dir)

 O.

 On Tue, Jul 16, 2013 at 5:39 PM, Andrea Peri aperi2...@gmail.com wrote:
  Hi,
 
  I'm try.ing to trasform an xml from tinyows.
 
  But it seem don't work.
 
  Perhaps there a problem with the xml of tiny ?
 
  On this call:
 
 
  http://www502.regione.toscana.it/wfsvector/com.rt.wfs.RTmap/wfs?SERVICE=WFSREQUEST=GetCapabilitiesversion=1.1.0
 
  I'm trying to apply this trasformation:
 
  xsl:value-of select=//FeatureTypeList/FeatureType[1]/Name /
 
  to retrieve the name of first FeatureType.
 
  But the xsltproc always return null.
 
  I'm not sure of my xpath, but it seem ok,
 
  Any help is welcome.
 
  --
  -
  Andrea Peri
  . . . . . . . . .
  qwerty àèìòù
  -
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 



 --
 Olivier




 --
 -
 Andrea Peri
 . . . . . . . . .
 qwerty àèìòù
 -




 --
 -
 Andrea Peri
 . . . . . . . . .
 qwerty àèìòù
 -



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


[mapserver-users] problem on template file

2013-07-17 Thread avin mohanza
hello.
i am working on mapserver.
i am using mapserver version 6.0.1. and linux debian as my base operating
system.

i have a mapfile. this file is exported from qgis plugin manager.
it has 3 layers. after finished parsing the .osm map(i am using osm map).
i save the 3 layers as shapefile(because when i want to show the map in
browser, there will be errors).

also i have created the template file for this mapfile. i took the template
from http://mapserver.org/mapfile/template.html#format. at the bottom of the
page. i have adjusted the attribute on the template file.

but when i want to show it in the browser by writing he address
http://localhost/cgi-bin/mapserv?map=/var/www/arnsbergMS/arnsberg.map
it just show the template without the map.

the map itself comes out perfectly when i enter this address
http://localhost/cgi-bin/mapserv?map=/var/www/arnsbergMS/arnsberg.maplayers=allmode=map

but when i click the template file on htmlroot, the template comes out with
the map.

how come? do i made mistake on changing the template atribute?
please help



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/problem-on-template-file-tp5067070.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] Ogrtileindex troubles with MS 6.2 on Linux

2013-07-17 Thread Even Rouault
Le mercredi 17 juillet 2013 10:16:22, Rahkonen Jukka a écrit :
 Hi,
 
 I have had some troubles with using ogrtileindex on Linux (CentOS) with
 Mapserver 6.2.1.  I faced two dictinct issues.
 
 1) Uppercase/lowercase trouble with file names of the source vectors when
 using the MS native connection. My shapefiles had names like
 MM26P3CP.SHP. I created an ogrtindex file from those and used the native
 connection as TILEINDEX ogrtindextest.shp,0
 
 Result was an error and Mapserver told that it could not open file
 MM26P3CP.SHP,0. A desperate trial revealed me that if I renamed all my
 source shapefiles to lowercase characters the native connection started to
 work.

Reproduced and fixed : https://github.com/mapserver/mapserver/issues/4712

 
 2) Http 503 server error when using OGR connection and SLD_BODY in the WMS
 GetMap request. The original source files with uppercase characters in the
 file names work in stardard WMS usage by using OGR connection instead of
 the native one CONNECTIONTYPE OGR
 TILEINDEX ogrtindextest.shp,0
 
 However, our application is sending WMS GetMaps with SLD_BODY parameter and
 with OGR connection the result is always a server error.
 
 I have made a test on Windows with MS4W and Mapserver version 6.3-dev and I
 can not reproduce those errors. I prepared a complete zip file from my
 MS4W test set-up with mapfile, couple of original shapefiles,
 corresponding ogrtindex file and GetMap request with SLD_BODY and it is
 downloadable from here
 http://latuviitta.org/downloads/mapserver_62_trouble_with_ogrtindex.zip
 
 As I said there are no troubles with MS4W but on our Linux server the
 ogrtindex does not work with native connection and with OGR connection
 using SLD_BODY in the GetMap request leads to server error.
 
 The problem is not acute for us anymore because I have renamed the original
 shapefiles to lowercase and now we can use the native tindex connection
 and SLD_BODY works. However, it took so many hours to to analyze the
 problem that I think it is worth reporting my findings here.

I didn't reproduce the problem. I couldn't use directly your ogrtindextest.shp 
as it contained full (Windows) path names, so I recreated a new one. I fail to 
see how SLD_BODY and uppercase/lowercase could interact...

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

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapserver, WMS-Time - Default Configure

2013-07-17 Thread JM
Hello List,

 

i have quite a lot historic raster maps which i wanna publish via mapserver
wms. The raster maps are widely spread over space and time, but over the
hole temporal horizont they could composite to a quite nice map. Thanks to
the good work of the mapserver community i could already serve this data via
WMS-T, which is based on postgis time-/tileindex, and also as a default
layer (a composite map, which consists of the best-preserved maps from
different timeperiods for each spatial extent) who is based on VRT. 

 

Now i would like to known, if it possible to group the time layer and the
default layer (vrt) in a manner, that if group as a layer is queried without
a timestamp the default layer (VRT) is used and when queried with a temporal
extent the timelayer is used. In my WMS Capabilities this layer group should
show up as single layer which support time request. My question is know if
this is possible with mapserver and if yes how i have to configure my
mapfile? I hope i clearly expressed myself.


Kind regards,


JM   

 

 

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


Re: [mapserver-users] Ogrtileindex troubles with MS 6.2 on Linux

2013-07-17 Thread Jeff McKenna
On 2013-07-17 1:53 PM, Even Rouault wrote:
 Le mercredi 17 juillet 2013 10:16:22, Rahkonen Jukka a écrit :
 Hi,

 I have had some troubles with using ogrtileindex on Linux (CentOS) with
 Mapserver 6.2.1.  I faced two dictinct issues.

 1) Uppercase/lowercase trouble with file names of the source vectors when
 using the MS native connection. My shapefiles had names like
 MM26P3CP.SHP. I created an ogrtindex file from those and used the native
 connection as TILEINDEX ogrtindextest.shp,0

 Result was an error and Mapserver told that it could not open file
 MM26P3CP.SHP,0. A desperate trial revealed me that if I renamed all my
 source shapefiles to lowercase characters the native connection started to
 work.
 
 Reproduced and fixed : https://github.com/mapserver/mapserver/issues/4712
 


Wow good find and fix Jukka/Even.

-jeff




-- 
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/



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