Re: [mapserver-users] tinyows

2012-11-13 Thread Rahkonen Jukka
Hi,

On this page there are some WFS calls which do work against my TinyOWS server 
http://188.64.1.61/cgi-bin/tinyows.  Feel free to use it for testing.
http://latuviitta.org/Http-POST-ja-Filter.php

A very easy to use tool for testing POST requests is the Poster Firefox 
extension. This image shows how to use it. It is so simple that it should not 
matter that the texts I have added are in Finnish 
http://latuviitta.org/documents/WFS_POST_Poster.png.

-Jukka Rahkonen-

aho wrote:

 Hi Alexandre,
 
 ok, I changed to 'wfs:...', removed the Filter and got this in my -O test.txt
 file:
 
 ?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 isn't valid/ows:ExceptionText
   /ows:Exception
 /ows:ExceptionReport
 
 This is always the same actually.
 
 This was the result and the adjusted wget command:
 
 C:\Users\Annawget http://localhost/cgi-bin/tinyows.exe
 --post-data='wfs:GetFe
 ature xmlns:wfs=http://www.opengis.net/wfs; service=WFS
 version=1.1.0 xsi:s
 chemaLocation=http://www.opengis.net/wfs
 http://schemas.opengis.net/wfs/1.1.0/w
 fs.xsd xmlns:xsi=http://www.w3.org/2001/XMLSchema-
 instancewfs:Query
 typeNam
 e=feature:frida srsName=EPSG:31467
 xmlns:feature=http://127.0.0.1/;/wfs:Q
 uery/wfs:GetFeature' --header=Content-Type: application/xml;
 charset=UTF-8
 -O C:\test.txt
 
 SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc =
 C:\OSGeo4W\GnuWin32/etc/wgetrc
 --2012-11-13 10:07:35--
 http://localhost/cgi-bin/tinyows.exe%20--post-data='%3C
 wfs:GetFeature%20xmlns:wfs=http://www.opengis.net/wfs%20service=WF
 S%20version=1.
 1.0%20xsi:schemaLocation=http://www.opengis.net/wfs
 Resolving localhost... 127.0.0.1, ::1
 Connecting to localhost|127.0.0.1|:80... connected.
 HTTP request sent, awaiting response... 404 Not Found
 2012-11-13 10:07:35 ERROR 404: Not Found.
 
 --2012-11-13 10:07:35--
 http://schemas.opengis.net/wfs/1.1.0/wfs.xsd%20xmlns:xs
 i=http://www.w3.org/2001/XMLSchema-
 instance%3E%3Cwfs:Query%20typeName=feature:fr
 ida%20srsName=EPSG:31467%20xmlns:feature=http://127.0.0.1/%3E%3C/wf
 s:Query%3E%3C
 /wfs:GetFeature%3E'%20--header=Content-Type:
 Resolving schemas.opengis.net... 66.244.86.52 Connecting to
 schemas.opengis.net|66.244.86.52|:80... connected.
 HTTP request sent, awaiting response... 404 Not Found
 2012-11-13 10:07:35 ERROR 404: Not Found.
 
 --2012-11-13 10:07:35--  http://application/xml; Resolving application... 
 failed:
 No data record of requested type.
 wget: unable to resolve host address `application'
 --2012-11-13 10:07:38--  ftp://charset=utf-8%20-o%20c/%5Ctest.txt
 = `%5Ctest.txt'
 Resolving charset=utf-8 -o c... failed: No data record of requested type.
 wget: unable to resolve host address `charset=utf-8 -o c'
 
 Something is wrong with the host - maybe there is something missing in the
 tinyows configuration. Because now wget takes the application as the
 address instead of the coordinates of the bounding box!?
 I took the same ns_prefix: feature because its also defined like that in my
 xml -- I changed it, because i read that recommendation somewhere - made
 no difference.
 
 
 
 
 Am 11/12/2012 5:05 PM, schrieb Alexandre Dubé:
  Anna,
 
What does your C:\ms4w\Apache\logs\tinows.log file contain ?
 
Also yeah you should use --post-data='wfs:GetFeature...' and not
  --post-data=wfs:GetFeature  If your dataset isn't too big, you
  could remove the ogc:Filter node.  Also, try replacing
  xmlns:feature=http://127.0.0.1/; by xmlns:tows=http://127.0.0.1/;.
 
  HTH,
 
  Alexandre
 
 
  On 12-11-12 10:31 AM, aho wrote:
  Hi Alexandre,
 
  I already reinstalled pyhton and made the configuration of the apache
  server again. At least one thing I can exclude - specially because
  sooner or later I have to include it in another project which needs
  to run on a certain port. Anyhow... I also installed the wget and you
  are right, it helps a lot.
  I took the GetFeature xml from chrome and constructed the following
  line:
 
  wget http://localhost/cgi-bin/tinyows.exe; --post-data=wfs:GetF
  eature xmlns:wfs=http://www.opengis.net/wfs; service=WFS
  version=1.0.0 outp
  utFormat=application/json
  xsi:schemaLocation=http://schemas.opengis.net/wfs/1
  .0.0/WFS-transaction.xsd
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  wfs:Query typeName=feature:frida
  xmlns:feature=http://127.0.0.1/;ogc:Filte
  r
 
 xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyName
 th
  e_geom/o gc:PropertyNamegml:Box
  xmlns:gml=http://www.opengis.net/gml;
  srsName=EPSG:31
  467gml:coordinates decimal=. cs=, ts= 3413084,5782000
  3457916,5806000
 
 

[mapserver-users] Can I control laber FORCE [true|false] with SLD?

2012-11-13 Thread Rahkonen Jukka
Hi,

Our users are generally happy with non-overlapping labels but sometimes they 
would rather see all the labels. Can it be controlled with SLD_BODY or do I 
need to do a separate layer for drawing all the labels? We can turn the default 
labels off with SLD so for users eyes the result would look the same.

-Jukka Rahkonen-


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


Re: [mapserver-users] tinyows

2012-11-09 Thread Rahkonen Jukka
Hi,

Forum is right but obviously there are not many people doing WFS-T with 
OpenLayers against TinyOWS installed on Windows. If you are totally jammed I 
would recommend you to leave TinyOWS aside for a while and try to make your 
OpenLayers application to work with Geoserver WFS-T. I believe you will have 
success with it.

-Jukka Rahkonen-



 -Alkuperäinen viesti-
 Lähettäjä: aho [mailto:forum.emai...@googlemail.com]
 Lähetetty: 9. marraskuuta 2012 11:27
 Vastaanottaja: sdi...@volz.ua
 Kopio: Rahkonen Jukka; mapserver-users@lists.osgeo.org
 Aihe: Re: [mapserver-users] tinyows
 
 Hi again,
 
 I am still searching and not finding something. I setup everything again with
 the WFS-T tutorial. Now I am getting the following error message:
 
 [Thu Nov 08 16:32:21 2012] [ERROR] local list type: A type, derived by list or
 union, must have the simple ur-type definition as base type, not
 '{http://www.opengis.net/gml}doubleOrNullList'.
 
 Am I right with this forum? Because actually nobody replies.
 
 
 
 
 Am 11/6/2012 1:30 PM, schrieb aho:
  Hey,
 
  I still havn´t found the problem with the tinyows - but at the moment
  there is no error message when i am loading the wfs. Also fiddler
  doesn´t list the tinyows.exe anymore. But my proxy is correct - I can
  load it via uDig and ArcMap. QGIS has a problem, but there is not a
  single error in the tinyows log file - just events and sqls are
  listed, that looks quite good. With Open layers there is nothing
  logged - it seems like the request is not send.
 
  Is there any limitation for the version? I downloaded the latest
  (2.12) one, but on the tinyows page is version 2.09 listed?!
 
  Kind regards
 
  Am 11/2/2012 3:29 PM, schrieb Serge Dikiy:
  Hi,
 
 
 http://translate.google.com/translate?sl=rutl=enjs=nprev=_thl=en;
  ie=UTF-8layout=2eotf=1u=http%3A%2F%2Fgis-
 lab.info%2Fforum%2Fviewto
  pic.php%3Ff%3D41%26t%3D10329
 
 
  BR
 
  On Fri, Nov 2, 2012 at 4:15 PM, aho forum.emai...@googlemail.com
  wrote:
  Hi Jukka,
 
  ok, I solved the problem with the requests. The following returns
  from
  tinyOWS:
 
  ?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 errorlog:
 
  Fri Nov 02 15:11:46 2012] [EVENT] == FCGI START == [Fri Nov 02
  15:11:46 2012] [QUERY] wfs:GetFeature
  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 water
  http://127.0.0.1:8000/redir/cgi-
 bin/tinyows.exe?service=wfsamp;request=GetFeatureamp;version=1.0.
 0amp;typename=water:armature
 
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-
 instancewfs:Query
  typeName=feature:armature xmlns:feature=waterogc:Filter
 
 xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyName
 g
  eometry/ogc:PropertyNamegml:Box
 
  xmlns:gml=http://www.opengis.net/gml;
  srsName=EPSG:32740gml:coordinates
  decimal=. cs=, ts= -2866.3885602952,-1910.9257068634
 
 2866.3885602952,1910.9257068634/gml:coordinates/gml:Box/ogc:BBO
  X/ogc:Filter/wfs:Query/wfs:GetFeature
 
  [Fri Nov 02 15:11:46 2012] [ERROR] Element
  '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a
  schema at location
  'localhost/cgi-
 bin/tinyows.exe?service=WFSrequest=DescribeFeatureTypeversion=1.0.
 0'.
 
  Skipping the import.
 
  [Fri Nov 02 15:11:46 2012] [ERROR] Element
  '{http://www.opengis.net/wfs}GetFeature': No matching global
  declaration available for the validation root.
 
  [Fri Nov 02 15:11:46 2012] [ERROR] XML request isn't valid [Fri Nov
  02 15:11:46 2012] [EVENT] == FCGI SHUTDOWN == [Fri Nov 02 15:11:46
  2012] [EVENT] == TINYOWS SHUTDOWN ==
 
  Has it something to do with the schema? I found a post with
  something similar
  (http://osgeo-org.1560.n6.nabble.com/TinyOWS-wrong-call-in-
 OpenLayer
  s-InvalidParameterValue-XML-request-isn-t-valid-td5009059.html)
 
  and replaced all my old tinyows files and copied the ones from the
  ms4w homepage.
 
  Do you have some more ideas?
 
  Am 11/2/2012 10:56 AM, schrieb Rahkonen Jukka:
 
  Hi,
 
  Yes, it seems to be OpenLayers question then. However, do still
  capture the requests because without them you cannot understand
 what
  happens really.  My guess is that something in wrong in how
  EPSG:31467 and EPSG:32740 are used and OpenLayers is requesting data
  from a place where there are no data.
 
  -Jukka-
 
  aho wrote:
 
 
  Hi Jukka,
 
  thanks a lot for your answer and the good tips! I tried all of the
  links
 
  and they are working. Also

Re: [mapserver-users] tinyows

2012-11-02 Thread Rahkonen Jukka
Hi,

You must capture the traffic between OpenLayers and TinyOWS.  I am using myself 
Fiddler2 proxy but I suppose that Firebug can show you what OpenLayers is 
sending and high enough TinyOWS logging level will also gather requests into 
tinyows log. The software is not important but you just have to get the 
requests so you can resend them with a browser or some other tool that yuo can 
control and see what happens. You can also include the requests in your further 
mails. Then the question will be OpenLayers is sending this and TinyOWS is 
sending back that, what's wrong? and it will be much easier to answer.

As always with WFS, start with these requests with a browser before doing 
anything with OpenLayers:
http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfsrequest=GetCapabilitiesversion=1.1.0

http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfsrequest=DescribeFeatureTypeversion=1.1.0typename=water:pipeline_segment

http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfsrequest=GetFeatureversion=1.1.0typename=water:pipeline_segmentmaxFeatures=10

If all those requests work you know that TinyOWS works with those basic 
requests and if OpenLayers application does not get data the reason in probably 
in the application code.


-Jukka Rahkonen-

aho wrote:

 hello!

 I have a problem with the configuration of tinyows. I have the following
settings in my xml file:

 tinyows online_resource=localhost/cgi-bin/tinyows.exe
schema_dir=C:\ms4w\apps\tinyows\schema\
pg host=localhost user=postgres password=postgres
dbname=watergis port=5432/
metadata name=TinyOWS Server
   title=TinyOWS Server - WFS-T Frida Service /
contact name=TinyOWS Server
  site=http://www.tinyows.org/;
  email=tinyows-us...@lists.maptools.org /
layer retrievable=1
writable=1
ns_prefix=water
ns_uri=http://localhost/;
name=pipeline_segment
title=pipeline_segment
table= pipeline_segment
srid=32740
schema=water/
/tinyows

 if I enter tinyows --check I get the following back:

 C:\ms4w\Apache\cgi-bintinyows --check
TinyOWS version:   1.0.0rc3
FCGI support:  Yes
Config File Path:  C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML)
PostGIS Version:   2.0.0
PostGIS dsn:   host=localhost user=postgres password=postgres
dbname=watergi
s port=5432
Output Encoding:   UTF-8
Database Encoding: UTF8
Schema dir:C:\ms4w\apps\tinyows\schema\
Display bbox:  Yes
Estimated extent:  No
Check schema:  Yes
Check valid geoms: Yes
Available layers:
  - water.pipeline_segment (32740) - water.pipeline_segment [RW]


 which looks acutally quite good. But when i am trying to include that
into my openlayer map - I always get 0 features back! Here the code for
openlayers:

wfs = new OpenLayers.Layer.Vector(Editable Features, {
 strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
 projection: new OpenLayers.Projection(EPSG:31467),
 protocol: new OpenLayers.Protocol.WFS({
   version: 1.1.0,
   srsName: EPSG:32740,
   url: http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe;,
   featureNS :  tows,
   featureType: pipeline_segment,
   geometryName: geometry,
   schema:
http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfsrequest=DescribeFeatureTypeversion=1.1.0typename=water:pipeline_segment;
 })
});

Someone an idea?
___
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] tinyows

2012-11-02 Thread Rahkonen Jukka
Hi,

Yes, it seems to be OpenLayers question then. However, do still capture the 
requests because without them you cannot understand what happens really.  My 
guess is that something in wrong in how EPSG:31467 and EPSG:32740 are used and 
OpenLayers is requesting data from a place where there are no data.

-Jukka-

aho wrote:


 Hi Jukka,

 thanks a lot for your answer and the good tips! I tried all of the links
and they are working. Also I checked it in QGIS and there I can load it
too.

 So I guess it will be better to write again to the openlayers mailinglist?!


Am 11/2/2012 10:21 AM, schrieb Rahkonen Jukka:
 Hi,

 You must capture the traffic between OpenLayers and TinyOWS.  I am using 
 myself Fiddler2 proxy but I suppose that Firebug can show you what OpenLayers 
 is sending and high enough TinyOWS logging level will also gather requests 
 into tinyows log. The software is not important but you just have to get the 
 requests so you can resend them with a browser or some other tool that yuo 
 can control and see what happens. You can also include the requests in your 
 further mails. Then the question will be OpenLayers is sending this and 
 TinyOWS is sending back that, what's wrong? and it will be much easier to 
 answer.

 As always with WFS, start with these requests with a browser before doing 
 anything with OpenLayers:
 http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfsrequest=GetCapabilitiesversion=1.1.0

 http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfsrequest=DescribeFeatureTypeversion=1.1.0typename=water:pipeline_segment

 http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfsrequest=GetFeatureversion=1.1.0typename=water:pipeline_segmentmaxFeatures=10

 If all those requests work you know that TinyOWS works with those basic 
 requests and if OpenLayers application does not get data the reason in 
 probably in the application code.


 -Jukka Rahkonen-

 aho wrote:

 hello!
 I have a problem with the configuration of tinyows. I have the following
 settings in my xml file:

 tinyows online_resource=localhost/cgi-bin/tinyows.exe
  schema_dir=C:\ms4w\apps\tinyows\schema\
 pg host=localhost user=postgres password=postgres
 dbname=watergis port=5432/
 metadata name=TinyOWS Server
 title=TinyOWS Server - WFS-T Frida Service /
 contact name=TinyOWS Server
site=http://www.tinyows.org/;
email=tinyows-us...@lists.maptools.org /
 layer retrievable=1
  writable=1
  ns_prefix=water
  ns_uri=http://localhost/;
  name=pipeline_segment
  title=pipeline_segment
  table= pipeline_segment
  srid=32740
  schema=water/
 /tinyows

   if I enter tinyows --check I get the following back:

 C:\ms4w\Apache\cgi-bintinyows --check
 TinyOWS version:   1.0.0rc3
 FCGI support:  Yes
 Config File Path:  C:\ms4w\apps\tinyows\tinyows.xml (TinyOWS XML)
 PostGIS Version:   2.0.0
 PostGIS dsn:   host=localhost user=postgres password=postgres
 dbname=watergi
 s port=5432
 Output Encoding:   UTF-8
 Database Encoding: UTF8
 Schema dir:C:\ms4w\apps\tinyows\schema\
 Display bbox:  Yes
 Estimated extent:  No
 Check schema:  Yes
 Check valid geoms: Yes
 Available layers:
- water.pipeline_segment (32740) - water.pipeline_segment [RW]


 which looks acutally quite good. But when i am trying to include that
 into my openlayer map - I always get 0 features back! Here the code for
 openlayers:

 wfs = new OpenLayers.Layer.Vector(Editable Features, {
   strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
   projection: new OpenLayers.Projection(EPSG:31467),
   protocol: new OpenLayers.Protocol.WFS({
 version: 1.1.0,
 srsName: EPSG:32740,
 url: http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe;,
 featureNS :  tows,
 featureType: pipeline_segment,
 geometryName: geometry,
 schema:
 http://127.0.0.1:8000/redir/cgi-bin/tinyows.exe?service=wfsrequest=DescribeFeatureTypeversion=1.1.0typename=water:pipeline_segment;
   })
 });

 Someone an idea?
 ___
 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] Saving an image from a query

2012-10-30 Thread Rahkonen Jukka
Hi,

Perhaps wget thinks that certain characters are cutting the URL string. Try 
wget 
http://mysite.com/mapserv.cgi?map=../../mapfiles/demo.maplayer=landmode=mapFORMAT=image/png;
 -O output.png

We have used wget a lot for downloading data from WCS so I guarantee you will 
make it work by reading documents and trying just like we did.

-Jukka Rahkonen-

David Quinn wrote:
 
 Hi List,
 
 I'm trying to understand how to save an image as a result of a query.
 One approach that I have experimented with is using `wget` to save the file
 but I've been getting an error message (I asked a question on this here:
 http://gis.stackexchange.com/questions/37813/how-to-save-mapserver-
 output-to-a-file
 )
 
 Is there a better way than using wget
 http://mysite.com/mapserv.cgi?map=../../mapfiles/demo.maplayer=land
 mode=mapFORMAT=image/png
 to store a image resulting from a query?
 
 After using wget my log shows the following message:
 
 [Tue Oct 30 14:49:02 2012].580951 msWCSDispatch20(): wrong service (none)
 [Tue Oct 30 14:49:02 2012].581041 msWCSParseRequest(): request is KVP.
 [Tue Oct 30 14:49:02 2012].581049 msWCSDispatch(): SERVICE and REQUEST
 not included [Tue Oct 30 14:49:02 2012].581064 mapserv(): Web application
 error.
 Traditional BROWSE mode requires a TEMPLATE in the WEB section, but none
 was provided.
 
 Thanks,
 David
 ___
 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] WCS server, getcoverage request fail

2012-10-26 Thread Rahkonen Jukka
Hi,

First thing is that BBOX seems odd but perhaps it is a typo
BBOX=2168000,7716750,77,%205447750

-Jukka Rahkonen-

Luca Delucchi wrote:
 
 Hi everybody,
 I'm testing WCS server with MapServer 6.0 compiled from svn in a Debian
 system.
 GetCapabilities and DescribeCoverage works fine; GetCoverage instead as
 some problems when I try to use RESX and RESY, I obtain this Premature
 end of script headers: mapserv i error.log of Apache.
 My request is like this
 
 http://localhost/cgi-
 bin/mapserv?map=/var/www/wcs_test/wcs_test.mapSERVICE=WCSVER
 SION=1.0.0REQUEST=GetCoverageCOVERAGE=MODIS_LST_2002_08CR
 S=EPSG:3035BBOX=2168000,7716750,77,%205447750RESX=250RESY
 =250FORMAT=GTiff
 
 Someone can help me?
 
 --
 ciao
 Luca
 
 http://gis.cri.fmach.it/delucchi/
 www.lucadelu.org
 ___
 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] WCS server, getcoverage request fail

2012-10-26 Thread Rahkonen Jukka
Hi,

It is set with MAXSIZE at MAP level, for example
MAXSIZE 1

Our server can deliver something like 8000x8000 pixel sized uncompressed 
3-channel geotiffs well but not much bigger.  I have not considered that as a 
big problem (it is already 192 MB for the client to download) and not studied 
if I could adjust the server it to send bigger files.

-Jukka-

Luca Delucchi wrote:
 
 2012/10/26 Rahkonen Jukka jukka.rahko...@mmmtike.fi:
  Hi,
 
 
 Hi
 
  First thing is that BBOX seems odd but perhaps it is a typo
  BBOX=2168000,7716750,77,%205447750
 
 
 ops sorry I didn't see it.
 Now it return me an error because the width and height are to big
 
 [Fri Oct 26 10:42:57 2012].537605 msWCSGetCoverage(): WCS server error.
 Raster size out of range, width and height of resulting coverage must be no
 more than MAXSIZE=2048.
 
 How can I find the maximum bounding box the the right resolution and the
 MAXSIZE?
 otherwise can I force the MAXSIZE?
 
  -Jukka Rahkonen-
 
 
 Thanks
 
 
 --
 ciao
 Luca
 
 http://gis.cri.fmach.it/delucchi/
 www.lucadelu.org
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Problem with WFS Intersects filter on oraclespatial datasource

2012-10-25 Thread Rahkonen Jukka
Ludovic Gnemmi wrote:
 
 Hi List,
 I always look for an explanation for my problem:
 
 Checking deeper in my logs i have found out that :
 
 - When using wfs gml:Polygon filter requests, polygon geometry is not
 passed to oracle SQL query. Mapserver simply send default layer extent to
 oracle. Which significantly increases the response time of Oracle on big
 tables.

This probably means that Mapserver has made a decision to filter the data later 
with some internal mechanism.  It is for sure ineffective and worth making a 
feature request.  Mapserver should use  SDO_ANYINTERACT with the polygon 
geometry (or perhaps with the bounding box of the polygon geometry) in the SQL 
query.

 - In the same time i confirm that wfs_maxfeatures is not passed  to oracle
 select when using Intersects query.

If Mapserver does not make spatial query from Oracle it does not make sense to 
use AND rownum(wfs_maxfeatures+1) alone.  Otherwise Oracle would just return 
the first [maxfeatures] rows from the table while what you want is the first 
[maxfeatures] rows from the features selected by the ANYINTERACT with the 
polygon geometry.  Rownum can be passed only if the exact filter is passed 
also. Notice that it means that if the WFS query contains attribute filters 
then they must also be converted into Oracle SQL query if the maxfeatures 
cutter is to be applied on the database side.

-Jukka Rahkonen-
 
 it looks like 2 bugs, i'm not sure if i have to fill a ticket .

 Thanks for your help
 
 
 
 --
 View this message in context: http://osgeo-
 org.1560.n6.nabble.com/Problem-with-WFS-Intersects-filter-on-
 oraclespatial-datasource-tp5009604p5011206.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


Re: [mapserver-users] WMS server error. Invalid layer(s) given in the LAYERS parameter.

2012-10-25 Thread Rahkonen Jukka
Hi,

Perhaps you have not added
ows_enable_request *
into your mapfile. Search and read the migration guide if this happens to be 
the reason for the trouble.

Mapserver web site should be updated at least.

-Jukka Rahkonen-


Mike Stoddart wrote:

 I'm using MapServer 6.0.1 on Fedora 16 and I'm having a weird layer issue. 
 We're trying to port our application from MapServer 5 - 6 and we're seeing 
 the error:

 WMS server error. Invalid layer(s) given in the LAYERS parameter.

 I can re-create the problem using Python MapScript and an example map file 
 from the MapServer website. The map file is:

MAP
NAME sample
STATUS ON
SIZE 600 400

EXTENT -180 -90 180 90
UNITS DD

IMAGECOLOR 255 255 255
FONTSET/opt/test/conf/fonts.list

#
# Start of web interface definition
#
WEB
IMAGEPATH /opt/test/static/ms_tmp
IMAGEURL  /media/ms_tmp/
END # WEB

#
# Start of layer definitions
#
LAYER
 NAME 'inline_circles'
 TYPE CIRCLE
 STATUS on
 FEATURE
   POINTS
 74.01 -53.8
 110.7 -22.16
   END
 END
 CLASS
   STYLE
 COLOR 0 0 255
   END
 END
END

END # MAP

If I use the following Python:

import mapscript
f = path to map file
m = mapscript.mapObj(f)
r = mapscript.OWSRequest()
r.setParameter('LAYERS', 'inline_circle')
m.loadOWSParameters(r)

I get:

...
ServiceExceptionReport version=1.1.1
ServiceException code=LayerNotDefined
msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS 
parameter.
/ServiceException
/ServiceExceptionReport
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib64/python2.7/site-packages/mapscript.py, line 1623, in 
loadOWSParameters
def loadOWSParameters(*args): return 
_mapscript.mapObj_loadOWSParameters(*args)
_mapscript.MapServerError: msWMSLoadGetMapParams(): WMS server error. Invalid 
layer(s) given in the LAYERS parameter.


So it doesn't think the layer exists. If I check the layer's status:

m.getLayer(0).status
0

The layer is disabled? So I'm assuming something is amiss in my map file but I 
just can't see it. Am I missing something obvious?

Thanks
Mike

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


Re: [mapserver-users] Style paramter of WMS request

2012-10-23 Thread Rahkonen Jukka
Hi,

I have never cascaded any WMS service that supports styles but according to 
Mapserver WMS client documentation you have done it right.
You must first capture the requests that Mapserver is really sending to the 
remote server. That is easy, just add line DEBUG 5 into your layer definitions 
and then you will see all the WMS requests from your MS_ERRORFILE.  Check if 
the requests are using STYLES=AllIntensity. If not, it may be a Mapserver bug 
or some typo in the Mapfile.  If request contains the correct STYLES, copy the 
request and test it with a browser.  The remote server may not work as it 
should. If the request looks right but the response wrong, email the GetMap URL 
for the administrator of the remote WMS and tell about your problem.

-Jukka Rahkonen-
Sowmya Tiramdasu wrote:

Hi,

  I have a mapfile in which one layer is a wms layer. I need to provide style 
information of WMS getmap request in the WMS Layer.

Under the Metadata i gave wms_style AllIntensity  but it is just giving 
back the default style. Can anyone please throw some light on this topic. How 
to achieve the required style output through the WMS layer in the mapfile ?

Any help is greatly appreciated. Thanks in advance,

Regards,
Sowmya.
___
Sowmya Tiramdasu
GeoCue Corporation
9668 Madison Blvd., Suite 202
Madison, AL 35758
(256) 461-8289 Telephone
(256) 461-8249 Fax
www.geocue.comhttp://www.geocue.com

Integrating the Geospatial Workplace...

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


Re: [mapserver-users] postgis - geomfromtext problem

2012-10-15 Thread Rahkonen Jukka
Hi,

Perhaps running legacy.sql in your new database will be enough.
http://www.postgis.org/docs/PostGIS_FAQ.html#legacy_faq

-Jukka Rahkonen-

Ahmet Temiz wrote:


 
 hello
 
 I upgraded my postgis to 2.1.0.
 
 But this version of postgis doesn't accept geomfromtext (instead
 ST_GeomFromText only )
 
 But:
 following mapserver - java related codes produce geomfromtext and then
 give error:
 
 jeoLayer1.setData(geom from  (select gid,label,geom from sjeo_yas6) as
 foo  using unique gid using srid=4326 ); String f = label= + ' + yas + 
 ';
 jeoLayer1.setFilter(f);
 
 msDrawMap(): Image handling error. Failed to draw layer named
 '(null)'.;msPostGISLayerWhichShapes(): Query error. Error (ERROR:
 function geomfromtext(unknown, integer) does not exist LINE 1: ...'hex') as
 geom,gid from sjeo_yas6 where geom  GeomFromTe...
 
 
 
 I compiled mapserver 6.0.1
 
 what can I do ?
 
 regards
 
 --
 Ahmet Temiz
 Jeoloji Müh.
 Afet ve Acil Durum Yönetimi Başkanlığı
 Planlama ve Zarar Azaltma Dairesi Başkanlığı
 
 Eskişehir Yolu 10. km.
 Lodumlu / Ankara
 Tel : 0 312 2872680 / 1535
 
 
 Ahmet Temiz
 Geological Eng.
 Information Systems - GIS Group
 Disaster and Emergency Management
 of Presidency
 ___
 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] MapCache - received wms request with no service param

2012-10-15 Thread Rahkonen Jukka
Hi,

Service is not a compulsory parameter for GetMaps. See an old issue at 
https://github.com/mapserver/mapserver/issues/2737

-Jukka Rahkonen-

Mark Volz wrote:


TC Haddad and others,

I tried manually modifying the URL within ArcMap to include SERVICE=WMS so I 
can use MapCache within ArcMap.  However, even with the request url changed to: 
 http://myserver/mapcache?SERVICE=WMS;  I am still getting the same received 
wms request with no service param error.

I am guessing that when ArcMap send the get capabilities request:  
/mapcache?SERVICE=WMSSERVICE=WMSVERSION=1.1.1REQUEST=GetCapabilities  that 
MapCache is not reminding ESRI to use SERVICE=WMS, or ESRI is ignoring that 
parameter.

If you have any other thoughts let me know

Thanks

Mark Volz
GIS Specialist

From: TC Haddad [mailto:tchad...@gmail.com]mailto:[mailto:tchad...@gmail.com]
Sent: Friday, October 12, 2012 4:22 PM
To: Mark Volz
Subject: Re: [mapserver-users] MapCache - received wms request with no service 
param

the url needs to have:

SERVICE=WMS

in it somewhere. Is ArcMap leaving it out?

Sometimes I have seen problems with case sensitivity (and I think uppercase is 
safer in this situation)
On Fri, Oct 12, 2012 at 1:05 PM, Mark Volz 
markv...@co.lyon.mn.usmailto:markv...@co.lyon.mn.us wrote:
Hello,

I noticed that ArcMap could not load my layer that is in a WMS Mapcache.   When 
I copied the URL request from ArcMap to a browser I received an error received 
wms request with no service param.  So I must have something misconfigured.  
Any thoughts?

Thank You

Mark Volz
GIS Specialist

___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto: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] WFS fails if table name includes a dot character

2012-10-10 Thread Rahkonen Jukka
Puneet Kishor wrote:

 On Oct 9, 2012, at 7:51 AM, Rahkonen Jukka jukka.rahko...@mmmtike.fi wrote:

 Hi,

 It may be an odd idea to use dots in table/feature type names, but because I 
 made such a test and faced a problem so I report it here.
 Source table is in PostGIS and its name is dot.test.  WFS 
 DescribeFeatureType leads to following error

 [Tue Oct  9 10:56:02 2012].214191 msPostGISLayerGetItems(): Query error. 
 Error
 (ERROR:  schema dot does not exist
 LINE 1: select * from dot.test where false limit 0
  ^
 ) executing SQL: select * from dot.test where false limit 0
 [Tue Oct  9 10:57:12 2012].923891 msPostGISLayerGetItems(): Query error. 
 Error
 (ERROR:  schema dot does not exist
 LINE 1: select * from dot.test where false limit 0
  ^
 ) executing SQL: select * from dot.test where false limit 0


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


 If using non-standard characters, double quote the entity name. So, try
 SELECT * FROM dot.test WHERE ...
 To be completely unambiguous, prefix the schema name. So, if the table is in 
 schema foo, try
 SELECT * FROM foo.dot.test WHERE ...

Hi,

SQL is not written by me but generated by Mapserver.  Originally I had in the 
dot.test mapfile 

 DATA the_geom from dot.test using unique gid using srid=3067

Changing that to
 DATA the_geom from dot.test' using unique gid using srid=3067
 gives an error
 loadLayer(): Unknown identifier. Parsing error near (dot.test):(line 10)

Changing that to:
DATA the_geom from 'dot.test' using unique gid using srid=3067 
gives another error
 msPostGISLayerGetItems(): Query error. Error (ERROR:  syntax error at or near 
'dot.test'
Brackets are not accepted either as [dot.test].

So I am not sure how it should be done correctly. Obviously double quotation 
marks should be somehow escaped inside DATA.

I think that in a way it would be exact and correct to make Mapserver to create 
SQL to use always delimited identifiers so that 
DATA the_geom from table 
would yield SQL queries for PostGIS in format 
SELECT the_geom FROM table
but that would have a side effect that table and attribute names inside DATA 
would be case sensitive. But perhaps they already are?

 By the way, isn't the ANSI SQL way for giving schema and table names in 
delimited format like
SELECT * FROM foo.dot.test WHERE ..?

-Jukka Rahkonen-

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


[mapserver-users] WFS fails if table name includes a dot character

2012-10-09 Thread Rahkonen Jukka
Hi,

It may be an odd idea to use dots in table/feature type names, but because I 
made such a test and faced a problem so I report it here.
Source table is in PostGIS and its name is dot.test.  WFS DescribeFeatureType 
leads to following error

[Tue Oct  9 10:56:02 2012].214191 msPostGISLayerGetItems(): Query error. Error
(ERROR:  schema dot does not exist
LINE 1: select * from dot.test where false limit 0
  ^
) executing SQL: select * from dot.test where false limit 0
[Tue Oct  9 10:57:12 2012].923891 msPostGISLayerGetItems(): Query error. Error
(ERROR:  schema dot does not exist
LINE 1: select * from dot.test where false limit 0
  ^
) executing SQL: select * from dot.test where false limit 0


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


[mapserver-users] [TinyOWS] Problem with attribute names with dots

2012-10-08 Thread Rahkonen Jukka
Hi,

I made a test layer with dots in feature type name and in an attribute name. 
The following request leads to an error.

POST http://188.64.1.61/cgi-bin/tinyows HTTP/1.1
Content-Type: text/xml
User-Agent: Jakarta Commons-HttpClient/3.0-beta1
Host: 188.64.1.61
Connection: Keep-Alive
Content-Length: 404

wfs:GetFeature xmlns:ogc=http://www.opengis.net/ogc; 
xmlns:gml=http://www.opengis.net/gml; xmlns:wfs=http://www.opengis.net/wfs; 
service=WFS version=1.0.0 maxFeatures=1000 outputFormat=GML2wfs:Query 
xmlns:tows=http://www.tinyows.org/; 
typeName=tows:dot.testogc:PropertyNametows:nom.dept/ogc:PropertyNameogc:PropertyNametows:the_geom/ogc:PropertyName/wfs:Query/wfs:GetFeature

I am not totally sure but probably this request is valid and it should work.  I 
am using a little bit old TinyOWS version from April 2012 so the problem is 
perhaps solved already.

There is some related discussion on the GDAL-dev list
http://article.gmane.org/gmane.comp.gis.gdal.devel/32744

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


Re: [mapserver-users] text size from field but with an expression

2012-10-07 Thread Rahkonen Jukka
Hi,

This works for sure for me:

DATA select geometry,osm_id,amenity,aeroway, name from osm_polygon where 
amenity is not null or aeroway='apron'

Perhaps you do not need anything else than

DATA select id,the_geom,field1+10 as field1, field2 from mytable

-Jukka Rahkonen-


Andrea Peri wrote:

 Hi,
 unfortunately using the spatialite DB the sintax you suggest is not allowed.

 It allow

 DATA 'mytable'

 but don't allow

  DATA the_geom from (select id,the_geom,field1+10 as field1, field2
from mytable) as foo using unique id using srid=xxx

 I don't know if this miss is a lack of feature or a bug.

Andrea.


2012/10/4 Andrea Peri aperi2...@gmail.commailto:aperi2...@gmail.com
ok, thx.

Infact I'm using spatialite db.
So I hope to have success to support this sintax.

Now I'm try.

Thx.





2012/10/4 thomas bonfort 
thomas.bonf...@gmail.commailto:thomas.bonf...@gmail.com
On Thu, Oct 4, 2012 at 10:04 AM, Andrea Peri 
aperi2...@gmail.commailto:aperi2...@gmail.com wrote:
 Hi,
 I have a label with the size from a field of attributes.
 But I need to change this size adding always a costant factor.

 I need someting like:

 LABEL
   ...
   SIZE expression([field1]+10)
   ANGLE [field2]
 END

 This seem don't allowed.

 Is this right ?
correct. if you are using a db backend, you can let the db do this for you:

DATA the_geom from (select id,the_geom,field1+10 as field1, field2
from mytable) as foo using unique id using srid=xxx


 Thx,

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


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




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




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

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


Re: [mapserver-users] Cairo SVG PDF output

2012-10-03 Thread Rahkonen Jukka
Hi,

It feels like it could be useful to have for example something like 
FORMATOPTION DPI=xxx 
that could be used when defining PDF outputformat
http://www.mapserver.org/mapfile/outputformat.html#outputformat

I am not sure what GDAL configuration option GDAL_PDF_DPI is doing but perhaps 
it is something equivalent.
http://www.gdal.org/frmt_pdf.html

-Jukka Rahkonen-


Christy Nieman wrote:

Hi all,

 I have been looking into something I just noticed when I change the
output of a map draw from png to Cairo svg or pdf.  A 300px by 300px png
image became a 375 px by 375 px svg according to Inkscape.  I realized
this is because the size of the svg was specified in points and Inkscape
was assuming a dpi of 90 instead of 72.  I tried changing the RESOLUTION
parameter in my mapfile to 90, but (and I already knew this) changing
the RESOLUTION value only affects the sizes of features in the map, not
the output map size.

 I edited the svg xml for the size to be in px instead of pt, which
seemed to make the svg draw the same size as the png in Chrome and
Firefox.  Is there a way to have the units for cairo output images set
to be pixels instead of points?  Am I wrong in thinking there is a
problem with the way it works now?

 Thanks,
Christy
___
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] Map file keyword dictionary

2012-10-03 Thread Rahkonen Jukka
Hi,

Perhaps this XML mapfile schema is up-to-date
http://trac.osgeo.org/mapserver/attachment/ticket/2872/mapfile-schema-0.0.6.xsd

-Jukka Rahkonen-

Mike Saunt wrote:

 Hi All

 Can anyone point me to a list of ALL keywords used within a mapfile?  Looking 
 at using this within a Rich Text Editor to color and identify.


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


Re: [mapserver-users] MapServer and shapefile

2012-10-02 Thread Rahkonen Jukka
Hi,

Because you talk about base layer I think that you are perhaps going to show 
your map in OpenLayers. If that is the case then the answer is yes and this 
OpenLayers example shows how it can be done.
http://dev.openlayers.org/releases/OpenLayers-2.12/examples/wms-untiled.html
On the Mapserver side you must configure a WMS layer that is using shapefile as 
input data.
http://www.mapserver.org/ogc/wms_server.html


-Jukka Rahkonen-

Fabio Brolese wrote:

 Hello everybody,
 after a long search on Google I'm here to ask you if it's possible to use a 
 shapefile as base layer.
 Everything I found was on exporting to shapefile or drawing objects from 
 shapefile but nothing saying that I can use it as base layer.

Can anyone help me?

TIA

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


Re: [mapserver-users] MapServer and shapefile

2012-10-02 Thread Rahkonen Jukka
Hi,

Mapserver is not a TMS server and you must either start using 
OpenLayers.Layer.WMS or install some tile cache acting as TMS server in between 
your Mapserver and OpenLayers. Tilecache, Mapcache, Mapproxy, Geowebcache and 
for sure some others will all work sooner or later once you have solved the 
installation and configuration puzzle.

-Jukka Rahkonen-


Brolese wrote:

 Yes, sorry, I was talking about OpenLayers.
 I understood and is like I did with all the layers I set pointing on PostGIS. 
 I have also a base layer set as OpenLayers.Layer.TMS that load image tiles 
 to show the city map. What we want to do is to change the base layer to read 
 the city map from shapfile instead of reading image tiles.

 Do you know if there is a way to do what we want or do I have to reconsider 
 my structure and consider and use it as OpenLayers.Layer.WMS?

Fabio



Da: Rahkonen Jukka jukka.rahko...@mmmtike.fi
A: mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.org
Inviato: Martedì 2 Ottobre 2012 9:05
Oggetto: Re: [mapserver-users] MapServer and shapefile

Hi,

Because you talk about base layer I think that you are perhaps going to show 
your map in OpenLayers. If that is the case then the answer is yes and this 
OpenLayers example shows how it can be done.
http://dev.openlayers.org/releases/OpenLayers-2.12/examples/wms-untiled.html
On the Mapserver side you must configure a WMS layer that is using shapefile as 
input data.
http://www.mapserver.org/ogc/wms_server.html


-Jukka Rahkonen-

Fabio Brolese wrote:

 Hello everybody,
 after a long search on Google I'm here to ask you if it's possible to use a 
 shapefile as base layer.
 Everything I found was on exporting to shapefile or drawing objects from 
 shapefile but nothing saying that I can use it as base layer.

Can anyone help me?

TIA

Fabio
___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto: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] [gdal-dev] Gdaltindex with -t_srs and Mapserver

2012-09-27 Thread Rahkonen Jukka
Hi,

This is an intentional cross-posting and the main message is to support 
implementing RFC 37
http://mapserver.org/development/rfc/ms-rfc-37.html
and enlarge it to support mixed-projection raster tileindex layers, if possible.

-Jukka Rahkonen-

Vastaanottaja: 'gdal-...@lists.osgeo.org'
Aihe: Re: [gdal-dev] Gdaltindex with -t_srs and Mapserver

Hi,

I did not meant to underestimate this little but extremely useful improvement. 
However, you made me hungry: if you can see so simply the image footprints, why 
not also the images?  I am already publishing in our WMS also the tileindex  
shapefiles so people can see the image boundaries and make GetFeatureInfo 
queries from the image metadata that we have added to the shapefile as a few 
extra fields. In order to make it works we have reprojected images from their 
original projection zones into one common zone.  Now I wonder if it could be 
possible to make Mapserver to support tileindex layers containing source images 
with mixed projections. As a non-programmer I have a strong belief that if I 
can say what I want, someone can program it.

I believe that Mapserver already gets the correct image list from the 
mixed-projection shapefile.   I guess also that Mapserver does not read image 
metadata from the geotiff image files for getting the projection but it relies 
on the LAYER level PROJECTION setting. In my simple test case with two images, 
one in EPSG:2393 and another in EPSG:2392 this means that Mapserver thinks that 
images are 1000 kilometers apart and sharing the EPSG:2393 system that I used 
in the PROJECTION block.

Perhaps there could be an optional setting for LAYER level PROJECTION, both for 
individual images and tileindex layers, something like 
init:internal_metadata.  It would mean that Mapserver would do first a query 
in a same manner than gdalinfo and ogrinfo for reading the native projection of 
the dataset.

Ok, once written this long I started to think about using PROJECTION AUTO and 
then I found this three-year-old RFC 
http://mapserver.org/development/rfc/ms-rfc-37.html

+1 for implementing it.

By the way, woudn't it be nice if desktop GIS like QGIS would show you also 
your Landsat archive images and not only the footprints in some pretty 
automatic way, let's say, after ticking a check box and setting the maximum 
scale denominator value?

-Jukka Rahkonen-



 

 -Alkuperäinen viesti-
 Lähettäjä: Etienne Tourigny [mailto:etourigny@gmail.com]
 Lähetetty: 27. syyskuuta 2012 15:27
 Vastaanottaja: Rahkonen Jukka
 Kopio: gdal-...@lists.osgeo.org
 Aihe: Re: [gdal-dev] Gdaltindex with -t_srs and Mapserver
 
 Jukka,
 
 nice that you noticed this new feature I added - was about to 
 advertise it here!
 
 The goal of adding this feature was not to make it available in 
 mapserver, but for using in desktop applications as a reference for 
 multiple files with different projections (e.g. landsat archives).
 
 cheers
 Etienne
 
 On Thu, Sep 27, 2012 at 6:07 AM, Jukka Rahkonen 
 jukka.rahko...@mmmtike.fi wrote:
  Hi,
 
  I had a try with gdaltindex and the new -t_srs option that is 
  discussed in http://trac.osgeo.org/gdal/ticket/4773. It seems to be 
  as Even was thinking in the very beginning and Mapserver does not 
  work with tileindex which is containing reprojected bounding boxes. 
  Images with BBOX in the native projection are shown but not the 
  others. This line
 appears into Mapserver log:
  msDrawRasterLayerGDAL(): Error in overlap calculation.
 
  It might indeed be good to emit a warning about Mapserver 
  incompability. It would be very nice if Mapserver supports this kind 
  of
 tileindeces.
 
  -Jukka Rahkonen-
 
  ___
  gdal-dev mailing list
  gdal-...@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/gdal-dev
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] GetFeatureInfo text/plain example in the WMS server document

2012-09-24 Thread Rahkonen Jukka
Hi,

I believe that the text/plain GetFeatureInfo example is supposed to return the 
same information as text/html and gml examples. However, it does not return the 
city name and popolation

Document page http://mapserver.org/ogc/wms_server.html

text/plain
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-11.332970,24.121208,47.584718,57.965035SRS=EPSG:4326WIDTH=1001HEIGHT=575LAYERS=citiesSTYLES=FORMAT=image/pngTRANSPARENT=trueQUERY_LAYERS=citiesINFO_FORMAT=text/plainX=229Y=280
text/html
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoBBOX=-11.332970,24.121208,47.584718,57.965035SRS=EPSG:4326WIDTH=1001HEIGHT=575LAYERS=citiesSTYLES=FORMAT=image/pngTRANSPARENT=trueQUERY_LAYERS=citiesINFO_FORMAT=text/htmlX=229Y=280

I can see that I am selecting the fields for text/plain in my old mapfiles with 
layer metadata wms_include_items. However, the current WMS server document 
does not list that metadata entry at all. Is it not supported any more?

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


Re: [mapserver-users] some questions regarding getFeatureInfo, SLD, PostGIS

2012-09-21 Thread Rahkonen Jukka
Hi,

So you have tried to define variables %SEX% and %BOD_ID%, used them inside your 
DATA and then fired  WMS GetMaps by adding SEX=your_valueBOD_ID=your_id? Does 
in not work or why it is not powerful enough?

-Jukka Rahkonen-


Julien Cigar wrote:

 Hello,
 
 I'm using Mapserver 6.0.1 with the following PostGIS layer:
 http://pastie.org/private/84042k84vmljbontls5xvq
 
 The user has the possibility to select quite a lot of filters, which implies 
 that
 the SQL query should, in theory ,be generated dynamically.
 As this is not possible with Mapserver (run-time substitution with HTTP
 parameters and VALIDATION ... END isn't powerful enough is my case), I'm
 dynamically generating an SLD
 (http://pastie.org/private/p66ml3uvqwcnphuuvera) to filter items and it
 works very well.
 
 Some questions:
 
 - Why does Mapserver doesn't have a very lightweight template language (or
 something similar) to dynamically build a string following given parameters? 
 It
 could be really useful to avoid unnecessary JOIN, etc.
 For example something like:
 http://pastie.org/private/bojm3pi1dwrv18m2tvq (this is just an example, but
 the idea is there)
 
 - I noticed in the PostgreSQL logs that sometimes Mapserver adds an
 additional condition to the WHERE clause when SLD is used. For example with
 the following ogc:Filter in my SLD:
 #
 ogc:Filter
 ogc:PropertyIsEqualTo
 ogc:PropertyNamebasis_of_record_id/ogc:PropertyName
 ogc:Literal1/ogc:Literal
 /ogc:PropertyIsEqualTo
 /ogc:Filter
 #
 
 Mapserver adds an additional and (( (basis_of_record_id= 1) )):
 
 (...) AS q where geom  GeomFromText('POLYGON((-3.6860351557368
 -9.81732918571448,-3.6860351557368 9.81732918571447,47.6860351496117
 9.81732918571447,47.6860351496117 -9.81732918571448,-3.6860351557368
 -9.81732918571448))',4326) and (( (basis_of_record_id= 1) ))
 
 which is not bad as less rows have to be post-processed by the SLD engine.
 
 However, as soon as I add an additional ogc:or (or ogc:and) as:
 #
 ogc:or
 ogc:PropertyIsEqualTo
 ogc:PropertyNamebasis_of_record_id/ogc:PropertyName
 ogc:Literal1/ogc:Literal
 /ogc:PropertyIsEqualTo
 ogc:PropertyIsEqualTo
 ogc:PropertyNamebasis_of_record_id/ogc:PropertyName
 ogc:Literal2/ogc:Literal
 /ogc:PropertyIsEqualTo
 /ogc:or
 #
 
 Mapserver doesn't add this additional AND/OR clause (and ((
 (basis_of_record_id= 1) OR (basis_of_record_id = 2) )) in this case).. Why
 ?
 
 - Is it normal that my SLD is totally ignored when I'm using
 REQUEST=GetFeatureInfo? Is the SLD only processed with
 REQUEST=GetMap?
 If this is the case, what's the typical alternative way of doing it?
 Should I go through WFS .. ?
 
 In advance, thank you for your answers :) Julien
 
 --
 No trees were killed in the creation of this message.
 However, many electrons were terribly inconvenienced.

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


Re: [mapserver-users] some questions regarding getFeatureInfo, SLD, PostGIS

2012-09-21 Thread Rahkonen Jukka
And perhaps, if you would like to do something very tricky, you could create a 
function or stored procedure into your database and call that from DATA with 
the dynamic variables? The compute_style thing in this thread suggests that it 
might work 
http://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg08537.html

-Jukka Rahkonen- 

Smith, Michael wrote:
 
 At the SQL level, you can do some fancy work with CASE and setting some
 default values
 
 The CASE function allows you to set all kind of logical comparisons. You can 
 do
 conditional joins that way, setting the join condition to a non matching value
 when you don't want the join, etc. SQL is more powerful than any template
 language.
 
 Mike
 
 
 
 On 9/21/12 7:07 AM, Julien Cigar jci...@ulb.ac.be wrote:
 
 On 09/21/2012 12:50, Rahkonen Jukka wrote:
  Hi,
 
 Hello,
 
  So you have tried to define variables %SEX% and %BOD_ID%, used them
 inside your DATA and then fired  WMS GetMaps by
 addingSEX=your_valueBOD_ID=your_id? Does in not work or why it is
 not powerful enough?
 
 It is not powerful enough because it doesn't allow you to make simple
 logical tests (if defined/equals/...), the run-time substitution is a
 simple replace %FOO% by the value of FOO= from the query string.
 
 It doesn't allow you to do something like: if FOO is defined or equal
 to xxx, then add JOIN foo f ON f.id = bar.foo_id, select additional
 columns, and add a WHERE foo.id = ... at a certain place in the DATA
 string.
 
 I guess mapscript should be used in this case, but it would be really
 interesting to have this simple template language (or another solution)
 without having to involve mapscript.
 
 Julien
 
  -Jukka Rahkonen-
 
 
  Julien Cigar wrote:
 
  Hello,
 
  I'm using Mapserver 6.0.1 with the following PostGIS layer:
  http://pastie.org/private/84042k84vmljbontls5xvq
 
  The user has the possibility to select quite a lot of filters, which
 implies that  the SQL query should, in theory ,be generated
 dynamically.
  As this is not possible with Mapserver (run-time substitution with
 HTTP  parameters and VALIDATION ... END isn't powerful enough is my
 case), I'm  dynamically generating an SLD
  (http://pastie.org/private/p66ml3uvqwcnphuuvera) to filter items and
 it  works very well.
 
  Some questions:
 
  - Why does Mapserver doesn't have a very lightweight template
 language (or  something similar) to dynamically build a string
 following given parameters? It  could be really useful to avoid
 unnecessary JOIN, etc.
  For example something like:
  http://pastie.org/private/bojm3pi1dwrv18m2tvq (this is just an
 example, but  the idea is there)
 
  - I noticed in the PostgreSQL logs that sometimes Mapserver adds an
 additional condition to the WHERE clause when SLD is used. For
 example with  the followingogc:Filter  in my SLD:
  #
  ogc:Filter
  ogc:PropertyIsEqualTo
  ogc:PropertyNamebasis_of_record_id/ogc:PropertyName
  ogc:Literal1/ogc:Literal
  /ogc:PropertyIsEqualTo
  /ogc:Filter
  #
 
  Mapserver adds an additional and (( (basis_of_record_id= 1) )):
 
  (...) AS q where geom  GeomFromText('POLYGON((-3.6860351557368
  -9.81732918571448,-3.6860351557368
 9.81732918571447,47.6860351496117
  9.81732918571447,47.6860351496117 -9.81732918571448,-
 3.6860351557368
  -9.81732918571448))',4326) and (( (basis_of_record_id= 1) ))
 
  which is not bad as less rows have to be post-processed by the SLD
 engine.
 
  However, as soon as I add an additionalogc:or  (orogc:and) as:
  #
  ogc:or
  ogc:PropertyIsEqualTo
  ogc:PropertyNamebasis_of_record_id/ogc:PropertyName
  ogc:Literal1/ogc:Literal
  /ogc:PropertyIsEqualTo
  ogc:PropertyIsEqualTo
  ogc:PropertyNamebasis_of_record_id/ogc:PropertyName
  ogc:Literal2/ogc:Literal
  /ogc:PropertyIsEqualTo
  /ogc:or
  #
 
  Mapserver doesn't add this additional AND/OR clause (and ((
 (basis_of_record_id= 1) OR (basis_of_record_id = 2) )) in this
 case).. Why  ?
 
  - Is it normal that my SLD is totally ignored when I'm using
  REQUEST=GetFeatureInfo? Is the SLD only processed with
  REQUEST=GetMap?
  If this is the case, what's the typical alternative way of doing it?
  Should I go through WFS .. ?
 
  In advance, thank you for your answers :) Julien
 
  --
  No trees were killed in the creation of this message.
  However, many electrons were terribly inconvenienced.
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 --
 No trees were killed in the creation of this message.
 However, many electrons were terribly inconvenienced.
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] [WFS-client] geometry name

2012-09-20 Thread Rahkonen Jukka
Hi,

That's very limiting. I think that none of the more than 80 feature types on my 
server is using name Geometry.  suggest you to file a ticket about making 
this configurable.

-Jukka Rahkonen-

Yves Jacolin wrote:

Hello,

Ok I find the answer: Geometry column name is hardcoded in 
https://github.com/mapserver/mapserver/blob/master/mapwfslayer.c#L242

Y.
2012/9/19 Yves Jacolin 
yves.jaco...@camptocamp.commailto:yves.jaco...@camptocamp.com
Hello,

There is not possiblity? Documentation tell nothing about the possibility to 
tell to MapServer the geometry column name to the WFS service used for my layer 
and I can't change the geometry name server side.

Nobody already fall in this issue?

Thanks,

Y.

2012/9/19 Yves Jacolin 
yves.jaco...@camptocamp.commailto:yves.jaco...@camptocamp.com
Hello,

Does it possible to tell MapServer the geometry name to use for a layer in the 
case of WFS CONNECTIONTYPE?

By default, Mapserver use Geometry, for example:

ogc:BBOX
  ogc:PropertyNameGeometry/ogc:PropertyName
  gml:Boxgml:coordinates2.022184,48.116468
3.923033,49.118807/gml:coordinates/gml:Box
/ogc:BBOX

Thanks,

Y.
--
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel (France) : +33 4 79 26 57 98tel:%2B33%204%2079%2026%2057%2098
Mob. : +33 6 18 75 42 21tel:%2B33%206%2018%2075%2042%2021
Fax : 04 79 70 15 81
Mail : yves.jaco...@camptocamp.commailto:yves.jaco...@camptocamp.com
http://www.camptocamp.com



--

Responsable Formation et Support

Camptocamp France SAS

Savoie Technolac, BP 352

73377 Le Bourget du Lac, Cedex

Tel (France) : +33 4 79 26 57 98tel:%2B33%204%2079%2026%2057%2098

Mob. : +33 6 18 75 42 21tel:%2B33%206%2018%2075%2042%2021

Fax : 04 79 70 15 81

Mail : yves.jaco...@camptocamp.commailto:yves.jaco...@camptocamp.com

http://www.camptocamp.com




--

Responsable Formation et Support

Camptocamp France SAS

Savoie Technolac, BP 352

73377 Le Bourget du Lac, Cedex

Tel (France) : +33 4 79 26 57 98

Mob. : +33 6 18 75 42 21

Fax : 04 79 70 15 81

Mail : yves.jaco...@camptocamp.commailto:yves.jaco...@camptocamp.com

http://www.camptocamp.com

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


Re: [mapserver-users] [TinyOWS] Broken config using a MAPFILE?

2012-09-19 Thread Rahkonen Jukka
Hi,

At least you will have some troubles with your extents which do not match with 
your output projection
EXTENT -180 -90 180 90
UNITS DD
This may or may not be the reason for the failure but correct it anyway to use 
meters and the extents of your data.
I can also see that your Box is not a box but it is a line because the easting 
coordinates are the same
417651.92249206,6609322.2049643
417651.92249206,685.9596091

-Jukka Rahkonen-

Richard Turner wrote:

Hi folks,

I hope one of you can help me. A few months ago I was working on a project 
using tinyows to display UK postcode areas on an OpenLayers map. That was 
working fine, but it was a prototype and hasn't been touched for quite a while.

I've since set-up a new server and installed the trunk version of tinyows on it 
and found that instead of working fine tinyows returns the following error:

?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='FILTER'
  ows:ExceptionTextFilter parameter doesn't validate WFS 
Schema/ows:ExceptionText
/ows:Exception
/ows:ExceptionReport

The request being sent by OpenLayers is this:
wfs:GetFeature 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.xsdhttp://www.opengis.net/wfs%20http:/schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;wfs:Query 
typeName=feature:areas xmlns:feature=http://gis.mediatel.co.uk;ogc:Filter 
xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyNamewkb_geometry/ogc:PropertyNamegml:Box
 xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:3857gml:coordinates 
decimal=. cs=, ts= -417651.92249206,6609322.2049643 
417651.92249206,685.9596091/gml:coordinates/gml:Box/ogc:BBOX/ogc:Filter/wfs:Query/wfs:GetFeature

I'm using a MAPFILE to configure tinyows because I was originally using 
mapserver instead (but I envisage the need for writing to the DB as well as 
reading). The mapfile is this:

MAP
NAME postcodes
STATUS ON
EXTENT -180 -90 180 90
UNITS DD

WEB
METADATA
tinyows_schema_dir /usr/local/share/tinyows/schema/
tinyows_onlineresource richardt.gis.mediatel.co.uk/wfs
wfs_title Postcode Data
wfs_enable_request *
wfs_namespace_uri http://gis.mediatel.co.uk;
wfs_namespace_prefix mtl
END
END

PROJECTION
init=epsg:3857
END

LAYER
NAME areas
METADATA
wfs_name areas
wfs_title Postcode Areas
gml_featureid ogc_fid
gml_include_items all
wfs_enable_request *
tinyows_table postcode_area_boundaries
tinyows_retrievable 1
tinyows_writable 1
wfs_srs EPSG:3857
END
TYPE POLYGON
STATUS DEFAULT
CONNECTIONTYPE postgis
CONNECTION host=localhost dbname=osm user=osm password=osm
DATA wkb_geometry FROM postcode_area_boundaries
DUMP TRUE
END

LAYER
NAME sectors
METADATA
wfs_name sectors
wfs_title Postcode Sectors
gml_featureid ogc_fid
gml_include_items all
wfs_enable_request *
tinyows_table postcode_sector_boundaries
tinyows_retrievable 1
tinyows_writable 1
wfs_srs EPSG:3857
END
TYPE POLYGON
STATUS DEFAULT
CONNECTIONTYPE postgis
CONNECTION host=localhost dbname=osm user=osm password=osm
DATA wkb_geometry FROM postcode_sector_boundaries
DUMP TRUE
END
END

Can anyone point me in the right direction here please?

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


Re: [mapserver-users] [TinyOWS] Broken config using a MAPFILE?

2012-09-19 Thread Rahkonen Jukka
Hi,

I wonder why OpenLayers is sending request for wfs:Query 
typeName=feature:areas while I suppose that the typeName is actually 
mtl:areas.  However, it looks like TinyOWS does not care about featuretype 
namespace at all.   This request works as it should
http://188.64.1.61/cgi-bin/tinyows?service=WFSversion=1.1.0request=GetFeaturetypeName=lv:mml_paikannimet20maxFeatures=20

However, query finds also a non-existing featuretype foo:mml_paikannimet20
http://188.64.1.61/cgi-bin/tinyows?service=WFSversion=1.1.0request=GetFeaturetypeName=foo:mml_paikannimet20maxFeatures=20

Somehow I feel this is a bug.

-Jukka Rahkonen-


Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Richard Turner
Lähetetty: 19. syyskuuta 2012 10:43
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] [TinyOWS] Broken config using a MAPFILE?

Hi folks,

I hope one of you can help me. A few months ago I was working on a project 
using tinyows to display UK postcode areas on an OpenLayers map. That was 
working fine, but it was a prototype and hasn't been touched for quite a while.

I've since set-up a new server and installed the trunk version of tinyows on it 
and found that instead of working fine tinyows returns the following error:

?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='FILTER'
  ows:ExceptionTextFilter parameter doesn't validate WFS 
Schema/ows:ExceptionText
/ows:Exception
/ows:ExceptionReport

The request being sent by OpenLayers is this:
wfs:GetFeature 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.xsdhttp://www.opengis.net/wfs%20http:/schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;wfs:Query 
typeName=feature:areas xmlns:feature=http://gis.mediatel.co.uk;ogc:Filter 
xmlns:ogc=http://www.opengis.net/ogc;ogc:BBOXogc:PropertyNamewkb_geometry/ogc:PropertyNamegml:Box
 xmlns:gml=http://www.opengis.net/gml; srsName=EPSG:3857gml:coordinates 
decimal=. cs=, ts= -417651.92249206,6609322.2049643 
417651.92249206,685.9596091/gml:coordinates/gml:Box/ogc:BBOX/ogc:Filter/wfs:Query/wfs:GetFeature

I'm using a MAPFILE to configure tinyows because I was originally using 
mapserver instead (but I envisage the need for writing to the DB as well as 
reading). The mapfile is this:

MAP
NAME postcodes
STATUS ON
EXTENT -180 -90 180 90
UNITS DD

WEB
METADATA
tinyows_schema_dir /usr/local/share/tinyows/schema/
tinyows_onlineresource richardt.gis.mediatel.co.uk/wfs
wfs_title Postcode Data
wfs_enable_request *
wfs_namespace_uri http://gis.mediatel.co.uk;
wfs_namespace_prefix mtl
END
END

PROJECTION
init=epsg:3857
END

LAYER
NAME areas
METADATA
wfs_name areas
wfs_title Postcode Areas
gml_featureid ogc_fid
gml_include_items all
wfs_enable_request *
tinyows_table postcode_area_boundaries
tinyows_retrievable 1
tinyows_writable 1
wfs_srs EPSG:3857
END
TYPE POLYGON
STATUS DEFAULT
CONNECTIONTYPE postgis
CONNECTION host=localhost dbname=osm user=osm password=osm
DATA wkb_geometry FROM postcode_area_boundaries
DUMP TRUE
END

LAYER
NAME sectors
METADATA
wfs_name sectors
wfs_title Postcode Sectors
gml_featureid ogc_fid
gml_include_items all
wfs_enable_request *
tinyows_table postcode_sector_boundaries
tinyows_retrievable 1
tinyows_writable 1
wfs_srs EPSG:3857
END
TYPE POLYGON
STATUS DEFAULT
CONNECTIONTYPE postgis
CONNECTION host=localhost dbname=osm user=osm password=osm
DATA wkb_geometry FROM postcode_sector_boundaries
DUMP TRUE
END
END

Can anyone point me in the right direction here please?

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


Re: [mapserver-users] [TinyOWS] Broken config using a MAPFILE?

2012-09-19 Thread Rahkonen Jukka
Olivier Courtin wrote:

 On Wed, Sep 19, 2012 at 4:47 PM, Rahkonen Jukka 
 jukka.rahko...@mmmtike.fimailto:jukka.rahko...@mmmtike.fi wrote:

 Hi Jukka

I wonder why OpenLayers is sending request for wfs:Query 
typeName=feature:areas while I suppose that the typeName is actually 
mtl:areas.

 Dunno either, but request is valid as they define namespace:
 xmlns:feature=http://gis.mediatel.co.ukhttp://gis.mediatel.co.uk/ in the 
 Query.

Ok, I should have noticed that.

However, it looks like TinyOWS does not care about featuretype namespace at all.

 Well TinyOWS care about namespace with POST request

This request works as it should
http://188.64.1.61/cgi-bin/tinyows?service=WFSversion=1.1.0request=GetFeaturetypeName=lv:mml_paikannimet20maxFeatures=20

However, query finds also a non-existing featuretype foo:mml_paikannimet20
http://188.64.1.61/cgi-bin/tinyows?service=WFSversion=1.1.0request=GetFeaturetypeName=foo:mml_paikannimet20maxFeatures=20


 But as you could seen, a bit less with GET request !

Somehow I feel this is a bug.

 Could worth to open a ticket, to be more strict on GET Namespace.
But how strict it should be? Should we learn users to include the correct 
namespace always in the typeName? It is correct but most users do not care 
about namespaces and they could feel that frustrating. And I suppose that the 
colon character needs to be escaped at least inside filters for making the GET 
requests to work and that makes things more complicated. However, it is 
possible that the same TinyOWS service has both foo:parcels and bar:parcels.

 But i don't think this behaviour is related to Richard issue.
Me neither.

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


Re: [mapserver-users] Fw: mapserver binary for CentOS?

2012-09-06 Thread Rahkonen Jukka
The easy way to install Mapserver on Windows is not the IISy way :)
Use MS4W with included Apache instead http://maptools.org/ms4w/index.phtml

-Jukka Rahkonen-



Saka Royban wrote:

So, if i want not install anything on the server, i have to switch to a windows 
sever, i.e. IIS.
In IIS, i think there is a need to just copy mapserv.exe and some dlls. Am i 
right?


From: Jeff Lake ad...@michiganwxsystem.commailto:ad...@michiganwxsystem.com
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Sent: Wednesday, September 5, 2012 11:01 PM
Subject: Re: [mapserver-users] Fw: mapserver binary for CentOS?


On CentOS there is no dll's those are windows only,
I'm not sure, just extracting the mapserv from the RPM is going to work??
you need everything else (gdal, geos, etc)
without root or sh access, I don't see how you can run or install mapserv

-Jeff Lake

MichiganWxSystem.com

AllisonHouse.com

TheWeatherCenter.net

GRLevelXStuff.com
On 9/5/2012 14:24, Saka Royban wrote:
Thanks a world for your helpful answer
I wasn't aware that rpm could be extracted.
Anyhow, in the link provided, i.e. 
http://elgis.argeo.org/repos/6/elgis-release-6-6_0.noarch.rpm, i can get a 11 
kb file when i download above-mentioned link. It seems there is no mapsrev file 
in it.
Could you guide me where can i find the whole package?
Also, just mapserv is sufficient to run a simple web mapping application? no 
other dll?

Thanks in advance


From: Peter Hopfgartner 
peter.hopfgart...@r3-gis.commailto:peter.hopfgart...@r3-gis.com
To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Sent: Wednesday, September 5, 2012 6:05 PM
Subject: Re: [mapserver-users] Fw: mapserver binary for CentOS?

Extracting the executable file mapserv from one of the above mentioned rpms 
and placing it in cgi-bin should give you a working MapServer CGI installation.

Peter

On 09/04/2012 04:20 PM, Saka Royban wrote:

- Forwarded Message -
From: Saka Royban sakaroy...@yahoo.commailto:sakaroy...@yahoo.com
To: Prabu Raja prab.r...@gmail.commailto:prab.r...@gmail.com
Sent: Tuesday, September 4, 2012 6:49 PM
Subject: Re: [mapserver-users] mapserver binary for CentOS?

Thanks for your help
I contacted host admin and he told me they don't allow ssh access because their 
host is of shared (!) one. I was thinking maybe there is a way to just copy the 
files into cgi-bin folder, as it is for mapserv.exe and its dependencies (dlls) 
in MS4W package.
However, it seems if i want to use MapServer in CGI mode i have to use a 
Windows server. Otherwise, i must switch to MapScript which is not recommended 
for all applications.
If there is a way to use CGI Mapserver in this case, please inform me.

Regards


From: Prabu Raja prab.r...@gmail.commailto:prab.r...@gmail.com
To: Peter Hopfgartner 
peter.hopfgart...@r3-gis.commailto:peter.hopfgart...@r3-gis.com
Cc: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Sent: Tuesday, September 4, 2012 12:12 PM
Subject: Re: [mapserver-users] mapserver binary for CentOS?

Find below the steps, which I followed to install mapserver on CentOS 6 64 bit

sudo rpm -Uvh http://elgis.argeo.org/repos/6/elgis-release-6-6_0.noarch.rpm

yum install mapserver

sudo rpm -Uvh 
http://dl.fedoraproject.org/pub/epel/6/x86_64/cfitsio-3.240-3.el6.x86_64.rpm

sudo rpm -Uvh 
http://dl.fedoraproject.org/pub/epel/6/x86_64/fribidi-0.19.2-2.el6.x86_64.rpm

sudo rpm -Uvh 
http://dl.fedoraproject.org/pub/epel/6/x86_64/libdap-3.11.0-1.el6.x86_64.rpm

sudo rpm -Uvh 
http://dl.fedoraproject.org/pub/epel/6/x86_64/fcgi-2.4.0-10.el6.x86_64.rpm

sudo rpm -Uvh 
http://dl.fedoraproject.org/pub/epel/6/x86_64/librx-1.5-14.el6.x86_64.rpm

sudo rpm -Uvh 
http://dl.fedoraproject.org/pub/epel/6/x86_64/libspatialite-2.4.0-0.6.RC4.el6.x86_64.rpm

sudo rpm -Uvh 
http://mirror.centos.org/centos/6/os/x86_64/Packages/libgfortran-4.4.6-4.el6.x86_64.rpm

sudo rpm -Uvh 
http://dl.fedoraproject.org/pub/epel/6/x86_64/hdf5-1.8.5.patch1-7.el6.x86_64.rpm

sudo rpm -Uvh 
http://dl.fedoraproject.org/pub/epel/6/x86_64/netcdf-4.1.1-3.el6.2.x86_64.rpm

sudo rpm -Uvh 
http://mirror.centos.org/centos/6/os/x86_64/Packages/expat-2.0.1-11.el6_2.x86_64.rpm

sudo rpm -Uvh 
http://dl.fedoraproject.org/pub/epel/6/x86_64/ogdi-3.2.0-0.14.beta2.el6.x86_64.rpm

yum install mapserver

cp /usr/libexec/mapserv /var/www/cgi-bin/
On Tue, Sep 4, 2012 at 12:47 PM, Peter Hopfgartner 
peter.hopfgart...@r3-gis.commailto:peter.hopfgart...@r3-gis.com wrote:
On 09/04/2012 08:33 AM, Saka Royban wrote:
Hi guys
I'm a newbie to mapserver and i've been using MS4W for a while. Now, i'm gonna 
use MapServer CGI in my website. So, I asked my host admin of the version of 
Linux and he replied me that CentOS is running on the server.
Searching internet, unfortunately, i didn't find mapserver binary for CentOS. I 
just found some instructions for building mapserver in Linux 

Re: [mapserver-users] TinyOWS 0.9 Problem in windows 7

2012-09-06 Thread Rahkonen Jukka
Hi,

Do not use OpenLayers for testing, use something that you can control.  What do 
you get back if you send these basic WFS requests with a browser:

http://127.0.0.1/cgi-bin/tinyows.exe?service=WFSversion=1.0.0request=GetCapabilities
http://127.0.0.1/cgi-bin/tinyows.exe?service=WFSversion=1.0.0request= 
DescribeFeatureTypeTypename=tows:wfst_test
http://127.0.0.1/cgi-bin/tinyows.exe?service=WFSversion=1.0.0request= 
GetFeatureTypename=tows:wfst_testmaxFeatures=2

-Jukka Rahkonen-

Budi Hermansyah wrote:

Hi Guys,

I try to use tinyOWS. when Openlayers called the service the result are :

wfs:FeatureCollection xmlns:tows=http://www.tinyows.org; 
xmlns:wfs=http://www.opengis.net/wfs; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:gml=http://www.opengis.net/gml; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:ogc=http://www.opengis.net/ogc; 
xmlns:xlink=http://www.w3.org/1999/xlink; 
xmlns:ows=http://www.opengis.net/ows; 
xsi:schemaLocation=http://www.tinyows.org 
http://127.0.0.1/cgi-bin/tinyows.exe?service=WFSversion=1.0.0request=DescribeFeatureTypeTypename=tows:wfst_test
 http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd 
http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd;
gml:boundedBy
gml:Box srsName=EPSG:-1
gml:coordinates decimal=. cs=, ts= -1.#INF00,-1.#INF00 
1.#INF00,1.#INF00/gml:coordinates
/gml:Box
/gml:boundedBy
/wfs:FeatureCollection

Can anyone please help me and tell what's going on??

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


Re: [mapserver-users] TinyOWS 0.9 Problem in windows 7

2012-09-06 Thread Rahkonen Jukka
 maxOccurs=1/xs:element name=the_geom 
type=gml:GeometryPropertyType minOccurs=0 
maxOccurs=1//xs:sequence/xs:extension/xs:complexContent/xs:complexType/xs:schema

http://127.0.0.1/cgi-bin/tinyows.exe?service=WFSversion=1.0.0request=GetFeatureTypename=tows:wfst_testmaxFeatures=2

wfs:FeatureCollection xsi:schemaLocation=http://www.tinyows.org 
http://127.0.0.1/cgi-bin/tinyows.exe?service=WFSversion=1.0.0request=DescribeFeatureTypeTypename=tows:wfst_test
   http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd
http://www.opengis.net/gml
http://schemas.opengis.net/gml/2.1.2/feature.xsd;gml:boundedBygml:Box 
srsName=EPSG:-1gml:coordinates decimal=. cs=, ts= 
491007.937500,5458904.50 
491243.00,5459214.00/gml:coordinates/gml:Box/gml:boundedBy/wfs:FeatureCollection
On Thu, Sep 6, 2012 at 1:23 PM, Rahkonen Jukka 
jukka.rahko...@mmmtike.fimailto:jukka.rahko...@mmmtike.fi wrote:
Hi,

Do not use OpenLayers for testing, use something that you can control.  What do 
you get back if you send these basic WFS requests with a browser:

http://127.0.0.1/cgi-bin/tinyows.exe?service=WFSversion=1.0.0request=GetCapabilities
http://127.0.0.1/cgi-bin/tinyows.exe?service=WFSversion=1.0.0request= 
DescribeFeatureTypeTypename=tows:wfst_test
http://127.0.0.1/cgi-bin/tinyows.exe?service=WFSversion=1.0.0request= 
GetFeatureTypename=tows:wfst_testmaxFeatures=2

-Jukka Rahkonen-

Budi Hermansyah wrote:

Hi Guys,

I try to use tinyOWS. when Openlayers called the service the result are :

wfs:FeatureCollection xmlns:tows=http://www.tinyows.org; 
xmlns:wfs=http://www.opengis.net/wfs; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:gml=http://www.opengis.net/gml; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:ogc=http://www.opengis.net/ogc; 
xmlns:xlink=http://www.w3.org/1999/xlink; 
xmlns:ows=http://www.opengis.net/ows; 
xsi:schemaLocation=http://www.tinyows.org 
http://127.0.0.1/cgi-bin/tinyows.exe?service=WFSversion=1.0.0request=DescribeFeatureTypeTypename=tows:wfst_test
 http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd 
http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd;
gml:boundedBy
gml:Box srsName=EPSG:-1
gml:coordinates decimal=. cs=, ts= -1.#INF00,-1.#INF00 
1.#INF00,1.#INF00/gml:coordinates
/gml:Box
/gml:boundedBy
/wfs:FeatureCollection

Can anyone please help me and tell what's going on??

Bests,
BH

___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto: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] TinyOWS 0.9 Problem in windows 7

2012-09-06 Thread Rahkonen Jukka
Hi,

I can see that WFS-T did not work for me in May and I cannot see any more fresh 
TinyOWS versions for Windows since then so I fear it may not work.
http://lists.maptools.org/pipermail/ms4w-users/2012-May/002001.html

Instead of OpenLayers try editing with Quantum GIS first. If edits fail with 
QGis then WFS-T is probably really broken on Windows and all we can do is to go 
on with nagging about the issue.

Which PostGIS version do you have? I made my failing trials with 1.5.

-Jukka Rahkonen-


Budi Hermansyah wrote:

Thank you Rahkonen, It's work. One more question. Do you think will be there is 
another problem using TinyOWS+Mapfile and openlayers for editing ???

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


Re: [mapserver-users] Still impossible to force labels inside their polygons?

2012-09-04 Thread Rahkonen Jukka
Hi,

Thank you for the answer. A little screenshot shows an example with two label 
points  inside one polygon and one polygon without a label point at all. 
Perhaps we could have more accurate polygon label positioning on our wish list.

-Jukka Rahkonen-


Lime, Steve D (DNR) wrote:

 Aihe: RE: [mapserver-users] Still impossible to force labels inside their
 polygons?
 
 Yes, still impossible. POSITION CC + MINFEATURESIZE AUTO will get you
 close. However, MINFEATURESIZE AUTO uses bounding box checks and
 doesn't intersect a feature geometry with its label geometry.
 
 Steve
 
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka
 Sent: Tuesday, September 04, 2012 9:17 AM
 To: 'Mapserver-Users (mapserver-users@lists.osgeo.org)'
 Subject: [mapserver-users] Still impossible to force labels inside their
 polygons?
 
 Hi,
 
 Is the short answer by Stephen Woodbridge No in the tread http://osgeo-
 org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td4549296.html
 still valid?
 
 I have been trying to label a polygon dataset with Mapserver 6.2 beta2 and
 some labels keep on falling outside their polygons.  By the way, the thread
 contains an advice that does not work for me:
  By the way, PROCESSING LABEL_NO_CLIP=ON will fix the label point at
 the polygon center.
 -SteveW 
 
 Is the solution to create a new layer with point-on-surface function and label
 then this point layer?
 
 -Jukka Rahkonen-
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 

attachment: labels_outside_their_polygons.png___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Still impossible to force labels inside their polygons?

2012-09-04 Thread Rahkonen Jukka
Hi,

The polygons in the data are cadastrial parcels and user wants that each parcel 
could be identified right. GetFeatureInfo is not enough because he wants also 
printed maps. Therefore each parcel should have a label that is readable in 
some scale. That is not always easy because the size of parcels varies a lot.

Here is a reference implementation by the National Land Survey of Finland:
http://www.paikkatietoikkuna.fi/web/fi/kartta?zoomLevel=10coord=271051.5_6947937mapLayers=base_35+100+!default!,90+100+,99+100+showMarker=falseforceCache=true

NLS has decided to use vertical labels with variable font size for keeping the 
label text usually inside their polygons. Sometimes there seems to be also 
leader lines. The result is rather readable but I believe that labels have at 
least partly set by hand.  In the NLS service the labels comes from a readily 
rasterised layer and they are shown only on three highest zoom levels.

Here is another place with very long and narrow parcels. The NLS labeling 
system does not suit here very well for web browsing because labels are often 
in a fixed place outside the map window.
http://www.paikkatietoikkuna.fi/web/fi/kartta?zoomLevel=10coord=227539.5_6999494mapLayers=base_35+100+!default!,90+100+,99+100+showMarker=falseforceCache=true


-Jukka- 

Stephen Woodbridge wrote:

 Jukka,

 Based on your sample image you probably want something like ANGLE AUTO
on a polygon to try to compute the longest line that you can insert into
the polygon and then label along that. That would do two things, compute
an ideal label point and whatever angle you need to position the text.

 But no this does not exist in mapserver. There are a bunch of label
enhancement tickets and a lot of work has been done recently in this
area. You could add some of this thread to an appropriate ticket or open
a new one if there isn't already one.

 6.2 also have offset labels with leaders. In this case it creates a
label and draws an arrow to point at the feature. Thomas posted some
examples to the list at some point. See:
http://mapserver.org/development/rfc/ms-rfc-81.html
  and google: mapserver offset labels rfc81

 I do have a ticket open for labeling a polygon along an interior or
exterior edge. The idea being that I want to label country borders. I
want the label to FOLLOW the border, but it needs to be offset either
inside or outside the polygon. If this were implemented then it would
work for your case if you could live with the label inside and along an
edge. But it has not been implemented yet.

-Steve W

On 9/4/2012 11:13 AM, Lime, Steve D (DNR) wrote:
 It's tough to know what I'm looking at from the picture. What does
 the layer definition look like?

 At the moment polygon label point computation tries a couple of
 approaches get a label point inside the polygon: 1) compute a center
 of gravity 2) if that computation doesn't work (e.g. point is too
 close to the edge) then a scanline-based process is used to sample
 possible positions. The mid-point of the longest y sample is used.

 It's always trade-off with speed and the above seems a happy medium.

 Steve

 -Original Message- From:
 mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of
 Rahkonen Jukka Sent: Tuesday, September 04, 2012 9:48 AM To:
 'Mapserver-Users (mapserver-users@lists.osgeo.org)' Subject: Re:
 [mapserver-users] Still impossible to force labels inside their
 polygons?

 Hi,

 Thank you for the answer. A little screenshot shows an example with
 two label points  inside one polygon and one polygon without a label
 point at all. Perhaps we could have more accurate polygon label
 positioning on our wish list.

 -Jukka Rahkonen-


 Lime, Steve D (DNR) wrote:

 Aihe: RE: [mapserver-users] Still impossible to force labels
 inside their polygons?

 Yes, still impossible. POSITION CC + MINFEATURESIZE AUTO will get
 you close. However, MINFEATURESIZE AUTO uses bounding box checks
 and doesn't intersect a feature geometry with its label geometry.

 Steve

 -Original Message- From:
 mapserver-users-boun...@lists.osgeo.org [mailto:mapserver-users-
 boun...@lists.osgeo.org] On Behalf Of Rahkonen Jukka Sent: Tuesday,
 September 04, 2012 9:17 AM To: 'Mapserver-Users
 (mapserver-users@lists.osgeo.org)' Subject: [mapserver-users] Still
 impossible to force labels inside their polygons?

 Hi,

 Is the short answer by Stephen Woodbridge No in the tread
 http://osgeo-
 org.1560.n6.nabble.com/force-labels-to-fit-in-polygons-td4549296.html


still valid?

 I have been trying to label a polygon dataset with Mapserver 6.2
 beta2 and some labels keep on falling outside their polygons.  By
 the way, the thread contains an advice that does not work for me: 
 By the way, PROCESSING LABEL_NO_CLIP=ON will fix the label point
 at the polygon center. -SteveW 

 Is the solution to create a new layer with point-on-surface
 function and label then this point layer?

 -Jukka Rahkonen

[mapserver-users] [TinyOWS] DefaultMaxFeatures missing from WFS 1.1.0 GetCapabilities

2012-08-29 Thread Rahkonen Jukka
Hi,

It is possible to set WFS maxFeatures on server side with 
tinyows
 ...
 limits features=1 /
 ...
/tinyows

However, this setting is not announced in the WFS 1.1.0 GetCapabilities 
According to standard it belongs to Operations metadata (table 7b, page 86 in 
WFS 1.1.0 standard somehow like this

ows:OperationsMetadata
..
ows:Constraint name=DefaultMaxFeatures
ows:Value1/ows:Value
/ows:Constraint
/ows:OperationsMetadata

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


[mapserver-users] [TinyOWS] OtherSRS configuration element missing

2012-08-28 Thread Rahkonen Jukka
Hi,

TinyOWS supports using all the same projection codes than PostGIS as srsName 
parameter in GetFeature requests. However, it is advertising only the 
DefaultSRS in the GetCapabilities and I cannot find a configuration element for 
adding extra projections in a standard WFS 1.1.0 way as OtherSRS elements.
There are clients like gvSIG which are parsing the OtherSRS list and build a 
dropdown menu for selecting one of the supported projections. Now OtherSRS list 
does not exist ever and gvSIG users can't select anything else that the 
DefaultSRS.

I suggest adding an OtherSRS element into the configuration file which would 
have an effect on WFS 1.1.0 GetCapabilities document.

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


Re: [mapserver-users] Mapserver doesn't work as WMS-Client. Debian version 6.0.1-3.1 (Debian wheezy).

2012-08-27 Thread Rahkonen Jukka
Hi,

Works for me with MS4W and Mapserver 6.2 beta2 after changing
   wms_server_version  1.3.0 into
   wms_server_version  1.1.1

I could not manage to get the invalid layers error and the too high version 
error was on plain understandable text. It would be easier to read the logs and 
responses if some part of PNOA and pnoa  words were changed to something 
else where they can be changed.

-Jukka Rahkonen-


Pablo Diaz wrote:

Hi,

I've a problem with mapserver as a cgi-bin in Debian Weezy (mapserver version 
- 6.0.1-3.1). When I try to connect with a external layer as WMS layer I 
always have same response:

ServiceExceptionReport xmlns=http://www.opengis.net/ogc; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=1.3.0 
xsi:schemaLocation=http://www.opengis.net/ogc 
http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd;
ServiceException code=LayerNotDefined
msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS 
parameter.
/ServiceException
/ServiceExceptionReport

My mapserver call is this:

http://localhost/cgi-bin/mapserv?map=/var/local/mapserver/PPGIS/map/client_draw.mapSRS=EPSG%3A23029LAYERS=pnoaTRANSPARENT=TRUEFORMAT=image%2FpngVISIBLE=falseSERVICE=WMSVERSION=1.3.0REQUEST=GetMapSTYLES=BBOX=591337.45949865,4782765.2220358,595521.36140145,4785376.1944042WIDTH=1384HEIGHT=864

And my layer definition in mapfile is this:

  LAYER
NAME 'pnoa'
TYPE RASTER
STATUS OFF
#GROUP Fondo
CONNECTION http://www.idee.es/wms/PNOA/PNOA?;
CONNECTIONTYPE WMS
METADATA
   wms_name pnoa
   wms_srs EPSG:23029
   wms_format image/png
   wms_title PNOA
   wms_server_version  1.3.0
   wms_exceptions_format application/vnd.ogc.se_xml
   LEGEND_META_LAYER CHECKBOX
   BASE_LAYER '0'
   LEGEND_ORDER 99
   QUERYABLE 0
END
PROJECTION
 init=epsg:23029
END
END

Any idea?

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


Re: [mapserver-users] Mapserver doesn't work as WMS-Client. Debian version 6.0.1-3.1 (Debian wheezy).

2012-08-27 Thread Rahkonen Jukka
Hi,

My Mapserver 6.2 says it does not support cascading with WMS version 1.3.0 so I 
suggest you to use WMS 1.1.1 for cascading with version 6.0.1.  And if you send 
GetMaps for your local Mapserver as WMS 1.3.0 use CRS instead of SRS.

This request works for me with your LAYER settings with only changing
wms_server_version  1.1.1

http://localhost:8060/cgi-bin/mapserv.exe?map=/ms4w/apps/maps/test.mapREQUEST=GetMapSERVICE=WMSVERSION=1.3.0WIDTH=1384HEIGHT=864LAYERS=pnoaTRANSPARENT=TRUEFORMAT=image%2FpngBBOX=514838.4373841815,3957896.5993290497,1063927.4217873805,4377788.175637378CRS=EPSG%3A23029STYLES=

Anyway because you did not get an error about using SRS with WMS 1.3.0 I 
somehow feel that there is really an error in finding your layer pnoa from 
the mapfile. If I use both wrong layer name and SRS the wrong layer error is 
caught first and  I get is the same as you:  msWMSLoadGetMapParams(): WMS 
server error. Invalid layer(s) given in the LAYERS parameter.
Check carefully that you are using the same mapfile that you are editing and 
that you have saved it.  Add also DEGUG 5 for the layer and read the logs.

I checked that cascading that remote WMS works for me  also with Mapserver 
6.0.0 on Windows with WMS 1.1.1.

-Jukka Rahkonen-

Pablo Diaz wrote:


Thank you Rahkonen, but I tryed two options and It doesn't run well.

The pnoa server runs well, because I checked it with desktop gis.

Thanks.

2012/8/27 Rahkonen Jukka 
jukka.rahko...@mmmtike.fimailto:jukka.rahko...@mmmtike.fi
Hi,

Works for me with MS4W and Mapserver 6.2 beta2 after changing
   wms_server_version  1.3.0 into
   wms_server_version  1.1.1

I could not manage to get the invalid layers error and the too high version 
error was on plain understandable text. It would be easier to read the logs and 
responses if some part of PNOA and pnoa  words were changed to something 
else where they can be changed.

-Jukka Rahkonen-


Pablo Diaz wrote:

Hi,

I've a problem with mapserver as a cgi-bin in Debian Weezy (mapserver version 
- 6.0.1-3.1). When I try to connect with a external layer as WMS layer I 
always have same response:

ServiceExceptionReport xmlns=http://www.opengis.net/ogc; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; version=1.3.0 
xsi:schemaLocation=http://www.opengis.net/ogc 
http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd;
ServiceException code=LayerNotDefined
msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the LAYERS 
parameter.
/ServiceException
/ServiceExceptionReport

My mapserver call is this:

http://localhost/cgi-bin/mapserv?map=/var/local/mapserver/PPGIS/map/client_draw.mapSRS=EPSG%3A23029LAYERS=pnoaTRANSPARENT=TRUEFORMAT=image%2FpngVISIBLE=falseSERVICE=WMSVERSION=1.3.0REQUEST=GetMapSTYLES=BBOX=591337.45949865,4782765.2220358,595521.36140145,4785376.1944042WIDTH=1384HEIGHT=864

And my layer definition in mapfile is this:

  LAYER
NAME 'pnoa'
TYPE RASTER
STATUS OFF
#GROUP Fondo
CONNECTION http://www.idee.es/wms/PNOA/PNOA?;
CONNECTIONTYPE WMS
METADATA
   wms_name pnoa
   wms_srs EPSG:23029
   wms_format image/png
   wms_title PNOA
   wms_server_version  1.3.0
   wms_exceptions_format application/vnd.ogc.se_xml
   LEGEND_META_LAYER CHECKBOX
   BASE_LAYER '0'
   LEGEND_ORDER 99
   QUERYABLE 0
END
PROJECTION
 init=epsg:23029
END
END

Any idea?

Thanks in advance.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto: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] still have problem when add postgis layer on mapserver mapfile

2012-08-26 Thread Rahkonen Jukka
Hi,

- This may be a typo:
NAME places1
 DATA geometry from osm_new_mainroads using unique osm_id using srid 3785
 TYPE POINT
Or do you really have your places are in osm_new_mainroads table.

- Then it is a good habit to have PROJECTION block in both the MAP block and 
for each LAYER.
- It is also a good habit to use DEBUG 5 and see what you get into the block
- shp2img is better for testing than a browser but mode=map is OK too. Remember 
to set layers to default (as you had) or give layer names with layers= 
parameter
- Finally, I think it would be good to add STYLE into your layer, inside CLASS.

See the Very basic WMS Server mapfile example at the bottom of page 
http://mapserver.org/ogc/wms_server.html
It should be OK. Perhaps it could be even a bit more simple because now it has 
a reference to a symbolset file. A very, very basic mapfile should be made to 
work without external symbols.

-Jukka Rahkonen-



 李杨 [gisyangli] wrote:

 I try to load a postgis data layer on my mapfile, have problem when configure 
 the mapfile done, then visit it using 
 http://127.0.0.1/cgi-bin/mapserv?map=/var/www/osm-google.mapmode=mapmode=map;
  on the browser address. , only a blank blue image return, with no expected 
 dot info.

 I can not figure out which step is have problem.

 Provide background info:

ogrinfo for the database  table:

jack@jack-Vostro-1450:/usr/lib/cgi-bin$ ogrinfo PG:host=127.0.0.1 user=osm  
password=osm dbname=osm port=5432 osm_new_mainroads -summary
INFO: Open of `PG:host=127.0.0.1 user=osm  password=osm dbname=osm port=5432'
  using driver `PostgreSQL' successful.

Layer name: osm_new_mainroads
Geometry: Line String
Feature Count: 9704
Extent: (-9871463.421196, 3533052.471384) - (-9460289.228784, 4190971.740014)
Layer SRS WKT:
PROJCS[Popular Visualisation CRS / Mercator (deprecated),
GEOGCS[Popular Visualisation CRS,
DATUM[Popular_Visualisation_Datum,
SPHEROID[Popular Visualisation Sphere,6378137,0,
AUTHORITY[EPSG,7059]],
TOWGS84[0,0,0,0,0,0,0],
AUTHORITY[EPSG,6055]],
PRIMEM[Greenwich,0,
AUTHORITY[EPSG,8901]],
UNIT[degree,0.01745329251994328,
AUTHORITY[EPSG,9122]],
AUTHORITY[EPSG,4055]],
UNIT[metre,1,
AUTHORITY[EPSG,9001]],
PROJECTION[Mercator_1SP],
PARAMETER[central_meridian,0],
PARAMETER[scale_factor,1],
PARAMETER[false_easting,0],
PARAMETER[false_northing,0],
AUTHORITY[EPSG,3785],
AXIS[X,EAST],
AXIS[Y,NORTH]]
FID Column = id
Geometry Column = geometry
osm_id: Integer (0.0)
name: String (255.0)
type: String (255.0)
tunnel: Integer (5.0)
bridge: Integer (5.0)
oneway: Integer (5.0)
ref: String (255.0)
z_order: Integer (5.0)
jack@jack-Vostro-1450:/usr/lib/cgi-bin$


.map(uing in the link above : osg-google.map) info for configure:

MAP
NAME places1
STATUS ON
SIZE 800 800
EXTENT -9871463.421196 3533052.471384 -9460289.228784 4190971.740014
UNITS meters
IMAGECOLOR 153 179 204


WEB
IMAGEPATH /var/www/output
IMAGEURL /output/
END

LAYER
 STATUS DEFAULT
 NAME places1
 DATA geometry from osm_new_mainroads using unique osm_id using srid 3785
 TYPE POINT
 CONNECTIONTYPE postgis
 CONNECTION host=localhost dbname=osm user=osm password=osm port=5432
 CLASS
NAME places1_color
COLOR 255 215 0
  END
END

END

-
for a explanation , whenever set  DATA geometry from osm_new_mainroads using 
unique osm_id using srid 3785,
DATA geometry from osm_new_mainroads, or
DATA geometry from osm_new_mainroads using unique osm_id using srid 3875

is the same , a blank image return
---
massperv version info:

./mapserv -v
MapServer version 6.0.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ 
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=GEOS 
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE



I try to experiment it in two different laptop and can not get expected result.

Please those with experience help me., this problem qurrall  me a lot this 
weeked.

Thanks a lot.


--
Yang Li
GIS Developer
P.R.China


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


Re: [mapserver-users] Export map into pdf

2012-08-22 Thread Rahkonen Jukka
Hi,

Define pdf as one of the outputformats.
http://www.mapserver.org/mapfile/outputformat.html

I am not sure how to make nice prints with legends and logos and such, but the 
map itself is easy to push into pdf with no extra work at all. Note that it can 
be geospatial pdf with coordinates
http://www.gdal.org/frmt_pdf.html

Some example screenshots are in the bottom of this otherwise a bit outdated 
document
http://latuviitta.org/documents/Super_easy_WMS_server.pdf
and geospatial PDF created by Mapserver from OpenStreetmap data here.  It's all 
vector so it tolerates zooming however close.
http://latuviitta.org/documents/Lahti_geospat.pdf


-Jukka Rahkonen-

sharad wrote:

 hi all,
 i am developing web application using mapserver with C#/Mapscript.
 how can I export map into pdf file using c#/mapscript?
 
 I will appreciate your reply.
 
 thanks
 sharad
 
 
 
 
 
 --
 View this message in context: http://osgeo-org.1560.n6.nabble.com/Export-
 map-into-pdf-tp4996952.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


Re: [mapserver-users] Tile Index Issues

2012-08-22 Thread Rahkonen Jukka
Hi,

I have a feeling that I had problems with vector tile index and native 
Mapserver connection. For some reason I have changed our mapfiles to connect 
with OGR. Anyway, now when I had a try, both are working. Perhaps I had some 
issues with GetFeatureInfo and not with GetMaps. I have created my tileindex 
shapefiles with ogrtindex utility, and location records look a bit different
z:\Data\contours\KM18M1BV.SHP,0
My connection alternatives which both work now (MS 6.0) are

CONNECTIONTYPE OGR
TILEINDEX z:/data/Tindex/korkeusidx.shp,0
# TILEINDEX z:/data/Tindex/korkeusidx #both with or without .shp works here
# TILEITEM location

-Jukka Rahkonen-

Jeff McKenna wrote:
 
 Hello,
 
 You might also test your mapfile with the shp2img utility
 (http://mapserver.org/utilities/shp2img.html) with the switch -all_debug 5
 to see your errors (and report to this list).
 
 -jeff
 
 
 
 --
 Jeff McKenna
 MapServer Consulting and Training Services
 http://www.gatewaygeomatics.com/
 
 
 
 On 12-08-21 8:38 PM, Peter Mallen wrote:
  Hello All,
 
  I am new to map server and I am attempting to display polygon shapefiles
  using a tile index but have not been able to see any results.
  Eventually I would like to use these tiles to place images(raster) files
  on my map but I was first just testing the 'TILEINDEX' feature with
  vector data.
 
  All of the shapefiles being referenced in my index shapefile are in the
  same folder.
 
 
  Also, in my index shapefile I have the following two shapefiles
  referenced under the 'location' column:
  \ms4w\Apache\htdocs\map.data\Guatemala_Cities.shp
  \ms4w\Apache\htdocs\map.data\Bolivian_Cities.shp
 
  The following page was used as a reference for creating my map file:
  http://mapserver.org/utilities/tile4ms.html
 
  Any help on this would be great.
 
  Thank You,
 
  Peter Mallen
 
 
 ___
 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] Are WMS GetFeatureInfo results ordered by distance?

2012-08-17 Thread Rahkonen Jukka
Hi,

What results will be selected if GetFeatureInfo finds more features within the 
tolerance than used as FEATURE_COUNT parameter?  Are they selected by distance 
are they just the first hits?  If they were ordered by distance then 
GetFeatureInfo could be used for finding N nearest features which might be nice 
sometimes.

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


Re: [mapserver-users] The GetFeatureInfo return a GML without a validation schema.

2012-08-13 Thread Rahkonen Jukka
Andrea Peri wrote:

 Hi,
If GetFeatureInfo would produce GML with different schema than WFS 
GetFeature, how the users are supposed to read it? WMS does not have request 
DescribeGetFeatureInfoSchema and building such for Mapserver does not feel 
optimal. So the GetFeatureInfo GML should have a link to a static 
schema file that could be accessed through the web.

 Yes this was an option, but it is not the only.
 Another option could be an Inline XML. It is an XML with it xsd embedded.
 http://www.herongyang.com/XML/XSD-Statements-Embedded-in-XML-File.html

GDAL/OGR can write such GML files but documentation warns that they may not be 
valid. You can try with ogr2ogr for example with the following command. If 
there is some troubles with my WFS you can use any other vector format as input.

ogr2ogr -f GML -dsco XSISCHEMA=INTERNAL test.gml 
wfs:http://hip.latuviitta.org/cgi-bin/tinyows; -sql select * from 
municipalities where kunta_ni1='Helsinki'

If the resulting GML seems good to you I would guess that someone here can tell 
how to configure Mapserver to use that kind of output for GetFeatureInfo. 
Formatoptions in OGR output settings seem promising to me 
http://mapserver.org/output/ogr_output.html

How about forgetting GML and use something that does not need separate schema 
file, perhaps  GeoJSON?

 I guess GeoJSon is no a consolidated standard.
 So I guess the GeoJSON generated from geoServer is different from the GeoJSON 
 of MapServer or of other products.
 Our goal is to write routines able to speak with MapServer mainly with 
 MapServer but also with GeoServer or others WMS systems.
 The routins must be able to retrieve attributes and geometry.
 We don't want use the WFS because it is too much oriented to a download. It 
 is not lockable to give one only instance (one only  geometry)

I am not a specialist with standards but if GeoJSON and JSON standards together 
take something like 430 pages less than GML it is possible that there are less 
possibilities for different interpretations.
http://geojson.org/geojson-spec.html
http://www.ietf.org/rfc/rfc4627.txt
http://www.opengeospatial.org/standards/gml

If you are going to discuss with servers which are not managed by yourself you 
may meet some troubles with WMS GetFeatureInfo. WMS standard says very little 
about GetFeatureInfo output formats.  Mainly it is just that the formats must 
be advertised in the WMS GetCapabilities.

Limiting results from WFS to only one result is not a problem, you need just 
add MAXFEATURES=1 to the request.  The main problem when it comes to 
interactive web mapping use is that WFS does not have request for getting the 
closest feature from a given coordinate.  

-Jukka Rahkonen-

2012/8/10 Rahkonen Jukka jukka.rahko...@mmmtike.fi
Hi,
 
DescribeFeatureType is compulsory part of WSF so it is no wonder that it 
works automatically.
 
I try to think what could be done. DecribeFeatureType must match with WFS 
GetFeature. It you would like to use DFT with WMS GetFeatureInfo then 
GetFeatureInfo could not be separately configurable. It should always use the 
schema defined for WFS.
I suppose that this is how Geoserver works. I also believe that there are 
Mapserver users who want to get different GML from WFS GetFeature and WMS 
GetFeatureInfo.
 
If GetFeatureInfo would produce GML with different schema than WFS 
GetFeature, how the users are supposed to read it? WMS does not have request 
DescribeGetFeatureInfoSchema and building such for Mapserver does not feel 
optimal. So the GetFeatureInfo GML should have a link to a static schema file 
that could be accessed through the web.
 
OGR GML driver seems to be able to create such schema file automatically with 
XSISCHEMA=EXTERNAL option http://gdal.org/ogr/drv_gml.html.   Problem is that 
probably you do not want to send two files for the WMS client doing 
GetFeatureInfo calls (xml + xsd), not even zipped into one archive file. So 
OGR should generate .xsd file, store it into some place on the server and 
write a corresponging URL into the GML part of response so that client could 
read the file through the web. It feels complicated but probably it could be 
done.  XSISCHEMA=INTERNAL would be much more simple both on the server and 
client side but documentation tells that it does not work.
 
How about forgetting GML and use something that does not need separate schema 
file, perhaps  GeoJSON?
 
 
-Jukka-
 
Andrea Peri wrote:
 
Hi Jukka,

That option ask the user to produce itself all the schemas for all the layers 

I see instead that a getFeature request on the WFS section will produce 
automatically an xsd of the GML it return using the DescribeFeatureType request.

I hope to find a solution to have this automatically produce also on the 
GetFeatureInfo.
2012/8/10 Rahkonen Jukka jukka.rahko...@mmmtike.fi
Hi,
 
Would it work as you hope if the creation option XSISCHEMAURI could be set as 
described in the OGR GML driver page http://gdal.org/ogr/drv_gml.html

Re: [mapserver-users] The GetFeatureInfo return a GML without a validation schema.

2012-08-10 Thread Rahkonen Jukka
Hi,

Would it work as you hope if the creation option XSISCHEMAURI could be set as 
described in the OGR GML driver page http://gdal.org/ogr/drv_gml.html?

XSISCHEMAURI: If provided, this URI will be inserted as the schema location. 
Note that the schema file isn't actually accessed by OGR, so it is up to the 
user to ensure it will match the schema of the OGR produced GML data file.

-Jukka Rahkonen-

Andrea Peri wrote:


Hi,

doing a GetFeatureInfo of GML type I see the MapServer send this kind of 
response.

msGMLOutput
 xmlns:gml=http://www.opengis.net/gml;
 xmlns:xlink=http://www.w3.org/1999/xlink;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
rt_cat.idcatbdfog.rt_layer

Unfortunately this response don't has a schemaLocation with a xsd for 
validation available.

I try with the DescribeFeatureType, but it return an xsd for a 
featureCollection (for GML from WFS) don't for the msGMLOutput.

Is possible to set the GetFeatureInfo from mapserver to have a GML response 
validable with the xsd from DescribeFeatureType ?

Thx,

--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] The GetFeatureInfo return a GML without a validation schema.

2012-08-10 Thread Rahkonen Jukka
Hi,

DescribeFeatureType is compulsory part of WSF so it is no wonder that it works 
automatically.

I try to think what could be done. DecribeFeatureType must match with WFS 
GetFeature. It you would like to use DFT with WMS GetFeatureInfo then 
GetFeatureInfo could not be separately configurable. It should always use the 
schema defined for WFS.
I suppose that this is how Geoserver works. I also believe that there are 
Mapserver users who want to get different GML from WFS GetFeature and WMS 
GetFeatureInfo.

If GetFeatureInfo would produce GML with different schema than WFS GetFeature, 
how the users are supposed to read it? WMS does not have request 
DescribeGetFeatureInfoSchema and building such for Mapserver does not feel 
optimal. So the GetFeatureInfo GML should have a link to a static schema file 
that could be accessed through the web.

OGR GML driver seems to be able to create such schema file automatically with 
XSISCHEMA=EXTERNAL option http://gdal.org/ogr/drv_gml.html.   Problem is that 
probably you do not want to send two files for the WMS client doing 
GetFeatureInfo calls (xml + xsd), not even zipped into one archive file. So OGR 
should generate .xsd file, store it into some place on the server and write a 
corresponging URL into the GML part of response so that client could read the 
file through the web. It feels complicated but probably it could be done.  
XSISCHEMA=INTERNAL would be much more simple both on the server and client side 
but documentation tells that it does not work.

How about forgetting GML and use something that does not need separate schema 
file, perhaps  GeoJSON?


-Jukka-

Andrea Peri wrote:

Hi Jukka,

That option ask the user to produce itself all the schemas for all the layers

I see instead that a getFeature request on the WFS section will produce 
automatically an xsd of the GML it return using the DescribeFeatureType request.

I hope to find a solution to have this automatically produce also on the 
GetFeatureInfo.

2012/8/10 Rahkonen Jukka 
jukka.rahko...@mmmtike.fimailto:jukka.rahko...@mmmtike.fi
Hi,

Would it work as you hope if the creation option XSISCHEMAURI could be set as 
described in the OGR GML driver page http://gdal.org/ogr/drv_gml.html?

XSISCHEMAURI: If provided, this URI will be inserted as the schema location. 
Note that the schema file isn't actually accessed by OGR, so it is up to the 
user to ensure it will match the schema of the OGR produced GML data file.

-Jukka Rahkonen-

Andrea Peri wrote:

Hi,

doing a GetFeatureInfo of GML type I see the MapServer send this kind of 
response.

msGMLOutput
 xmlns:gml=http://www.opengis.net/gml;
 xmlns:xlink=http://www.w3.org/1999/xlink;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
rt_cat.idcatbdfog.rt_layer

Unfortunately this response don't has a schemaLocation with a xsd for 
validation available.

I try with the DescribeFeatureType, but it return an xsd for a 
featureCollection (for GML from WFS) don't for the msGMLOutput.

Is possible to set the GetFeatureInfo from mapserver to have a GML response 
validable with the xsd from DescribeFeatureType ?

Thx,

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

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



--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Spatialite tables with multiple geometry columns

2012-08-04 Thread Rahkonen Jukka
Hi,

I can't test myself right now because I cannot access gisinternals.com for 
getting a fresh Windows build. However, I for using geom2 of a multigeom table 
would try with

DATA 'SELECT geom2,attr1,attr2 FROM table'

You can also create a spatial view which selects geom2 on the Spatialite side 
and use then simply
DATA 'view'

Another advantage in creating spatial view is that they can be used directly in 
QGis once it will have fresh enough GDAL version. I am remembering that QGis 
cannot make layers from Spatialite with SQL queries.

-Jukka Rahkonen-



Andrea Peri wrote:

 Hi Roualt,

 thx for patch,

 I'm go to test it.
 Just a question to understand how use it.

 the sintax 'TABLE(GEOMETRY)' should return also the attributes from table or 
 only the geometry without attribute ?

 regards,

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

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


Re: [mapserver-users] Using spatialite with mapserver

2012-08-03 Thread Rahkonen Jukka
Hi,

I correct myself, support for multiple geometry columns is not a bug but a 
missing feature. I just wrote about it into GDAL-dev list. Let's see what 
happens.

When it comes to error with 'limit 20' I believe that the real problem is 
in a different place.  I bet that there is a faulty geometry somewhere between 
2 and 20 geometries. In that case OGR throws an error and stops. For 
Mapserver users it would be extremely much better if OGR in such case just 
skips the error and continues. I know the issue because it is common with 
OpenSteetMap polygons. As a workaround I have myself just deleted all the 
non-valid geometries from Spatialite with delete from table where 
ST_IsValid(geometry)=0.

-Jukka Rahkonen-






Andrea Peri wrote:


This looks like an OGR bug, I have correct info in views_geometry_columns 
(refering to
geom2 of the main table) and in geometry_columns (both geom1 and geom2 has
records).

For now, forget multiple geometries and create new single geometry tables and 
enjoy the
speed of Spatialite and Mapserver.

-Jukka Rahkonen-

thx Jukka,

Is an unpleasant situation this ogr bug.
My table af many fields attribute . it is about 15 Gbyte (gasp!)
so split it in two tables so separate the geometries is not a beatiful action. 
:)

But I'm notice another question.

Infact after remove the secondary geometries (sigh), I can see that there is a 
strange liit due to numer of elements.
Infact Mapserver work with this sql:

DATA 'SELECT field1, field2, field3, geometry from table LIMIT 2'

but don't work with this other sql:

DATA 'SELECT field1, field2, field3, geometry from table LIMIT 20'

Seem there is a max number of elements retrieval.
The strange is that with this second sql MapServer don't do nothing.
Simply it end its work without generate no map.
No error log report is write.

Perhaps there is a setting to say how much memory mapserver (or ogr) must use 
for resultset from DB ?

Thx.

2012/8/2 Rahkonen Jukka 
jukka.rahko...@mmmtike.fimailto:jukka.rahko...@mmmtike.fi
Hi again,

Tried what ogrinfo sees in case of two geometries. It does not look good.

FID Column = rowid
Geometry Column = geom1
geom2: Binary (0.0)
OGRFeature(test2):1
  geom2 (Binary) = 0001110F958B843BA9EC354126C76C9BD95A5A41958B843BA9EC35412
6C76C9BD95A...
  POINT (1436841.2324912299 6908774.4285142776)

OGRFeature(test2):2
  geom2 (Binary) = 0001110F81AE1AFBAEEF3541FB1B8FFA035B5A4181AE1AFBAEEF3541F
B1B8FFA035B...
  POINT (1437614.9808758798 6908943.9149846984)

So that means than only the first geometry can be user with OGR. Next I tried 
to create a spatial view with spatialite-gui by selecting only geom2 into the 
view. This fails too

D:\ms4w\dataogrinfo berlin.sqlite test3
INFO: Open of `berlin.sqlite'
  using driver `SQLite' successful.
ERROR 1: Underlying layer test2 for view test3 has not expected geometry column
name (geom1 instead of geom2)

Layer name: test3
Geometry: Unknown (any)
Feature Count: 0
Layer SRS WKT:
(unknown)
FID Column = ROWID
Geometry Column = geom2

This looks like an OGR bug, I have correct info in views_geometry_columns 
(refering to geom2 of the main table) and in geometry_columns (both geom1 and 
geom2 has records).

For now, forget multiple geometries and create new single geometry tables and 
enjoy the speed of Spatialite and Mapserver.

-Jukka Rahkonen-



Lähettäjä: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 
[mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org]
 k#228;ytt#228;j#228;n Rahkonen Jukka 
[jukka.rahko...@mmmtike.fimailto:jukka.rahko...@mmmtike.fi] puolesta
Lähetetty: 3. elokuuta 2012 0:27
Vastaanottaja: Andrea Peri; 
mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] Using spatialite with mapserver

Hi,

The SELECT alternative works fine for me but I do not have multiple geometries. 
I made a very fast test on Spatialite side and it seems to be possible to run 
Recover geometry column and Create spatial index for multiple geometries 
but I did not test the result with Mapserver.

I would recommend you to check first your geometry_columns table and see it 
there is a line for the geometry you want to use and if spatial index is OK. If 
they are OK make a simplified test. Create a single geometry table as
CREATE table test as
SELECT geom1, attr1... FROM...
Do Recover geometry column and Create spatial index things for the new 
table and have a try with Mapserver.

GDAL version must be 1.9 or higher or things will be far too slow.
This document may also be useful for you
http://latuviitta.org/documents/Super_easy_WMS_server.pdf

-Jukka Rahkonen-






Lähettäjä: 
mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org
 
[mapserver-users-boun...@lists.osgeo.orgmailto:mapserver-users-boun...@lists.osgeo.org

Re: [mapserver-users] Using spatialite with mapserver

2012-08-02 Thread Rahkonen Jukka
Hi,

The SELECT alternative works fine for me but I do not have multiple geometries. 
I made a very fast test on Spatialite side and it seems to be possible to run 
Recover geometry column and Create spatial index for multiple geometries 
but I did not test the result with Mapserver.

I would recommend you to check first your geometry_columns table and see it 
there is a line for the geometry you want to use and if spatial index is OK. If 
they are OK make a simplified test. Create a single geometry table as
CREATE table test as
SELECT geom1, attr1... FROM...
Do Recover geometry column and Create spatial index things for the new 
table and have a try with Mapserver.

GDAL version must be 1.9 or higher or things will be far too slow.
This document may also be useful for you
http://latuviitta.org/documents/Super_easy_WMS_server.pdf

-Jukka Rahkonen-






Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] käyttäjän Andrea Peri 
[aperi2...@gmail.com] puolesta
Lähetetty: 2. elokuuta 2012 23:03
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] Using spatialite with mapserver

Hi,
I'm try-ing to use spatialite with mapserver.

is this mapfile configuration ok for spatialite ?

CONNECTIONTYPE OGR
CONNECTION '/..path-to../spatialite_file.sqlite'
DATA 'SELECT field1, field2, field3, geometry from table'

It seem don't work.

Instead work perfectly this other configuration:

CONNECTIONTYPE OGR
CONNECTION 
'/home/vector/vettoriali/db_catasto/regione_toscana/adt_toscana.sqlite'
DATA 'table'

Unfortunately this second configuration don't allow to choose the geometry 
field , necessary when spatialite table as two or more geometry field.

Thx,

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

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


Re: [mapserver-users] Using spatialite with mapserver

2012-08-02 Thread Rahkonen Jukka
I an writing this night faster than I am thinking, sorry for that. It came into 
my mind to delete the row for geom1 from the geometry_columns and now it is 
possible to use geom2.  OGR takes the first matching row from geometry_columns 
and because row for geom1 does not exist row for geom2 is found and everything 
works fine.  However, this workaround makes only one geometry at a time usable 
for OGR and Mapserver because the first registered geometry column must match.

ogrinfo:

FID Column = ROWID
Geometry Column = geom2
OGRFeature(test3):1
  POINT (1436841.2324912299 6908774.4285142776)

OGRFeature(test3):2
  POINT (1437614.9808758798 6908943.9149846984)

OGRFeature(test3):3
  POINT (1438331.5778339701 6909101.5655383449)

-Jukka-

Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] k#228;ytt#228;j#228;n Rahkonen 
Jukka [jukka.rahko...@mmmtike.fi] puolesta
Lähetetty: 3. elokuuta 2012 0:46
Vastaanottaja: Andrea Peri; mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] Using spatialite with mapserver

Hi again,

Tried what ogrinfo sees in case of two geometries. It does not look good.

FID Column = rowid
Geometry Column = geom1
geom2: Binary (0.0)
OGRFeature(test2):1
  geom2 (Binary) = 0001110F958B843BA9EC354126C76C9BD95A5A41958B843BA9EC35412
6C76C9BD95A...
  POINT (1436841.2324912299 6908774.4285142776)

OGRFeature(test2):2
  geom2 (Binary) = 0001110F81AE1AFBAEEF3541FB1B8FFA035B5A4181AE1AFBAEEF3541F
B1B8FFA035B...
  POINT (1437614.9808758798 6908943.9149846984)

So that means than only the first geometry can be user with OGR. Next I tried 
to create a spatial view with spatialite-gui by selecting only geom2 into the 
view. This fails too

D:\ms4w\dataogrinfo berlin.sqlite test3
INFO: Open of `berlin.sqlite'
  using driver `SQLite' successful.
ERROR 1: Underlying layer test2 for view test3 has not expected geometry column
name (geom1 instead of geom2)

Layer name: test3
Geometry: Unknown (any)
Feature Count: 0
Layer SRS WKT:
(unknown)
FID Column = ROWID
Geometry Column = geom2

This looks like an OGR bug, I have correct info in views_geometry_columns 
(refering to geom2 of the main table) and in geometry_columns (both geom1 and 
geom2 has records).

For now, forget multiple geometries and create new single geometry tables and 
enjoy the speed of Spatialite and Mapserver.

-Jukka Rahkonen-



Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] k#228;ytt#228;j#228;n Rahkonen 
Jukka [jukka.rahko...@mmmtike.fi] puolesta
Lähetetty: 3. elokuuta 2012 0:27
Vastaanottaja: Andrea Peri; mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] Using spatialite with mapserver

Hi,

The SELECT alternative works fine for me but I do not have multiple geometries. 
I made a very fast test on Spatialite side and it seems to be possible to run 
Recover geometry column and Create spatial index for multiple geometries 
but I did not test the result with Mapserver.

I would recommend you to check first your geometry_columns table and see it 
there is a line for the geometry you want to use and if spatial index is OK. If 
they are OK make a simplified test. Create a single geometry table as
CREATE table test as
SELECT geom1, attr1... FROM...
Do Recover geometry column and Create spatial index things for the new 
table and have a try with Mapserver.

GDAL version must be 1.9 or higher or things will be far too slow.
This document may also be useful for you
http://latuviitta.org/documents/Super_easy_WMS_server.pdf

-Jukka Rahkonen-






Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] käyttäjän Andrea Peri 
[aperi2...@gmail.com] puolesta
Lähetetty: 2. elokuuta 2012 23:03
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] Using spatialite with mapserver

Hi,
I'm try-ing to use spatialite with mapserver.

is this mapfile configuration ok for spatialite ?

CONNECTIONTYPE OGR
CONNECTION '/..path-to../spatialite_file.sqlite'
DATA 'SELECT field1, field2, field3, geometry from table'

It seem don't work.

Instead work perfectly this other configuration:

CONNECTIONTYPE OGR
CONNECTION 
'/home/vector/vettoriali/db_catasto/regione_toscana/adt_toscana.sqlite'
DATA 'table'

Unfortunately this second configuration don't allow to choose the geometry 
field , necessary when spatialite table as two or more geometry field.

Thx,

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

___
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] Re-Projections

2012-07-30 Thread Rahkonen Jukka
Hi,

Of course it works and you should be able to make configurations by following 
this document
http://mapserver.org/ogc/wms_server.html#setting-up-a-wms-server-using-mapserver

-Jukka Rahkonen-

Sowmya Tiramdasu wrote:

 Hi All,

   I have a scenario for re-projections. Can anyone let me know if the
 following scenario works in MapServer?

   Below is a sample map file ( A,B,C are three different projections. LAYER
 1, 2, 3 are three different layers in the map file)

  MAP

PROJECTION  : A

LAYER 1
PROJECTION : B
LAYER 2
PROJECTION : B
LAYER 3
PROJECTION : C
 END

 Any help is greatly appreciated. Thanks in advance!

Thanks,
Sowmya.

___
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] ArcInfo Grid with MapServer

2012-07-23 Thread Rahkonen Jukka
Hi,

STATUS OFF means that the layer is turned off. DEFAULT sets it to be allways ON 
and STATUS ON means it can be on or off depending from your request. Byt the 
way, how does your request look like?

-Jukka Rahkonen-

Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] k#228;ytt#228;j#228;n jorgelopez 
[jorgelopez.phys...@gmail.com] puolesta
Lähetetty: 23. heinäkuuta 2012 18:04
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] ArcInfo Grid with MapServer

Hello everyone:

I have some problems trying to render Arc Info Grids with MapServer. I am
using this mapfile (restricted to LAYER definition)

 LAYER
NAME 'JRC_SRTM90'
TYPE 'RASTER'
DATA
'/home/data/datasets/public/srtm90/mapserver/eea_r_3035_100_m_srtm90-dem_2000_grid/srtm90_dem100'
METADATA
  ## WMS ##
  'wms_title''SRTM Digital Elevation Model'
  'wms_abstract'   'Shuttle Radar Topography Mission (SRTM) data
is a high quality elevation data for large portions and areas of the world.'
  'wms_label''SRTM_90_info'
  'wms_metadataurl_format'   'text/html'
  'wms_extent'   '-180 -90 180 90'
  'wms_enable_request'   '*'
  'wms_include_items''all'
  'gml_include_items''all'
   ## WCS ##
  'wcs_title''SRTM Digital Elevation Model'
  'gml_featureid''ID' ## REQUIRED
  'wcs_label''SRTM_90'
  'wcs_description'  'Shuttle Radar Topography Mission (SRTM)
data is a high quality elevation data for large portions and areas of the
world.'
  'wcs_formats'  'AIGRID'
  'wcs_extent'   '-180 -90 180 90'
  'wcs_enable_request'   '*'
  wcs_rangeset_nameRange 1  ### required to support
DescribeCoverage request
  wcs_rangeset_label   Bluemarble classes ### required to
support DescribeCoverage request


END #end metadata

STATUS OFF
DUMP TRUE
TEMPLATE ' '
PROJECTION
  'init=epsg:4326'
END

   END #end layer

 I am doing WMS request by pointing to ArcInfo srtm90_dem100 directory (that
contains adf files) but I have no response from MapServer.

Attending to Apache logs:

[Mon Jul 23 17:03:05 2012] [error] [client 158.109.144.146] GDAL:
GDALDeregister_GTiff() called.
[Mon Jul 23 17:03:06 2012] [error] [client 158.109.144.146] File does not
exist: /var/www/favicon.ico
[Mon Jul 23 17:03:08 2012] [error] [client 158.109.144.146] GDAL:
GDALOpen(/home/data/datasets/public/eea/srtm90/mapserver/eea_r_3035_100_m_srtm90-dem_2000_grid/srtm90_dem100.aux,
this=0x2461bc0) succeeds as HFA.
[Mon Jul 23 17:03:08 2012] [error] [client 158.109.144.146] GDAL:
GDALOpen(/home/data/datasets/public/eea/srtm90/mapserver/eea_r_3035_100_m_srtm90-dem_2000_grid/srtm90_dem100,
this=0x24414e0) succeeds as AIG.
[Mon Jul 23 17:03:09 2012] [error] [client 158.109.144.146] GDAL:
GDALDeregister_GTiff() called.
[Mon Jul 23 17:03:09 2012] [error] [client 158.109.144.146] File does not
exist: /var/www/favicon.ico

It seems to use drivers correctly.

I have OUTPUTFORMAT definition like this:

# GRID COVERAGE

 OUTPUTFORMAT
NAME 'AIGRID'
DRIVER 'GDAL/AAIGRID'
##MIMETYPE 'image/x-aigrid'
IMAGEMODE 'INT16'
EXTENSION 'grd'
##FORMATOPTION 'FILENAME=result.grd'
  END  #end outputformat


Does anybody know why there is no response in my situation? Or send some
clues for publishing ArcInfo Grids using GDAL? I have not found any info
relevant for me about this issue.

Thank you in advance

Jorge




--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/ArcInfo-Grid-with-MapServer-tp4990112.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


Re: [mapserver-users] offset line more of a scribble then a line

2012-07-21 Thread Rahkonen Jukka
Hi,

I know why it happens but I do not know a general solution for making it look 
better. The coast line is splitted in short linestrings (max 2000 nodes it it 
is OpenStreetMap data) and offset is calculated individually for each line by 
using a perpendicular displacement for each vertex. If the cutting between 
linestrings happens to be in very concave or convex part of the coastline the 
result is like you see.  You will get the same result by using the 
ST_OffsetLine in PostGIS or Spatialite.

I would guess that there is something in the offset function for doing some 
arrangements if the concave/convex parts are in the middle of a linestring so 
that the resultining lines would not have self-intersections. Therefore you 
might get better looking result with less number of messy knots by combining 
some amount of linestrings with union function before the offset line is built. 
Also if coast line was cutted in very straight sections the mess would not look 
as bad.

I would guess that rather good result could be achieved on-the-fly by selecting 
first all the coastline segments inside the bounding box to be rendered, 
unioning them and building offset line for the union. I do not know how to do 
that with Mapserver but perhaps a clever view in PostGIS could do it 
automatically.

Matt McClelland wrote:


 Hi

 I am on mapserver 6.0, WMS

 This link has an example of the issue - a picture saves me a 1000 words :)
http://wildwalks.com/temp/offset 
issue.pnghttp://wildwalks.com/temp/offset%20issue.png

 Basically I am trying to draw a line offset to the coast line.
 But the line that is appearing is more of a scribble then a neat line
 (the red line is the offset line, and the blue is the coast line.)

 Here is the relevant style bits form the mapfile
STYLE ## COAST LINE
  COLOR 100 100 255
  WIDTH 1
END
STYLE  ## red offset line
  color 255 0 0
  WIDTH 5
  OFFSET 50 -99
END

 Any clues on how to get the red line to run a little nicer  :)

 Thanks

 Matt  :)

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


Re: [mapserver-users] Remote map server - data tweaking

2012-07-05 Thread Rahkonen Jukka
Hi,

Check this TinyOWS example 
http://mapserver.org/trunk/tinyows/openlayershowtotransactional.html

However, from what I know Qgis does not load all the features but only those 
which intersect the map window. Open attribute table seems to read the 
attributes from the whole table but for editing attributes of a single feature 
you can point it with the info tool and then open the Edit feature form with 
right click.

QGis is also a WFS-T client and it can be used for editing data through 
TinyOWS. The current QGis development version seems to miss the bounding box 
filter option so it is now downloading the whole table through WSF. Therefore 
it is unusable with big WFS layers at the moment. Let's hope they will 
re-activate the BBOX check box soon.

-Jukka Rahkonen-




Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] käyttäjän Matt McClelland 
[m...@wildwalks.com] puolesta
Lähetetty: 6. heinäkuuta 2012 4:30
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] Remote map server - data tweaking

Hi All

I am looking for a simple editing tool that will allow me to edit vector map 
data on my remote mapserver DB (postgres)
Ideally something like Potlatch 2 (From ww.osm.orghttp://ww.osm.org)

I want to be able to download a small area of data, move a few notes on a line 
a bit (or delete it the line), and commit those changes to the DB.
I have used quantum GIS - It is good, but it seems to download all the data 
from the table, not just what is in view.

Not really a mapserver question, but somewhat related.

Any ideas welcome - thanks

Matt  :)

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


Re: [mapserver-users] MS4W mapcache

2012-07-05 Thread Rahkonen Jukka
Hi,

Have you tried MS4W 6.1-dev? It should come with Mapcache.
http://www.maptools.org/ms4w/index.phtml?page=downloads.html

-Jukka Rahkonen-


scott159 wrote:

 Hi,

 I would like to use mapcache with package MS4W. Where I could find dll to use 
 it ?

thanks
___
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] slow access to PostGIS layer

2012-06-28 Thread Rahkonen Jukka
Hi,

Is the spatial index OK? There is the  bounding box query happening too, not 
just select geometry from my_table.

-Jukka Rahkonen-



Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] käyttäjän G. Allegri 
[gioha...@gmail.com] puolesta
Lähetetty: 28. kesäkuuta 2012 1:53
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] slow access to PostGIS layer

[cross posting from MS4W ml]

I'm working on a Windows 7 machine with PostGIS 1.5 on Postgresql 8.4, with no 
tuning (default configuration).

I'm facing very bad performances when accessing a polygonal layer on PostGIS.
The layer is not that heavy and complex. It is made by 20 polygons with about 
4000 to 56000 vertices.

The raw query (SELECT the_geom FROM mytable), performed through the psql 
console, fetches the results in about 185 ms.
Logging the layer with DEBUG 5 shows that iterating over the features takes 
about 7.5 s.
The time between consecutive msPostGISLayerNextShape calls is about 0.3/0.4 s.
Here is the log file: http://www.giovanniallegri.it/share/mspglog.txt

I obtain the same performances with ms4w 3.0.6(MapServer MapScript to 6.0.3) 
and 3.0.4_dev (MapServer and MapScript 6.1-dev), which
PostGIS is 1.5 on Postgresql 8.4, with no customized options.
I'm working on a Windows 7 machine, but the work should be deployed on a 
Windows Server 2003.

I'm not using connection pooling, but I was facing similar performances before 
disabling it.
giovanni

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


Re: [mapserver-users] Curved Lines

2012-06-27 Thread Rahkonen Jukka
Hi,

The question, if I understand is correctly, is relevant. In EPSG:4326 shortest 
distance between two points is better expressed as a curve than as a straight 
linestring. However, Mapserver does not support curves of any kind.

You may find some workaround from GDAL. Ogr2ogr is having a segmentize option 
for this purpose. It does not support real curves either, but it creates 
intermediate points so that linestrings are shorter and thus follow the curve 
better. See http://gdal.org/ogr2ogr.html

-Jukka Rahkonen-

 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Mr. 
 Puneet Kishor
 Lähetetty: 27. kesäkuuta 2012 17:39
 Vastaanottaja: juliap
 Kopio: mapserver-users@lists.osgeo.org
 Aihe: Re: [mapserver-users] Curved Lines
 
 
 On Jun 27, 2012, at 2:13 AM, juliap wrote:
 
  Hi all,
  
  I have the following layer of type line :
  
  LAYER 
  NAME line
  STATUS ON
  TYPE LINE
  CONNECTIONTYPE OGR  
  CONNECTION 
 MSSQL:server=server;database=database;uid=id;pwd=pwd 
  DATA SELECT geometry::STLineFromText('LINESTRING ('
+CAST(Geo.STX AS VARCHAR(54))
+' '
+CAST(Geo.STY AS VARCHAR(54))
+', '
+CAST(Geo.STX AS VARCHAR(54))
+' '
+CAST(Geo.STY AS VARCHAR(54)) 
+')'
,4326)
  FROM column WHERE DATEDIFF(mi, CreatedON, 
 CURRENT_TIMESTAMP) ='%x%'   
  CLASS
  STYLE   
  WIDTH 3
  SIZE 1
  COLOR 0 0 128
  END # end of style
  END # end of class
  PROJECTION
  init=epsg:4326 
  END # end of projection
  END # end of layer
  
  I was wondering how to get a curved line from this data. I 
 tried using angle
  and gap, but I don't see any changes.
  Any suggestions?
  
 
 
 Your understanding of geometry is a bit off here. In a query 
 result set, each row is a feature, and a line feature would 
 be made up of two or points; a curved line feature, of 
 course, would be made up of three or more points.
 
 What you are getting in the result set above is a bunch of 
 features, each of which are a point repeated twice. I think 
 what you really want is to create a single line feature from 
 all these points. So, you would probably do some kind of an 
 aggregate on these points. I don't know the functions 
 available in SQL Server, but there must be an analog for 
 Postgres's aggregate functions. You want to collect all the 
 points and make a line feature from them, and then pass that 
 to MapServer to draw. You could make a view that does all 
 this, and then call the view from MapServer.
 
 Hope this helps.
 
 
 --
 Puneet Kishor
 ___
 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] Grouping WFS Layers to Output One GML file

2012-06-26 Thread Rahkonen Jukka
Hi,

It seems to be a bit complicated but perhaps reading this thread helps
http://osgeo-org.1560.n6.nabble.com/WFS-multiple-typenames-in-request-only-one-in-reply-td4232816.html

Strictly speaking your filter is rather bad. You are using WFS 1.1.0 and GML 3 
but your filter is using GML 2 box which does not exist at all in GML 3 and 
coordinates which is deprecated. I would suggest to use WFS 1.0.0 when your 
filter is OK or then build correct GML 3 filters. Your mixture may work with 
Mapserver but most probably not with schema validating servers like TinyOWS and 
deegree.

-Jukka Rahkonen-


Lähettäjä: Donald Kerr [donald.k...@dkerr.co.uk]
Lähetetty: 26. kesäkuuta 2012 11:46
Vastaanottaja: Rahkonen Jukka; 'MAPSERVER USERS'
Aihe: RE: [mapserver-users] Grouping WFS Layers to Output One GML file

I need some further help if possible. I have got more than one layer to work
but am getting an error Wrong number of filter elements when trying to
apply a BBOX filter to the GetFeature request.

I can get the WFS GetFeature query to work for a single layer as follows:

localhost/cgi-bin/mapserv.exe?map=MyMap.mapservice=wfsversion=1.1.0reques
t=getfeaturetypename=Layer1maxfeatures=50outputformat=gml3

And for two layers as follows:

localhost/cgi-bin/mapserv.exe?map=MyMap.mapservice=wfsversion=1.1.0reques
t=getfeaturetypename=Layer1,Layer2maxfeatures=50outputformat=gml3

I can also filter the single layer as follows:

localhost/cgi-bin/mapserv.exe?map=MyMap.mapservice=wfsversion=1.1.0reques
t=getfeaturetypename=Layer1maxfeatures=50outputformat=gml3Filter=Filter
BBOXPropertyNamemsGeometry/PropertyNamebox
srsName=EPSG:27700coordinates56273,779431
56273,779431/coordinates/box/BBOX/filter

But, if I try to filter on two layers as follows:

localhost/cgi-bin/mapserv.exe?map=MyMap.mapservice=wfsversion=1.1.0reques
t=getfeaturetypename=Layer1,Layer2maxfeatures=50outputformat=gml3Filter=
FilterBBOXPropertyNamemsGeometry/PropertyNamebox
srsName=EPSG:27700coordinates56273,779431
56273,779431/coordinates/box/BBOX/filter

I get an error:

 ?xml version=1.0 encoding=ISO-8859-1 ?
- ows:ExceptionReport xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:ows=http://www.opengis.net/ows; version=1.1.0 language=en-US
xsi:schemaLocation=http://www.opengis.net/ows
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd;
- ows:Exception exceptionCode=InvalidParameterValue locator=filter
  ows:ExceptionTextmsWFSGetFeature(): WFS server error. Wrong number of
filter elements, one filter must be specified for each feature type listed
in the TYPENAME parameter./ows:ExceptionText
  /ows:Exception
  /ows:ExceptionReport

I've tried various methods for specifying multiple filters but cannot get it
to work. Can anyone advise please?

Many thanks.

Regards,

Donald








-Original Message-
From: Rahkonen Jukka [mailto:jukka.rahko...@mmmtike.fi]
Sent: 25 June 2012 21:47
To: Donald Kerr; 'MAPSERVER USERS'
Subject: Re: [mapserver-users] Grouping WFS Layers to Output One GML file


Hi,

Have you tried what happens if you give a list of layers as typename? This
should send you some data from TinyOWS

http://188.64.1.61/cgi-bin/tinyows?service=WFSversion=1.0.0request=Getfeat
uretypename=lv:puolilehti_25t,lv:puolilehti_50t

-Jukka Rahkonen-

 Donald Kerr wrote:

 Is it possible to group WFS layers, in much the same way as WMS:
wms_group_title Several_Layers, so that a single gml file is returned
from Mapserver?

 To explain what I'm trying to do: I want to output several WFS layers
 as GML
so that they can be imported to another program as a single GML file. I
would like to make this file available as a url, i.e. right click - save as,
so that the user could then import the lot as a single file.

The easiest way for me to do this would be if I could group the WFS layers
at the Mapserver level and provide a link to that WFS request.

Alternatively, can anyone provide some ideas as to how this could be done
by, for example, OpenLayers (I know, wrong group!) or maybe some sort of
server side joining of multiple WFS layers.

Many thanks.

Regards,

Donald


___
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] newbie just getting a blank page

2012-06-26 Thread Rahkonen Jukka
Hi,

You do not ask for any layer. Add STATUS DEFAULT to your layer or add 
layers=all into your request.

Unfortunately, even your mapfile is short is has many other errors and outdated 
stuff.  Where did you take an example when you wrote it?

We should absolutely have some guaranteed correct mapfiles with corresponding 
data for the newbies and it should be forbidden for the poor new users to do 
any own trials before the Hello Word example shows a map.  When I started we 
had MapLab but what do we have now?  Even the Qgis mapfile write plugin is 
broken nowadays.

-Jukka Rahkonen-

Eloi Ribeiro wrote:

 Hi,

 I'm trying MapServer for the first time and doing something wrong because all 
 I get is a blank 
 pagehttps://dl.dropbox.com/u/1735137/MapServer_firefox_chromium.png in the 
 browser with:
http://localhost/cgi-bin/mapserv?map=/var/www/teste.mapmode=map
The computer is running Ubuntu 10.04 with UbuntuGIS-unstable repository.
The map file is located under the Apache folder (/var/www/teste.map) and trying 
to load a PostGIS layer.
This is the content of my map file:
--
MAP
  NAME World map
  SIZE 500 500
  UNITS meters
  IMAGECOLOR 28 28 55
  IMAGETYPE png
  EXTENT -180 -90 180 90
  PROJECTION
proj=latlong
ellps=WGS84
  END

  OUTPUTFORMAT
NAME png
DRIVER 'GD/PNG'
MIMETYPE 'image/png'
IMAGEMODE RGBA
EXTENSION 'png'
  END

  LAYER
CONNECTIONTYPE POSTGIS
CONNECTION dbname='bd_ceam' host='localhost' port='5432' user='consulta' 
password='***' sslmode='disable'
DATA geom FROM 'sch_sig'.'wd_paises' USING UNIQUE gid USING srid=4326
NAME wd_paises
TYPE POLYGON
END
EXTENT -180 -90 180 90
  END

END
--

Any clue of what I'm doing wrong?

Thanks,

Eloi Ribeiro
GIS Analyst
39,45º -0,40º
flavors.me/eloiribeirohttp://flavors.me/eloiribeiro
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] QGIS WEB Client / Qgis Server

2012-06-25 Thread Rahkonen Jukka
Hi,

Ask from Qgis users mailing list about Ggis Mapserver, this MapServer is a 
different project.

-Jukka Rahkonen-

Kadu Machado wrote:

 Hi folks

 I have a little issue with Qgis WebClient over Windows

 When I access the qgis web client, the layers and labels are loaded and are 
 showed normally, but the map dont After the message loading map, the map 
 just dont open. The frame is still blank.

 I notice that a Internal Error 500 occour:


  1.  GET 
http://srv-vibgeo01/qgis/qgis_mapserv.fcgi.exe?map=c:\projetos\redes.qgsLAYERS=pk_kombiniertFORMAT=image%2FjpegSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A900913BBOX=174575.63035781,8246018.1303578,194419.36964219,8265861.8696422WIDTH=300HEIGHT=300http://srv-vibgeo01/qgis/qgis_mapserv.fcgi.exe?map=c:%5Cprojetos%5Credes.qgsLAYERS=pk_kombiniertFORMAT=image%2FjpegSERVICE=WMSVERSION=1.1.1REQUEST=GetMapSTYLES=EXCEPTIONS=application%2Fvnd.ogc.se_inimageSRS=EPSG%3A900913BBOX=174575.63035781,8246018.1303578,194419.36964219,8265861.8696422WIDTH=300HEIGHT=300
 500 (Internal Server Error) 
OpenLayers.js:1000http://srv-vibgeo01/maps/libs/openlayers/OpenLayers.js

Anyone has some ideia how to solve this problem???

--
Quem quer fazer alguma coisa, encontra um meio. Quem não quer fazer nada, 
encontra uma desculpa.
(Roberto Shinyashiki)



--
Quem quer fazer alguma coisa, encontra um meio. Quem não quer fazer nada, 
encontra uma desculpa.
(Roberto Shinyashiki)
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Grouping WFS Layers to Output One GML file

2012-06-25 Thread Rahkonen Jukka
Hi,

Have you tried what happens if you give a list of layers as typename? This 
should send you some data from TinyOWS

http://188.64.1.61/cgi-bin/tinyows?service=WFSversion=1.0.0request=Getfeaturetypename=lv:puolilehti_25t,lv:puolilehti_50t

-Jukka Rahkonen-

 Donald Kerr wrote:

 Is it possible to group WFS layers, in much the same way as WMS:
wms_group_title Several_Layers, so that a single gml file is returned
from Mapserver?

 To explain what I'm trying to do: I want to output several WFS layers as GML
so that they can be imported to another program as a single GML file. I
would like to make this file available as a url, i.e. right click - save as,
so that the user could then import the lot as a single file.

The easiest way for me to do this would be if I could group the WFS layers
at the Mapserver level and provide a link to that WFS request.

Alternatively, can anyone provide some ideas as to how this could be done
by, for example, OpenLayers (I know, wrong group!) or maybe some sort of
server side joining of multiple WFS layers.

Many thanks.

Regards,

Donald


___
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] Mapfile Variables

2012-06-19 Thread Rahkonen Jukka
Hi,

My shortish answer is that have a try with INCLUDE. If you had

STYLE
WIDTH 10
OUTLINEWIDTH 1
OUTLINECOLOR #24277A
END
STYLE
WIDTH 10
COLOR #4F719D
END

try changing it to 

STYLE
WIDTH 10
OUTLINEWIDTH 1
INCLUDE \styles\my_motorway_outline_color.txt
END
STYLE
WIDTH 10
INCLUDE \styles\my_motorway_line_color.txt
END

Next create and save the corresponding files my_motorway_outline_color.txt 
and my_motorway_line_color as 

OUTLINECOLOR #24277A
and
COLOR #4F719D

I have never tried that but it should work.

-Jukka Rahkonen-

Stephen Woodbridge wrote:

On 6/19/2012 2:15 AM, Matt McClelland wrote:
 Hi All

 Is is possible create and use variables within a mapfile?
 IE I want to store the colour of a road in one place, then reference
 that colour in the several style tags

 EG
 $road_colour_inside = 255 0 0 
 then later in the style tags be able to do
 color $road_colour_inside

 Or something similar.

 I am using v6.0

Short answer is no.
What I and others have done as a workaround to this is to use the cpp,
the C preprocessor.

EG

#define _ROAD_COLOR_INSIDE 255 0 0

COLOR _ROAD_COLOR_INSIDE


Then run the cpp, If you want to see a great example of this look at:

https://github.com/mapserver/basemaps

-Steve W
___
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] File size of generated PNG

2012-06-09 Thread Rahkonen Jukka
Hi,

Have you already tried quantize and compression options from 
http://www.mapserver.org/mapfile/outputformat.html? The png8 example is a 
good starting point.

How does your current png outputformat look?

-Jukka Rahkonen-

Jackey Cheung wrote:

 Some background first. I'm currently using MapServer + TileCache, and 
 planning to try out the new MapCache stuff. While using MS+TC, there was a 
 headache bothers me. Although not specific to MS, I'm not sure where to 
 start, so posting here in hope of getting some pointers.

 The problem is the file size of PNG images genereated by MS. They are 
 relatively much larger than we want. Now we have one lengthy process that 
 runs stuffs like pngcrush after seeded a cache with TC. This is a painfully 
 lengthy proccess, which takes months to finish due to the coverage of map.

 Just wondering, how to make MS generates minimum size PNG, or how to make TC 
 to slice images with minimum file size? Or is using post-process the only 
 way to achieve it? We are not talking about the absolute minimum, just want 
 to have the smallest size in average.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Run-time substitution

2012-06-09 Thread Rahkonen Jukka
Hi,

I fear that only ascii characters can be used for validation.  For us who need 
to use also non-ascii characters validation can be set to . which accepts 
everything, so no validation at all.

-Jukka Rahkonen-



Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] k#228;ytt#228;j#228;n 
scott...@free.fr [scott...@free.fr] puolesta
Lähetetty: 9. kesäkuuta 2012 12:22
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users]  Run-time substitution

Hi,

I would like to use run-time substitution in a mapfile to insert variables like 
%firstname%.
Is it necessary to specify validation block in the mapfile to use it ? It 
doesn't work without this validation pattern.
Second problem, how to specify this validation pattern to use characters with 
accent like 'é, à'. I try this example but it doesn't work :

VALIDATION
  'firstname' '^[a-zA-Zéà\-]+$'
END

Thanks a lot
___
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] ecw problems

2012-06-05 Thread Rahkonen Jukka
Hi,

First thing to try is to save what you believe is mapserv.exe on a disk and 
open it as a text file. Most probably it is some sort of error message.

-Jukka Rahkonen-


stefano parodi  wrote:

Hi all.

I'm setting up a new mapserver application on Windows 2008 Server with IIS 7.

I've download the win32 binaries from  
http://www.gisinternals.comhttp://www.gisinternals.com/ 
(release-1600-gdal-1-9-mapserver-6-0) that come with ECW support.

I'm able to use the ECW files with both gdalinfo and the shp2img utility app, 
tha produce a valid png image, but not with the mapserver cgi.

Mapserver CGI work well with both Oracle Spatial and PostGIS layers but simply 
return the mapserver executable (mapserv.exe) in case of a ECW layer.

Mapserver log doesn't report any error, here's an extract from the log:

[Fri Jun 01 16:27:17 2012].912000 CGI Request 1 on process 3872
[Fri Jun 01 16:27:17 2012].914000 msDrawMap(): rendering using outputformat 
named png (AGG/PNG).
[Fri Jun 01 16:27:17 2012].915000 msDrawMap(): WMS/WFS set-up and query, 0.001s
[Fri Jun 01 16:27:17 2012].94 msDrawRasterLayerLow(ORTOFOTO_2007): entering.
[Fri Jun 01 16:27:18 2012].56 msDrawMap(): Layer 5 (ORTOFOTO_2007), 0.645s
[Fri Jun 01 16:27:18 2012].56 msDrawMap(): Drawing Label Cache, 0.000s
[Fri Jun 01 16:27:18 2012].56 msDrawMap() total time: 0.647s
[Fri Jun 01 16:27:18 2012].906000 msSaveImage(stdout) total time: 0.346s
[Fri Jun 01 16:27:18 2012].906000 mapserv request processing time (msLoadMap 
not incl.): 0.994s
[Fri Jun 01 16:27:18 2012].906000 msFreeMap(): freeing map at 0057FA70.

Does someone has any clue about what's happening?

Thank you in advance.

--

Stefano Parodi.
Geospatial Developer at Datasiel S.p.A.

http://it.linkedin.com/in/stefanoparodi
http://twitter.com/fanenjihttps://twitter.com/#!/fanenji

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


Re: [mapserver-users] MapCache - A way to delete a whole zoom level ?

2012-06-04 Thread Rahkonen Jukka
Hi,

Just guessing without knowing anything about Berkeley DB, but if it is like 
other databases it would probably need vacuuming after delete before it really 
frees any disk space. And if you do mass delete and Berkeley DB behaves even 
closely similarly than SQLite, vacuuming may be extremely slow. In that case if 
might be faster to copy everything that has remained in the old database into a 
new database but with zillions of tiles that can take a long time too. But as I 
said, I am just guessing.

-Jukka Rahkonen-

Ludovic Gnemmi wrote:

 Hi Alan,
 I'm using Berkeley DB cache type so i haven't any directory.
 No errors. I'v just checked my bdb.db file which still has 
 the same size :(
 Ludovic
 
 
 
 
 --
 View this message in context: 
 http://osgeo-org.1560.n6.nabble.com/MapCache-A-way-to-delete-a
 -whole-zoom-level-tp4978491p4978968.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


Re: [mapserver-users] Restricted WMS access

2012-05-30 Thread Rahkonen Jukka
Hi,

For simple needs you can configure Apache to use http basic authentication and 
make it to require https.
http://httpd.apache.org/docs/2.0/howto/auth.html 

Setting basic authentication is simple but it does not give any real security 
without configuring Apache to use https instead of http. But anyway, Mapserver 
project does not give you tools for access control. Consider if https + basic 
authentication is enough for you. It may be if you do not need user roles and 
all it should do is either to give or deny access to Mapserver. Most simple way 
to do this is to put the cgi-bin directory behind passwords somehow like

Location /cgi-bin
Options None
Order allow,deny
Allow from all
  AuthType Basic
   AuthName Please log in
# (Following line optional)
AuthBasicProvider file
AuthUserFile c:/ms4w/apache/passwd/passwords
   Require user user1 user2 user3
/Location

As a result only user1, user2 and user3 can reach cgi-bin if they give correct 
password.

-Jukka Rahkonen-



Richard Suematsu
 
 I don't think MapServer does this itself. We've done this by 
 proxying MapServer behind tomcat and using a servlet filter 
 to validate the user.
 
 Rich
 
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
 Alberto Najera
 Sent: Monday, May 28, 2012 2:35 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Restricted WMS access
 
 Hello,
 
 Is it possible to have a restricted (user id and password 
 required) WMS service through Mapserver?  If so, how can this 
 be done?  I have searched the documentation but had not been 
 able to find if this is possible.
 
 Thank you
 
 Alberto Najera
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
 
 Confidentiality Notice: This e-mail message, including any 
 attachments, is for the sole use of the
 intended recipient(s) and may contain confidential and 
 privileged information. Unauthorized
 review, use, disclosure or distribution is prohibited. If you 
 are not the addressee indicated in this
 message kindly notify the sender by reply e-mail and destroy 
 all copies of the original message.
 
 ___
 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] On a wms-request force the add of a layer when another layer is requested

2012-05-29 Thread Rahkonen Jukka
Hi,

Layer2 should come always together with Layer1 If you put this line in Layer2 
definitions

 REQUIRES [Layer1]

Without testing I cannot guarantee that I remember it right.  For me the logic 
of keyword REQUIRES feels reversed because my brain says that Layer2 is 
rather required by Layer1. Perhaps native English speakers think it is OK and 
explicit like it is now.

-Jukka Rahkonen-




Andrea Peri  wrote:
Hi,
I'm using MapServer trunk version.

Thx to Stephen Woodbridge response,
(http://lists.osgeo.org/pipermail/mapserver-users/2012-May/072326.html)

I'm able to avoid the use of a single layer of a group.

Now I have another (perhaps) more complex question.

I need to realize a map file with a configuration that
when the Layer1 is ligh-on from the user (using a wms request), the map 
response will contains also another Layer2.

But I cannot use the group element because the two layers (Layer1 and layer2) 
are not in the same group.
They are in two distinct and different groups.

So I guess to allow this should be available a command like requires, but 
that force the light-on of Layer2 instead of deny the light-on of the layer1.

Is this available on mapServer ?

thx,

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

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


Re: [mapserver-users] optimize raster for mapserver - gdal geoTIFF source

2012-05-29 Thread Rahkonen Jukka
Hi,

1) I am using average and our users have not complaint. But it is simple to 
test, you can create external overviews with -ro switch and try all the 
alternatives within on hour or faster. It will be nice to read about your 
experience. Take some timings too.

2) Jpeg in tiff suits pretty well for Mapserver, both for the images and 
overviews.

3) Never heard about such processing directives, need to test some day.

-Jukka Rahkonen-



Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Mark Volz
Lähetetty: 29. toukokuuta 2012 17:18
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] optimize raster for mapserver - gdal geoTIFF source

Hello,

I added a GeoTIFF to one of my .map files.  When zoomed in the image appears 
fine.  When I zoom out the image appears grainy, especially when looking at 
dirt fields.  I assume the problem is that I built the overviews with the wrong 
resampling method when I built overviews with gdaladdo.

Question 1)  Does anyone have any recommendations for resampling air photos 
when I create an image using gdal? {nearest 
(default),average,gauss,cubic,average_mp,average_magphase,mode}

Question 2) I am using a compressed geoTIFF with built in overviews.  I am 
happy with this format as the file size is small, and the speed is fast.  I am 
wondering if this is format for having a fast raster while keeping a relatively 
small file.  Does anyone else have any other suggestions?

Question 3)  I have seen several Mapserver snippets of code concerning 
GDAL_FORCE_CACHING and GDAL_ONE_BIGREAD.   If I am not reprojecting my imagery 
which processing directive(s) would be better for a compressed GeoTIFF with 
overviews?


LAYER
...
  PROCESSING GDAL_FORCE_CACHING = YES
Or:
  PROCESSING GDAL_ONE_BIGREAD = YES
...
END # Air Photo Layer


Thank You

Mark Volz
GIS Specialist


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


Re: [mapserver-users] On a wms-request force the add of a layer when another layer is requested

2012-05-29 Thread Rahkonen Jukka
But doesn't it work so that layers=1 gives you layer1+layer2?  If you then 
move REQUIRES from Layer2 to Layer1 then layers=2 should give you 
layer2+layer1.

I will make a test tomorror.

-Jukka Rahkonen-



Andrea Peri  wrote:
Hi Jukka,

The REQUIRES element work this mode:

Layer2 is visible only when also Layer1 is in the request

So a request like this:

...layers=layer1,layer2

is visible layer1 + layer2

In a request like this:
...layers=layer2

nothing is visible.

Instead I need this other possibility:

on a request

...layers=layer2

the result visible is:

Layer1 + Layer2

Thx,

Andrea.

2012/5/29 Rahkonen Jukka 
jukka.rahko...@mmmtike.fimailto:jukka.rahko...@mmmtike.fi
Hi,

Layer2 should come always together with Layer1 If you put this line in Layer2 
definitions

 REQUIRES [Layer1]

Without testing I cannot guarantee that I remember it right.  For me the logic 
of keyword REQUIRES feels reversed because my brain says that Layer2 is 
rather required by Layer1. Perhaps native English speakers think it is OK and 
explicit like it is now.

-Jukka Rahkonen-




Andrea Peri  wrote:
Hi,
I'm using MapServer trunk version.

Thx to Stephen Woodbridge response,
(http://lists.osgeo.org/pipermail/mapserver-users/2012-May/072326.html)

I'm able to avoid the use of a single layer of a group.

Now I have another (perhaps) more complex question.

I need to realize a map file with a configuration that
when the Layer1 is ligh-on from the user (using a wms request), the map 
response will contains also another Layer2.

But I cannot use the group element because the two layers (Layer1 and layer2) 
are not in the same group.
They are in two distinct and different groups.

So I guess to allow this should be available a command like requires, but 
that force the light-on of Layer2 instead of deny the light-on of the layer1.

Is this available on mapServer ?

thx,

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




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

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


Re: [mapserver-users] Mapserver as cascading WMS for ArcGIS Rest?

2012-05-24 Thread Rahkonen Jukka
Hi,

It might be possible to do through GDAL WMS driver. I do not know what ArcGIS 
MapServer Tiles are but they sound somehow promising.

http://www.gdal.org/frmt_wms.html

-Jukka Rahkonen-

Alan Boudreault wrote:

 I don't think so. MapServer only allows wms cascading using the http/wms
 requests.

Alan

On 12-05-23 09:39 PM, Robert Sanson wrote:
 Is it possible to have a layer in Mapserver pulling data from a ArcGIS Rest 
 service?

 Thanks,

 Robert Sanson




 This email and any attachments are confidential and intended solely for the 
 addressee(s). If you are not the intended recipient, please notify us 
 immediately and then delete this email from your system.

 This message has been scanned for Malware and Viruses by Websense Hosted 
 Security.
 www.websense.com
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


--
Alan Boudreault
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] Mapserver as cascading WMS for ArcGIS Rest?

2012-05-24 Thread Rahkonen Jukka
Hi,

I found a sample mapfile and GDAL WMS driver configuration for OpenStreetMap 
tiles. Try what happens if you modify them for ArcGIS Rest.

Mapfile
=

LAYER
NAME OSM
STATUS ON
TYPE RASTER
DATA D:\Websites\OpenStreetMap\OSM.xml
PROJECTION
  init=EPSG:900913
END

END

Gdal-WMS config (OSM.xml)
===

GDAL_WMS
Service name=TMS

ServerUrlhttp://tile.openstreetmap.org/${z}/${x}/${y}.png/ServerUrl

/Service
DataWindow
UpperLeftX-20037508.34/UpperLeftX
UpperLeftY20037508.34/UpperLeftY
LowerRightX20037508.34/LowerRightX
LowerRightY-20037508.34/LowerRightY
TileLevel19/TileLevel
TileCountX1/TileCountX
TileCountY1/TileCountY
YOrigintop/YOrigin
/DataWindow
ProjectionEPSG:900913/Projection
BlockSizeX256/BlockSizeX
BlockSizeY256/BlockSizeY
BandsCount3/BandsCount
/GDAL_WMS


-Jukka Rahkonen-

Lähettäjä: Rahkonen Jukka
Lähetetty: 24. toukokuuta 2012 18:28
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] Mapserver as cascading WMS for ArcGIS Rest?

Hi,

It might be possible to do through GDAL WMS driver. I do not know what ArcGIS 
MapServer Tiles are but they sound somehow promising.

http://www.gdal.org/frmt_wms.html

-Jukka Rahkonen-

Alan Boudreault wrote:

 I don't think so. MapServer only allows wms cascading using the http/wms
 requests.

Alan

On 12-05-23 09:39 PM, Robert Sanson wrote:
 Is it possible to have a layer in Mapserver pulling data from a ArcGIS Rest 
 service?

 Thanks,

 Robert Sanson




 This email and any attachments are confidential and intended solely for the 
 addressee(s). If you are not the intended recipient, please notify us 
 immediately and then delete this email from your system.

 This message has been scanned for Malware and Viruses by Websense Hosted 
 Security.
 www.websense.com
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users


--
Alan Boudreault
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] convert projection from UTM to WGS84 using proj

2012-05-21 Thread Rahkonen Jukka
Hi,

Ogr2ogr is your tool for converting shapefiles. There must be something wrong 
in the predefined EPSG parameteres.  Give projections as +proj strings and you 
will have a full control over what happens. An example about conversion from 
EPSG:2393 into EPSG:3067

ogr2ogr -f ESRI Shapefile -s_srs +proj=tmerc +lat_0=0 +lon_0=27 +k=1 
+x_0=350 +y_0=0 +ellps=intl 
+towgs84=-96.0617,-82.4278,-121.7535,4.80107,0.34543,-1.37646,1.4964 +units=m 
-t_srs +proj=utm +zone=35 +ellps=GRS80 +units=m +towgs84=0,0,0,0 +no_defs 
target.shp original.shp

Mapserver takes the parameters from the text file named epsg and it is easy 
to edit by hand. However, ogr2ogr does not use that file. Therefore you did not 
see any difference after your edits.

-Jukka Rahkonen-

Murat Beyhan wrote:


 Hi,

 is cs2cs a tool for converting shape data and
are there any example for this purpose
actually I added +x_0=50. to ogr2ogr command but doesn't cahaged the
result :(


On Fri, 2012-05-18 at 14:00 +0200, Jørn Vegard Røsnes wrote:
 Hi,

 I lost your previous email, so this is just by memory.
 I'm not an projection expert, but here we go :-)

 Regarding 3dg offset:
 In your .prj file there is an false easting=50, so maybe it helps adding 
 +x_0=50.
 http://proj.maptools.org/gen_parms.html
 Se also +towgs84 in the same link and .prj file, and adjust accordingly.

 Maybe a shot in the dark because 3dg = 333958,33m (40 075,017km / 360dg).
 I think you're near the solution.

 See also
 http://spatialreference.org/
 http://spatialreference.org/ref/epsg/4230/

 kind regards
 Jørn-Vegard Røsnes

 - Original Message -
  From: Jørn Vegard Røsnes j...@spacetec.no
  To: Murat Beyhan bey...@deprem.gov.tr
  Cc: mapserver-users mapserver-users@lists.osgeo.org
  Sent: Wednesday, 16 May, 2012 11:21:22 AM
  Subject: Re: [mapserver-users] convert projection from UTM to WGS84 using 
  proj
 
  Hi,
  maybe something like this:
 
  ogr2ogr -s_srs epsg:4230 -t_srs epsg:4326  dest shapefile source
  shapefile
 
  http://www.gdal.org/ogr2ogr.html
 
  kind regards
  Jørn-Vegard Røsnes
 
  - Original Message -
   From: Murat Beyhan bey...@deprem.gov.tr
   To: mapserver-users mapserver-users@lists.osgeo.org
   Sent: Wednesday, 16 May, 2012 10:41:39 AM
   Subject: [mapserver-users] convert projection from UTM to WGS84
   using proj
  
   Dear friends,
   I'm sorry, I'm not good at GIS applications but I wondering about
   conversion between various projection or datum of the data files.
  
   data.shp data.shx data.dbf and data.prj files are available.
  
   shpdump data.shp gives following
  
   Shape:0 (ArcZ)  nVertices=4, nParts=1
 Bounds:(  513275.786, 4006041.761, 0, 0)
 to (  513345.812, 4006078.182, 0, 0)
(  513275.786, 4006078.182, 0, 0) Ring
(  513301.130, 4006064.906, 0, 0)
(  513321.636, 4006053.249, 0, 0)
(  513345.812, 4006041.761, 0, 0)
   ...
  
  
  
  
  
   data.prj as follows
  
   PROJCS[(UTM)Universal Transvers Merkator 3�,GEOGCS[EUROPEAN
   1950,DATUM[European_Datum_1950,SPHEROID[International,6378388.,297.],
   TOWGS84[-87.,-98.,-121.,0.,0.,0.,0.]],
   PRIMEM[Greenwich,0.],UNIT[Degree,0.01745329],AUTHORITY[EPSG,4230]],PROJECTION[TRANSVERSE_MERCATOR],
   PARAMETER[SCALE_FACTOR,1.],PARAMETER[CENTRAL_MERIDIAN,36.],PARAMETER[LATITUDE_OF_ORIGIN,0.],
   PARAMETER[FALSE_EASTING,50.],PARAMETER[FALSE_NORTHING,0.],UNIT[meter,1.]]
  
  
   using these data How to convert a file which is created using
   european_datum_1950 to WGS84 (World Geodetic System 1984)
   or where I have to start to understand these method of applications
   using PROJ4.
   Thanks
   muratB
  
  
   --
   This message has been scanned for viruses and
   dangerous content by MailScanner, and is
   believed to be clean.
  
   ___
   mapserver-users mailing list
   mapserver-users@lists.osgeo.org
   http://lists.osgeo.org/mailman/listinfo/mapserver-users
  
 

 CONFIDENTIALITY
 This e-mail and any attachment contain KONGSBERG information which may be
 proprietary, confidential or subject to export regulations, and is only meant
 for the intended recipient(s). Any disclosure, copying, distribution or use is
 prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in
 error, please delete it immediately from your system and notify the sender
 properly.





Murat BEYHAN

Jeofizik Y.Müh.
T.C. Başbakanlık
Afet ve Acil Durum Yönetimi Başkanlığı
Deprem Dairesi Başkanlığı
Eskişehir Yolu 12. Km.
Lodumlu/ANKARA
Tel: 312 2872680-1556
email:bey...@deprem.gov.tr




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org

Re: [mapserver-users] Force_2d does not exist

2012-05-12 Thread Rahkonen Jukka
Hi,

See http://trac.osgeo.org/mapserver/ticket/4186
and try legacy.sql as first aid.

-Jukka Rahkonen-

abhishek bansal wrote:


 Hello All,

 I am trying to display a simple shape file from postgis database but error 
 log keep giving me this.

[Sat May 12 15:47:53 2012].968000 CGI Request 1 on process 4748
[Sat May 12 15:47:53 2012].968000 msDrawMap(): WMS/WFS set-up and query, 0.000s
[Sat May 12 15:47:53 2012].995000 msPostGISLayerWhichShapes(): Query error. 
Error (ERROR:  function force_2d(geometry) does not exist
LINE 1: select encode(AsBinary(force_collection(force_2d(geom)),'N...
^
HINT:  No function matches the given name and argument types. You might need to 
add explicit type casts.
) executing query: select 
encode(AsBinary(force_collection(force_2d(geom)),'NDR'),'hex') as geom,gid 
from waterways where geom  GeomFromText('POLYGON((64.7695553856427 
8.082365,64.7695553856427 34.585531,100.121858614357 34.585531,100.121858614357 
8.082365,64.7695553856427 8.082365))',4326)
[Sat May 12 15:47:53 2012].996000 msDrawMap(): Image handling error. Failed to 
draw layer named 'waterways'.
[Sat May 12 15:47:53 2012].996000 msFreeMap(): freeing map at 01E5C1F8.

my postgres version is 9.0, gdal 1.8, i am using MS4W on windows 7

This shape file was working perfectly on PostGIS 1.5 but now its not working on 
version 2.
please help !!
--
Thanks  Regards,
Abhishek Bansal
http://abhishekbansal.miyuri.com
Jaypee Institute of Information Technology, Noida


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


Re: [mapserver-users] Re: polygon border artifacts

2012-05-10 Thread Rahkonen Jukka
Hi,

Perhaps PNG8 does not have enough many colours for showing the artifacts?

-Jukka Rahkonen-

Lime, Steve wrote:
 
 I'm unable to recreate the artifact with a simple test case 
 though so I'm not exactly sure what's going wrong. This mapfile
 defines a couple of overlapping polygons and there is no 
 rendering issue.
 
 MAP
   SIZE 512 512
 
   IMAGETYPE PNG8
 
   EXTENT 0 0 1000 1000
   IMAGECOLOR 255 0 0
 
   LAYER
  NAME test
  TYPE POLYGON
  STATUS DEFAULT
  FEATURE
POINTS 100 100 600 100 600 600 100 600 100 100 END
  END
  FEATURE
POINTS 300 70 800 70 800 800 300 800 300 70 END
  END
  CLASS
 STYLE
  COLOR 128 255 255
  # OUTLINECOLOR 0 0 0
END
  END # of class
   END # of layer
 END
 
 Online at: 
 http://maps1.dnr.state.mn.us/cgi-bin/mapserv60?map=/usr/local/
mapserver/apps/test/ocean/test4.mapmode=map
 Your original test case (+labels): 
 http://maps1.dnr.state.mn.us/cgi-bin/mapserv60?map=/usr/local/
mapserver/apps/test/ocean/test.mapmode=map
 
 Steve
 
 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of 
 Sven Geggus
 Sent: Wednesday, May 09, 2012 8:18 AM
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Re: polygon border artifacts
 
 Lime, Steve D (DNR) steve.l...@state.mn.us wrote:
 
  Do outlines fix things at all zoom levels?
 
 Not really. The Workaround which is working best for now is 
 using a very big polygon Overlap of 100Meters (Talking about 
 Google Mercator here) which I feel is way to much and an 
 outline with of 1. To completely get rid of artifacts I would 
 need an Outline width of 2, but this is not small enough IMO.
 
  What about the possibility of fixing the data?
 
 The bug is clearly with mapserver here, the data is fine IMO. 
 The tool used for generation of the tiles does already allow 
 for generation of arbitrary overlap widths 
 (https://github.com/joto/osmcoastline/).
 
  I mean, unioning the ocean polys into one, or better yet 
 deriving land 
  polygons from that data.
 
 No, unfortunately both of them are not an Option!
 
 1. Unioning the polygons:
 I presented a small shapefile just to demonstrate the problem.
 The original file I want to use contains ocean tiles covering 
 the whole world. So this has been spitted into tiles for a reason!
 
 2. Land polygons:
 These are also not an option because I want to use the ocean 
 tiles to cover inaccurate hillshading derived from srtm. This 
 will not work the other way round.
 
 The only thing I could imagine as a solution on the data side 
 would be the clipping of the hillshades by means of the polygon shape.
 
 Regards
 
 Sven
 
 --
 TCP/IP: telecommunication protocol for imbibing pilsners
(Man-page uubp(1C) on 
 Debian/GNU Linux)
 
 /me is giggls@ircnet, http://sven.gegg.us/ on the Web 
 ___
 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] multiple transparent colours

2012-05-09 Thread Rahkonen Jukka
Hi,

Perhaps you cannot literally set a colour as transparent in a tiff but for sure 
you can define a nodata value and then applications can make nodata pixels 
transparent.  That is the most normal way to do it with Mapserver and OFFSITE.  
I believe that Mapserver does not even care if tiff has a nodata tag set but 
you can give whatever value for offsite in a mapfile.

I have not played at all with alpha, but perhaps there is some way to give a 
list of pixel values which should be transparent and convert them all to a 
suitable alpha channel value.

-Jukka Rahkonen-

Fernando Norte  wrote:
Hi Christoph,

I try to understand, how did you set the specific color to transparent in a 
TIFF?
For raster you can set the level of transparency/opacity to the image not to a 
color.

Att,

Fernando Norte

Desenvolvedor SIGWeb

tel.(31) 2533.9900

cel.(31) 9119.8814

skype: fernandoglobalgeo
[http://globalgeo.com.br/assinaturas/logo.png]

Endereço: Alameda do Ingá, 88, 6º andar, Vale do Sereno

Nova Lima/MG - CEP: 34.000-000

www.globalgeo.com.brhttp://www.globalgeo.com.br/

O presente documento pode conter material confidencial ou seu sigilo é 
protegido por lei.
Quaisquer informações nele contida são destinadas exclusivamente ao(s) seu(s) 
destinatário(s)
não devendo em nenhuma hipótese ser repassado a terceiros.



2012/5/9 Christoph Schumacher 
christoph.schumac...@pbs-schumacher.demailto:christoph.schumac...@pbs-schumacher.de
Hello everybody,

I have a problem setting up my wms.
I have multiple tiff images that have different colours to be set up as 
transparaent.

With the offsite parameter I can  only  set one colour transparent.

Now my question is: Is there a way to make various colour transparent??


best wishes and thank you very much

christoph


___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto: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] multiple transparent colours

2012-05-09 Thread Rahkonen Jukka
Hi,

Just came into my mind that I have had problems with OFFSITE and tileindex. It 
makes the desired pixel value transparent with WMS but not with WCS. At least 
is was so in the past. I have not produced WCS lately. The workaround was to 
make a VRT file from with gdalbuildvrt and use that as input for the WCS 
mapfile.  That way nodata worked as it should and we got proper images out of 
WCS even with warped source images. I am not sure if I ever made a ticket from 
that. Perhaps not or then just nobody ever reacted.

So I suppose that OFFSITE AUTO happens already if you use VRT as input 
instead of tileindex. I have not seen big difference in speed between tileindex 
and VRT. However, I use normally tileindex system because I can open and manage 
the index files with GIS programs.

-Jukka Rahkonen-

Stephen Woodbridge wrote:
 Lähetetty: 9. toukokuuta 2012 16:45
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: Re: [mapserver-users] multiple transparent colours
 
 Frank,
 
 Would it be possible to make mapserver pick up the NODATA 
 value from the 
 gdal source file. Maybe using a keyword like OFFSITE AUTO. 
 This would 
 be especially useful when using a tileindex.
 
 Any thoughts on this? Should I create a ticket for something 
 like this?
 
 -Steve W
 
 On 5/9/2012 9:36 AM, Rahkonen Jukka wrote:
  Hi,
  Perhaps you cannot literally set a colour as transparent in 
 a tiff but
  for sure you can define a nodata value and then 
 applications can make
  nodata pixels transparent. That is the most normal way to do it with
  Mapserver and OFFSITE. I believe that Mapserver does not 
 even care if
  tiff has a nodata tag set but you can give whatever value 
 for offsite in
  a mapfile.
  I have not played at all with alpha, but perhaps there is 
 some way to
  give a list of pixel values which should be transparent and 
 convert them
  all to a suitable alpha channel value.
  -Jukka Rahkonen-
 
  Fernando Nortewrote:
  Hi Christoph,
 
  I try to understand, how did you set the specific color to
  transparent in a TIFF?
  For raster you can set the level of transparency/opacity to the
  image not to a color.
 
  Att,
 
  *Fernando Norte*
 
  Desenvolvedor SIGWeb
 
  tel.(31) 2533.9900
 
  cel.(31) 9119.8814
 
  skype: fernandoglobalgeo
 
  
 
  Endereço: Alameda do Ingá, 88, 6º andar, Vale do Sereno
 
  Nova Lima/MG - CEP: 34.000-000
 
  www.globalgeo.com.br http://www.globalgeo.com.br/
 
  O presente documento pode conter material confidencial ou seu
  sigilo é protegido por lei.
  Quaisquer informações nele contida são destinadas exclusivamente
  ao(s) seu(s) destinatário(s)
  não devendo em nenhuma hipótese ser repassado a terceiros.
 
 
 
 
  2012/5/9 Christoph Schumacher
  christoph.schumac...@pbs-schumacher.de
  mailto:christoph.schumac...@pbs-schumacher.de
 
  Hello everybody,
 
  I have a problem setting up my wms.
  I have multiple tiff images that have different 
 colours to be
  set up as transparaent.
 
  With the offsite parameter I can only set one 
 colour transparent.
 
  Now my question is: Is there a way to make various colour
  transparent??
 
 
  best wishes and thank you very much
 
  christoph
 
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  mailto: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 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] polygon border artifacts

2012-05-07 Thread Rahkonen Jukka
Hi,

Perhaps it is mostly an AGG issue because I think that Mapnik makes similar 
artifacts too.  See Corine landuse polygons here  
http://www.openstreetmap.org/?lat=60.820709lon=27.201925zoom=18layers=M
Sea areas do not have artifacts in OSM because sea is just background colour 
and is is not rendered at all from any data. But I do not know what Mapnik is 
doing with the land polygons. I cannot see artifacts between them in OMS maps.

-Jukka Rahkonen-

Lime, Steve D wrote:

 I tried locally and it's definitely a rendering artifact related to 
 anti-aliasing. Should an outline always be drawn?


 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf  Of Sven Geggus
 Sent: Friday, May 04, 2012 6:04 AM
 To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] polygon border artifacts

thomas bonfort thomas.bonf...@gmail.com wrote:

 with a recentish version of mapserver, try setting PROCESSING
 APPROXIMATION_SCALE=FULL
 on your ocean layer, to avoid feature simplification (it will slow
 down the rendering if the resolution of your data is much greater than
 the resolution of the requested map).

Hm. Looking at the sources 6.0.1 seems to be recent enough, but unfortunately 
this does not seem to fix the problem.

Regards

Sven

--
Den Rechtsstaat macht aus, dass Unschuldige wieder frei kommen (Wolfgang 
Schäuble)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web 
___
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] [TinyOWS] No PostGIS available in database

2012-05-02 Thread Rahkonen Jukka
Hi,

Increase the log_level to 8 and see from the log file which SQL queries TinyOWS 
is sending. You can test them with psql for comparison.
And I suppose it would be better to remove server=http://127.0.0.1/; because 
it is not used any more.

-Jukka Rahkonen-


Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Riccardo Gaeta
Lähetetty: 2. toukokuuta 2012 14:28
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] [TinyOWS] No PostGIS available in database

Hi all,
I'm using Tinyows 1.0.0 on redhat machine, postgresql 8.4 and postgis 1.5.3. 
I've checked all these on the database:
SELECT PostGIS_Lib_Version();
SELECT PostGIS_LibXML_Version();
SELECT PostGIS_GEOS_Version();
SELECT PostGIS_PROJ_Version();

And all seems to answer good.
But when I check the tinyows I get this error:

Content-Type: application/xml

?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='ConnectionFailed' locator='init_OWS'
  ows:ExceptionTextNo PostGIS available in database/ows:ExceptionText
 /ows:Exception
/ows:ExceptionReport

I've found an old post about this, date 28 Mar 2012 by Neelima Emmani, but with 
no rposecution.

Anyone could help me please?

Thanks to all,
Riccardo

P.S.: My tinyows.xml look like this:

tinyows online_resource=http://127.0.0.1/cgi-bin/tinyows;  
schema_dir=/usr/local/share/tinyows/schema/ log=/tmp/tinyows.log 
log_level=1 

  pg host=localhost user=user password=pwd dbname=dbname port=5432/

  metadata name=TinyOWS Server title=TinyOWS Server - Demo Service /

  layer retrievable=1
 queryable=1
 writable=0
 ns_prefix=tows
 ns_uri=http://127.0.0.1/;
 server=http://127.0.0.1/;
 name=mytable
 schema=myschema
 srid=900913,3785
 title=mylayer_tiny
 abstract=test
  /

/tinyows

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


Re: [mapserver-users] Re: pdf vector output in 6.02

2012-04-23 Thread Rahkonen Jukka
Hi,

PDF output works for me on Windows (MS4W) but I seem to have problems with 
Linux and Mapserver 6.0.1 also. This one gives HTTP 500 Internal error message 
and on the server side there seems to occur a segfault

http://188.64.1.61/cgi-bin/osm-mapserver_i?REQUEST=GetMapSERVICE=WMSVERSION=1.1.1WIDTH=469HEIGHT=354LAYERS=defaultTRANSPARENT=TRUEFORMAT=application/x-pdfBBOX=385063.18278820685,6671589.90189085,385461.47239845013,6671890.529869583SRS=EPSG:3067STYLES=

Same with SVG output. Png etc. works fine.  I have the same outputformat as you.

-Jukka Rahkonen-

frequens wrote:
 
 Weird.To add a little:
 With 5.6.5 I am able to get a vector pdf using mapserv or shp2img,
 mapscript dies without message.
 With 6.0.2 in all three cases (shp2img, mapserv, mapscript) the pdf
 gets created, yet contains only the rendered raster image of the
 vector layers.
 Why this fallback to raster rendering, is this something supposed to
 happen? All the underlying libraries are the same.
 
 Any hints?
 
 BR
 
 frequens
 
 On Fri, Apr 20, 2012 at 11:50 PM, frequens frequ...@gmail.com wrote:
  Hi all,
 
  I am having trouble producing a high quality vector output pdf with
  6.02 php mapscript (same trouble using shp2img)
  Cairo is enabled, the pdf file even gets created, but 
 contains only a
  raster image?
 
  Pdf output is enabled:
  IMAGETYPE PDF
   and
  OUTPUTFORMAT
   NAME pdf
   DRIVER CAIRO/PDF
   MIMETYPE application/x-pdf
   IMAGEMODE RGB
   EXTENSION pdf
  END
 
  Since the mapserver documentation on pdf creation is rather archaic,
  any help (a stripped version of someone's mapfile?) would be
  appreciated!
  My cairo library is rather old also: 1.4.10. Might this 
 have any influence?
 
  Many thanks in advance,
 
  frequens
 ___
 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] RE: Possible bug: Cairo/PDF output labels

2012-04-20 Thread Rahkonen Jukka
Hi,

I have never observed such an error with the my Super easy WMS server. You seem 
to be on Windows so it will be easy for you to make a test install and do some 
comparisons. Read document 
http://latuviitta.org/documents/Super_easy_WMS_server.pdf first.


-Jukka Rahkonen-


Frost89  wrote:

After a quick test it seems to work with a constant of 45.

This doesn't solve our prooblem though. The most important for us, is the ANGLE 
follow on the roads.

It draws bitmaps fine, its just the PDF that fails.
The build is made by Tamas Szekeres' from here: 
vbkto.dyndns.org/sdkhttp://vbkto.dyndns.org/sdk/.

The OUTPUTFORMAT is generated from code, but it would look like this:

OUTPUTFORMAT
  NAME WGK_PDF
  DRIVER CAIRO/PDF
  MIMETYPE application/x-pdf
  IMAGEMODE RGB
  EXTENSION pdf
  TRANSPARENT OFF
END


View this message in context: RE: Possible bug: Cairo/PDF output 
labelshttp://osgeo-org.1560.n6.nabble.com/Possible-bug-Cairo-PDF-output-labels-tp4894039p4901381.html
Sent from the Mapserver - User mailing list 
archivehttp://osgeo-org.1560.n6.nabble.com/Mapserver-User-f4226646.html at 
Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Trouble with spatialite layer

2012-04-19 Thread Rahkonen Jukka
Hi,

They are OSM ocean polygons? Can I have a small sample so I could have a try.

I have also seen that Mapserver (OGR?) is too strict with data errors, usually 
it would be better to skip the faulty geometries errors and continue rendering.

If you had Windows machine you could test fast Spatialite rendering with this 
Mapserver version
http://hip.latuviitta.org/tiedostot/Latuviitan_nopea_ms4w.zip (preconfigured to 
start at port 8060)
and this Spatialite database
http://hip.latuviitta.org/tiedostot/OSM_Suomi_20120213.zip
The latter should be dropped into \ms4w\data

Be sure to have GDAL 1.9 and Mapserver from trunk if you compile Mapserver 
yourself. Otherwise you will not understand how fast Mapserver is with 
Spatialite.

-Jukka Rahkonen-

Sven Geggus wrote:

 Hello,

 I'm trying to render a spatialite layer.

 The spatialite file itself seems to be correct, because it can be
 viewed in qgis and can be dumped using ogrinfo:

 $ogrinfo /home/sven/osm/topo/ocean.sqlite polygons -summary
 INFO: Open of `ocean.sqlite'
 using driver `SQLite' successful.

Layer name: polygons
Geometry: Polygon
Feature Count: 31672
Extent: (-20037508.342789, -20037508.342789) - (20037508.342789, 
20037508.342789)
Layer SRS WKT:
PROJCS[WGS 84 / Pseudo-Mercator,
   GEOGCS[WGS 84,
 DATUM[WGS_1984,
  SPHEROID[WGS 84,6378137,298.257223563,
AUTHORITY[EPSG,7030]],
AUTHORITY[EPSG,6326]],
PRIMEM[Greenwich,0,
AUTHORITY[EPSG,8901]],
UNIT[degree,0.0174532925199433,
AUTHORITY[EPSG,9122]],
AUTHORITY[EPSG,4326]],
UNIT[metre,1,
AUTHORITY[EPSG,9001]],
PROJECTION[Mercator_1SP],
PARAMETER[central_meridian,0],
PARAMETER[scale_factor,1],
PARAMETER[false_easting,0],
PARAMETER[false_northing,0],
EXTENSION[PROJ4,+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 
+x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs],
AUTHORITY[EPSG,3857],
AXIS[X,EAST],
AXIS[Y,NORTH]]
FID Column = OGC_FID
Geometry Column = GEOMETRY

However this will not render in mapserver (6.0.1) using the following
layer syntax:

LAYER
   DEBUG 9
   MAXSCALEDENOM  200
   MINSCALEDENOM 5000
   NAME meer
   TYPE POLYGON
   CONNECTIONTYPE ogr
   CONNECTION ocean.sqlite
   DATA select GEOMETRY from polygons
   STATUS ON
   GROUP default
   CLASS
 NAME ocean
 STYLE
   COLOR #579ae3
 END
   END
END

Because of the debug level I get the following Error message on any single 
feature:

msOGRFileNextShape: Rejecting feature (shapeid = X, tileid=0) of 
incompatible type for this layer (feature wkbType 0, layer type 2)

Any hint?

Sven

--
Ich fürchte mich nicht vor der Rückkehr der Faschisten in der Maske der
Faschisten, sondern vor der Rückkehr der Faschisten in der Maske der
Demokraten (Theodor W. Adorno)
/me is giggls@ircnet, http://sven.gegg.us/ on the Web
___
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] GetFeatureInfo results: Search returned no results

2012-04-10 Thread Rahkonen Jukka
Hi,

Perhaps you do not hit the points? See tolerance and toleranceunits in 
http://mapserver.org/mapfile/layer.html and set tolerance to quite many pixels 
for eliminating the possibility that your click just does not hit the target.

If that does not help I would have another try by copying the data from PostGIS 
ínto shapefile and dublicating the layer. If GetFeatureInfo works with 
shapefile then the trouble must have something to do with communication with 
PostGIS.

I wonder why do you have layer status=OFF instead of ON.

-Jukka Rahkonen-

Neelima Emmani  wrote:

Hi All,

I  am having a problem in retrieving getfeatureinfo. Result in the browser is

GetFeatureInfo results:  Search returned no results.

  *   Below is the url, i am accessing to get feature info -

http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/mh.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoLayers=mapsSRS=EPSG:4326BBOX=-83.61145,24.726875,-78.118286,27.196014X=529Y=228WIDTH=1000HEIGHT=500QUERY_LAYERS=maps


  *   Map file -

MAP
  NAME MH
  # Map image size
  SIZE 600 600
  UNITS meters
  EXTENT -86.731680 24.422064 -76.149835 30.424575
  FONTSET './etc/fonts.txt'
  SYMBOLSET './etc/symbols.txt'
  CONFIG PROJ_LIB C:/ms4w/httpd.d/proj/nad/

  PROJECTION
'proj=longlat'
'ellps=WGS84'
'towgs84=0,0,0,0,0,0,0'
'no_defs'
  END

  # Background color for the map canvas -- change as desired
  IMAGECOLOR 255 255 255
  IMAGEQUALITY 95
  IMAGETYPE agg

  OUTPUTFORMAT
NAME agg
DRIVER AGG/PNG
IMAGEMODE RGB
  END

  # Legend
  LEGEND
  IMAGECOLOR 255 255 255
STATUS ON
KEYSIZE 18 12
LABEL
  TYPE BITMAP
  SIZE MEDIUM
  COLOR 0 0 89
END
  END

  # Web interface definition. Only the template parameter
  # is required to display a map. See MapServer documentation
  WEB
# Set IMAGEPATH to the path where MapServer should
# write its output.
IMAGEPATH '/ms4w/tmp/ms_tmp/'

# Set IMAGEURL to the url that points to IMAGEPATH
# as defined in your web server configuration
IMAGEURL '/ms_tmp/'

# WMS server settings
METADATA
  'ows_title'   'MH'
  'ows_onlineresource'  
'http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/mh.map;'
  'ows_srs' 'EPSG:4326 EPSG:900913'
  'ows_enable_request'  'GetMap GetFeature GetFeatureInfo *'   ##necessary
  wms_feature_info_mime_type text/html
  wms_getfeatureinfo
http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/mh.map;
  wms_featureinfoformat text/html
  wfs_abstract   This text describes my WFS service.

END

#Scale range at which web interface will operate
# Template and header/footer settings
# Only the template parameter is required to display a map. See MapServer 
documentation
TEMPLATE 'template.html'
  END

  LAYER
NAME 'maps'
TYPE POINT
DUMP true
TEMPLATE  'template.html'
HEADER 'header.html'
FOOTER 'footer.html'
EXTENT -86.731680 24.422064 -76.149835 30.424575
CONNECTIONTYPE postgis
CONNECTION dbname='postgis' host=localhost port=5432 user='postgres' 
password='xx' sslmode=disable
DATA 'the_geom FROM maps USING UNIQUE id USING srid=4326'
FILTER ( geometrytype(the_geom) IN ('POINT','MULTIPOINT') )
METADATA
  'ows_title' 'maps'
  'wfs_typename' 'maps'
  'wfs_version' '1.0.0'
  'wfs_connectiontimeout' '60'
  'wfs_maxfeatures' '150'
  'wfs_filter' 'GET'
  'wms_include_items' 'all'
  'wfs_featureid' 'the_geom'
  'gml_include_items' 'all'

END
STATUS OFF
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'ellps=WGS84'
'towgs84=0,0,0,0,0,0,0'
'no_defs'
END
CLASS
   NAME 'maps'
   STYLE
 SYMBOL circle
 SIZE 7.0
 OUTLINECOLOR 0 0 0
 COLOR 170 211 227
   END
END
  END

END


Template.html --
!-- MapServer Template --
trtd[lrn]/tdtd[NAME]/tdtd[LAT]/tdtd[LON]/tdtd[ELEVATION]/tdtd[QUADNAME]/td/tr

header.html--
!-- MapServer Template --
font size+1bLayer: airports/b/fontp
table cellpadding=5 cellspacing=2 border=0
tr bgcolor=#CCtd 
bgcolor=#ffnbsp;/tdthname/ththlatitude/ththlongitude/ththaddress/ththdescription/th/tr

footer.html --
!-- MapServer Template --
/tablep

If any finds any fault with my code or anything that should be added to get 
feature info then please let me know.
Awaiting reply.

With Regards,
Neelima Emmani
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


VS: [mapserver-users] GetFeatureInfo results: Search returned no results

2012-04-10 Thread Rahkonen Jukka
Hi,

You do not want to use meters as tolerance units. Use pixels. The default is 3, 
try to increase it to 10 or something.
I did not find any point layer we use with GetFeatureInfo but this one works 
for polygon shapefile

LAYER
NAME Natura2000
STATUS ON
DATA \Data\natura06_poly
TYPE POLYGON
DUMP TRUE
UNITS METERS
SIZEUNITS PIXELS
TOLERANCE 3
HEADERd:\data\template\natura_header.html
TEMPLATE  d:\data\template\natura_template.html
FOOTERd:\data\template\natura_footer.html
TOLERANCEUNITS PIXELS
METADATA
  wms_include_items SPA,SCI,SCI2
  gml_include_items all
  wms_titleNatura2000
  wms_srs EPSG:2393 EPSG:3067 EPSG:4326
END
CLASS
NAME Natura2000
STYLE
COLOR 200 50 0
END
END
PROJECTION
  init=epsg:2393
END
  END

-Jukka Rahkonen-


Lähettäjä: Neelima Emmani [mailto:neelima.emm...@iictechnologies.com]
Lähetetty: 10. huhtikuuta 2012 12:12
Vastaanottaja: Rahkonen Jukka
Kopio: mapserver-users@lists.osgeo.org
Aihe: RE: [mapserver-users] GetFeatureInfo results: Search returned no results

Hi Rahkonen,

Tried giving Tolerance as 3 and it's units as meters , but it did not work. 
Also tried with the mapfile that has shapefile layer. The case is same.
Do you any other idea that can solve my problem. And if you have already worked 
on this can you please send a piece of code that works.

With Regards,
Neelima Emmani

From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] on behalf of Rahkonen Jukka 
[jukka.rahko...@mmmtike.fi]
Sent: Tuesday, April 10, 2012 12:29 PM
To: 'mapserver-users@lists.osgeo.org'
Subject: Re: [mapserver-users] GetFeatureInfo results: Search returned no 
results

Hi,

Perhaps you do not hit the points? See tolerance and toleranceunits in 
http://mapserver.org/mapfile/layer.html and set tolerance to quite many pixels 
for eliminating the possibility that your click just does not hit the target.

If that does not help I would have another try by copying the data from PostGIS 
ínto shapefile and dublicating the layer. If GetFeatureInfo works with 
shapefile then the trouble must have something to do with communication with 
PostGIS.

I wonder why do you have layer status=OFF instead of ON.

-Jukka Rahkonen-

Neelima Emmani  wrote:

Hi All,

I  am having a problem in retrieving getfeatureinfo. Result in the browser is

GetFeatureInfo results:  Search returned no results.

  *   Below is the url, i am accessing to get feature info -

http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/mh.mapSERVICE=WMSVERSION=1.1.1REQUEST=GetFeatureInfoLayers=mapsSRS=EPSG:4326BBOX=-83.61145,24.726875,-78.118286,27.196014X=529Y=228WIDTH=1000HEIGHT=500QUERY_LAYERS=maps


  *   Map file -

MAP
  NAME MH
  # Map image size
  SIZE 600 600
  UNITS meters
  EXTENT -86.731680 24.422064 -76.149835 30.424575
  FONTSET './etc/fonts.txt'
  SYMBOLSET './etc/symbols.txt'
  CONFIG PROJ_LIB C:/ms4w/httpd.d/proj/nad/

  PROJECTION
'proj=longlat'
'ellps=WGS84'
'towgs84=0,0,0,0,0,0,0'
'no_defs'
  END

  # Background color for the map canvas -- change as desired
  IMAGECOLOR 255 255 255
  IMAGEQUALITY 95
  IMAGETYPE agg

  OUTPUTFORMAT
NAME agg
DRIVER AGG/PNG
IMAGEMODE RGB
  END

  # Legend
  LEGEND
  IMAGECOLOR 255 255 255
STATUS ON
KEYSIZE 18 12
LABEL
  TYPE BITMAP
  SIZE MEDIUM
  COLOR 0 0 89
END
  END

  # Web interface definition. Only the template parameter
  # is required to display a map. See MapServer documentation
  WEB
# Set IMAGEPATH to the path where MapServer should
# write its output.
IMAGEPATH '/ms4w/tmp/ms_tmp/'

# Set IMAGEURL to the url that points to IMAGEPATH
# as defined in your web server configuration
IMAGEURL '/ms_tmp/'

# WMS server settings
METADATA
  'ows_title'   'MH'
  'ows_onlineresource'  
'http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/mh.map;'
  'ows_srs' 'EPSG:4326 EPSG:900913'
  'ows_enable_request'  'GetMap GetFeature GetFeatureInfo *'   ##necessary
  wms_feature_info_mime_type text/html
  wms_getfeatureinfo
http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/apps/openlayers-2.10/examples/mh.map;
  wms_featureinfoformat text/html
  wfs_abstract   This text describes my WFS service.

END

#Scale range at which web interface will operate
# Template and header/footer settings
# Only the template parameter is required to display a map. See MapServer 
documentation
TEMPLATE 'template.html'
  END

  LAYER
NAME 'maps'
TYPE POINT
DUMP true
TEMPLATE  'template.html'
HEADER 'header.html'
FOOTER 'footer.html'
EXTENT -86.731680 24.422064

Re: [mapserver-users] Validation error (but working!)

2012-04-02 Thread Rahkonen Jukka
Hi,

Have a try by using either upper case or lower case everywhere, it may help.

-Jukka Rahkonen-

Ben Madin wrote:

 
 Thanks Thomas,
 
 On 02/04/2012, at 4:55 PM, thomas bonfort wrote:
 
  if the validation fails, the default_xxx parameter is used instead,
  which is why no further errors are reported.
  
  what are you sending in your url for CCODE ?
 
 I should have included it - sorry ! The url normally looks like :
 
 maps/index.php?page=detailsccode=ESTmapcode=156year=2005su
bmit=submit
 
 'tis unfortunately a local system, and the size of the data 
 files somewhat limits my opportunity to put an example up somewhere.
 
 cheers
 
 Ben
 
 
 
  On Mon, Apr 2, 2012 at 08:39, Ben Madin 
 li...@remoteinformation.com.au wrote:
  G'day all,
  
  I've noticed that when I turn layer (going out as a WMS 
 service) debugging on, I am getting the messages shown below 
 (the layer is rendering as I expected, with only the names 
 for the selected country showing up).
  
  As I said, it is working, but what is wrong with my 
 patterns - I suspect other layers with the same validation 
 patterns would be giving the same errors, but I haven't 
 investigated them (as they are working)
  
  My confusion is :
  
  Either the validation is working (and the log message is wrong), or
  
  I am failing to understand how the validation is meant to work, or
  
  The validation is failing, but not being respected...
  
  any clues
  
  cheers
  
  Ben
  
  
  
  Log messages :
  
  [Mon Apr  2 14:29:40 2012].960342   runtime substitution - 
 Layer provnames, tag %CCODE%...
  [Mon Apr  2 14:29:40 2012].960725 msValidateParameter(): 
 Regular expression error. Parameter pattern validation failed.
  [Mon Apr  2 14:29:40 2012].960759 msValidateParameter(): 
 Regular expression error. Parameter pattern validation failed.
  [Mon Apr  2 14:29:40 2012].960775   runtime substitution - 
 Layer provnames, tag %YEAR%...
  [Mon Apr  2 14:29:40 2012].961353 msDrawMap(): rendering 
 using outputformat named AGG (AGG/PNG).
  [Mon Apr  2 14:29:40 2012].993291 msPostGISLayerIsOpen called.
  
  The layer has a validation pattern and defaults set:
  
 METADATA
 wms_title provnames
 wms_srs   EPSG:4326
 wms_group_title Administrative
 default_ccode AUS
 default_year  2010
 END
 VALIDATION
 'ccode' '[A-Z]{3}'
 'year' '20[0-1][0-9]'
 END
  
  and the query is :
  
 DATAgeom from (
 SELECT  recordid as gid, geom, name as pname
 FROMgeolayer
 WHERE validitystarts = '%YEAR%'
 AND (validityends = '%YEAR%' OR 
 validityends IS NULL)
 AND country LIKE '%CCODE%'
 ) AS foo USING UNIQUE gid USING SRID=4326
 TYPEANNOTATION
 labelmaxscaledenom 500
 LABELITEM pname
 CLASS
 LABEL
   COLOR  150 150 250
   OUTLINECOLOR 255 255 255
   FONT lucida
   TYPE truetype
   SIZE 9
   POSITION AUTO
   PARTIALS FALSE
END
 END
  
  
  and the version is :
  
  MapServer version 6.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG 
 OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO 
 SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER 
 SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT 
 SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS 
 SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
  
  ___
  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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Re: tinyows - installation problem

2012-03-28 Thread Rahkonen Jukka
Hi,

Error seems to say that TinyOWS finds the database but not PostGIS functions 
from it. What do you get by this SQL query from your database

select postgis_version()

-Jukka Rahkonen-

Neelima Emmani wrote:

 Hi all,
 I am trying to install tinyows in my ms4w package. First of all, I am new to 
 this tinyows.
 Process  followed :
 Took files from tinyows folder and kept them in their related paths like

  *   tinyows.exe under apachecgi-bin
  *   tinyows folder under ms4wapps
  *   httpd_tinyows under ms4whttpd.d and also set the tinyows environment in 
ms4w/Apache/conf/httpd.conf using statements from httpd_tinyows
  *   configuration - To configure made changes in the config.xml which is 
under tinyows folder. There i have my dbname , username, password and layername 
as follows -

tinyows online_resource=http://127.0.0.1/cgi-bin/tinyows.exe;
  schema_dir=C:/ms4w/apps/tinyows/schema/
  check_schema=0
  log=C:/ms4w/tmp/ms_tmp/tows.log
  log_level=1
  pg host=localhost user=postgres password=admin dbname=postgis 
port=5432/
  metadata name=TinyOWS Server
 title=TinyOWS Server - Demo Service /
  contact name=TinyOWS Server
 site=http://www.tinyows.org/;
 email=tinyows-us...@lists.maptools.org /
layer retrievable=1
writable=0
ns_prefix=tows
ns_uri=http://127.0.0.1/;
prefix=tows
server=http://127.0.0.1/;
schema=public
name=maps
title=maps /
/tinyows

  *   And then i opened cmd, went to the cgi-bin path and said tinyows --check. 
Then an exception is thrown as follows --

?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='ConnectionFailed' locator='init_OWS'
  ows:ExceptionTextNo PostGIS available in database/ows:ExceptionText
 /ows:Exception
/ows:ExceptionReport

Can anyone suggest where is the problem. Usernmae, password, dbname and 
hostname are correct . there is no mistake in that. Do i need top do any 
further settings. Please suugest me , if any idea.

Awaiting reply.

With Regards,
Neelima Emmani
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Image compression/performance

2012-03-22 Thread Rahkonen Jukka
Stephen Woodbridge wrote:
 
 On 3/21/2012 11:18 PM, Ian Walberg wrote:
  Folks,
 
  We are using tif format images and getting good map rendering
  performance.
 
  However the image file size could do with reducing a little.
 
  Anyone got experience of what compression options we have 
 that have the
  least impact on performance?
 
 My experience of working with USGS DOQQ satellite imagery in GeoTiff 
 files, was that the amount of compression really did not make a 
 significant reduction in size. We used internally tiled tiff 
 files with 
 overviews and had over 15TB of imagery online. There are 
 other formats 
 that provide higher compression rates like MrSID and others, but 
 depending on the format the behavior characteristics vary 
 greatly and I 
 do not have any recent stats or comparisons of size versus 
 performance 
 versus format.


Hi,

I took numbers from one of our orthoimage set

Uncompressed tiff files from the contractor
 667 File(s) 289 260 585 944 bytes

What we have on server disk after running
gdal_translate -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR
 667 File(s) 21 411 672 702 bytes

Reduction in size 93%.  Aerial images are used for on-screen interpretation and 
difference in quality is not visible with bare eyes. The rate of the JPEG 
compression can be adjusted but I have been happy with GDAL defaults. Overviews 
seem to add about 40-50% to JPEG compressed images. Those I have created 
probably as
gdaladdo -ro --config COMPRESS_OVERVIEW JPEG --config PHOTOMETRIC_OVERVIEW YCBCR
 --config INTERLEAVE_OVERVIEW PIXEL tiff.tif 2 4 8 16 32 64 

We have also JPEG2000 versions of the images but GDAL does not handle them as 
fast as JPEG-in-TIFF files. A few years ago the speed with JPEG2000 (with 
EWCJP2 and KAKJP2 drivers) was about the half of what we got with tiffs. Those 
numbers are nothing to rely on today because the software versions have changed 
so many times.  Because of the unfriendly licenses of the good JPEG2000 
libraries and because jpeg-in-tiff works so well I have not bothered to repeat 
the tests myself lately. Generally, for this kind of questions the best answer 
is achieved by making a well controlled test in your own environment. You can 
then publish your results and tell how you did the test so that others can 
check if something has been were poorly configured. For example it is not at 
all the same how JPEG2000 images have been compressed and JPEG compressed tiffs 
without tiles will for sure be a fiasco.

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


Re: [mapserver-users] Image compression/performance

2012-03-22 Thread Rahkonen Jukka
Hi,

Sure, I should have written the most suitable ready-to-use commands and not 
just put a mention later in the text where nobody reads it :)
 and JPEG compressed tiffs without tiles will for sure be a fiasco.

-Jukka-

 -Alkuperäinen viesti-
 Lähettäjä: thomas bonfort [mailto:thomas.bonf...@gmail.com] 
 Lähetetty: 22. maaliskuuta 2012 11:26
 Vastaanottaja: Rahkonen Jukka
 Kopio: mapserver-users@lists.osgeo.org
 Aihe: Re: [mapserver-users] Image compression/performance
 
 On Thu, Mar 22, 2012 at 09:03, Rahkonen Jukka 
 jukka.rahko...@mmmtike.fi wrote:
  Stephen Woodbridge wrote:
 
  On 3/21/2012 11:18 PM, Ian Walberg wrote:
   Folks,
  
   We are using tif format images and getting good map rendering
   performance.
  
   However the image file size could do with reducing a little.
  
   Anyone got experience of what compression options we have
  that have the
   least impact on performance?
 
  My experience of working with USGS DOQQ satellite imagery 
 in GeoTiff
  files, was that the amount of compression really did not make a
  significant reduction in size. We used internally tiled tiff
  files with
  overviews and had over 15TB of imagery online. There are
  other formats
  that provide higher compression rates like MrSID and others, but
  depending on the format the behavior characteristics vary
  greatly and I
  do not have any recent stats or comparisons of size versus
  performance
  versus format.
 
 
  Hi,
 
  I took numbers from one of our orthoimage set
 
  Uncompressed tiff files from the contractor
   667 File(s) 289 260 585 944 bytes
 
  What we have on server disk after running
  gdal_translate -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR
   667 File(s) 21 411 672 702 bytes
 
 I suspect you'll get superior access performance if you add -co
 TILED=yes to that command (and to your gdaladdo overview creation
 also).
 From my experience, tiled tiffs with jpeg compression and overviews
 was by far the best compromise between disk usage and access
 performance, provided the jpeg destructive compression isn't a
 showstopper for your particular application.
 
 --
 thomas
 
 
 
  Reduction in size 93%.  Aerial images are used for 
 on-screen interpretation and difference in quality is not 
 visible with bare eyes. The rate of the JPEG compression can 
 be adjusted but I have been happy with GDAL defaults. 
 Overviews seem to add about 40-50% to JPEG compressed images. 
 Those I have created probably as
  gdaladdo -ro --config COMPRESS_OVERVIEW JPEG --config 
 PHOTOMETRIC_OVERVIEW YCBCR
          --config INTERLEAVE_OVERVIEW PIXEL tiff.tif 2 4 8 16 32 64
 
  We have also JPEG2000 versions of the images but GDAL does 
 not handle them as fast as JPEG-in-TIFF files. A few years 
 ago the speed with JPEG2000 (with EWCJP2 and KAKJP2 drivers) 
 was about the half of what we got with tiffs. Those numbers 
 are nothing to rely on today because the software versions 
 have changed so many times.  Because of the unfriendly 
 licenses of the good JPEG2000 libraries and because 
 jpeg-in-tiff works so well I have not bothered to repeat the 
 tests myself lately. Generally, for this kind of questions 
 the best answer is achieved by making a well controlled test 
 in your own environment. You can then publish your results 
 and tell how you did the test so that others can check if 
 something has been were poorly configured. For example it is 
 not at all the same how JPEG2000 images have been compressed 
 and JPEG compressed tiffs without tiles will for sure be a fiasco.
 
  -Jukka Rahkonen-
   ___
  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] Re: Run-time Substitution and Raster file problem

2012-03-17 Thread Rahkonen Jukka
Hi,

Start from something simple and try to use DAT with tiff file with %file% and 
make it to work first. I am pretty sure that is will work. Perhaps there is 
some trouble with validation or something. If you do not have a luck with 
RASTER make a similar vector layer and see if you can change %file% with a 
variable then.

Here are snippets from working vector data examples

DATA way from (select (way),osm_id,tags from osm_polygon where (tags 
@'%tag%=%value%')) as foo using unique osm_id using srid=3067
VALIDATION
tag .
value .
END

With this setting user must give both tag and value parameters as 
tag=somethingvalue=else. Defaults can be given as

  default_tag amenity
  default_value toilets

-Jukka Rahkonen-

teknocreator wrote:

 Thomas,

 I'm not positive about what you wrote as I don't enclose the data string
with '*'.  The '*' in the *_validation_pattern I mentioned was just a
wildcard for the RTS variables that I use as we use a few in the DB call I
mentioned.

However, when I tried what you suggested, the parser tries to find a file
named ds_vis%fhour%.grb:

msDrawMap(): Image handling error. Failed to draw layer named 'mosaic'.
msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing
file '../grib/%file%' for layer 'mosaic'.

I've tried variations on this using the full path enclosed in quotes (which
throws the error above) and without (which throws the first one).  Then
tried this:

DATA  ../grib/%file%, (full path)/grib/%file% (with and without quotes),
thinking I should pass the whole file name.

I either get a parsing error for the '%' or it can't find the file because
the quotes cause the parser to look for a filename with '%' in it.

Dave M

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Run-time-Substitution-and-Raster-file-problem-tp4626749p4627796.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


Re: [mapserver-users] HI

2012-03-14 Thread Rahkonen Jukka
Hi,

Generally speaking QGis does not make valid mapfiles for Mapserver 6.0. It is 
using some no more supported styling definitions, it does not enable WMW 
requests in metadata etc. In your case you can have a try with default point 
style and leave just COLOR 0 0 255 left in the STYLE.

-Jukka Rahkonen-

Özgür Arslan  wrote:
Hi ALL,

I created  a map file by using QGIS and when I run on web page it gives this 
error: msDrawMap(): Image handling error. Failed to draw layer named 
'mjcities'. msLoadMSRasterBufferFromFile(): General error message. unable to 
open file /wwwroot/QGISMap/circle for reading

And file is below:

LAYER
NAME 'mjcities'
TYPE POINT
DUMP true
TEMPLATE fooOnlyForWMSGetFeatureInfo
  EXTENT -143.208273 40.594930 -50.461099 84.277660
DATA '../Data/mjcities.shp'
METADATA
  'ows_title' 'mjcities'
END
STATUS DEFAULT
TRANSPARENCY 100
PROJECTION
'proj=longlat'
'datum=WGS84'
'no_defs'
END
CLASS
   NAME 'mjcities'
   STYLE
 SYMBOL circle
 SIZE 7.0
 OUTLINECOLOR 0 0 0
 COLOR 0 0 255

Could you please help me about this issue? Thanks
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Fwd: Constraining WMS output type

2012-03-12 Thread Rahkonen Jukka
Hi,

I would have a try by defining a 8-bit png outputformat for img/png MIME type 
and using wms_getmap_formatlist in the metadata. How have you defined the png8 
now in your mapfile?

-Jukka Rahkonen-

Jan Hartmann wrote:


 Hi all,

 Is there a way to restrict the output types Mapserver offers as a WMS 
 service, e.g. only png 8-bits? In QGIS, when I choose png as output for a 
 WMS layer, I always get back png24 rasters, even if I explicitly specify png8 
 as outputtype in the mapfile.

 Not sure if this would be according to the WMS specs, though.
 Jan

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


Re: [mapserver-users] Fwd: Constraining WMS output type

2012-03-12 Thread Rahkonen Jukka
Hi,

Try with something like this and then using format=image/png in WMS GetMap 
should produce 8-bit png.


OUTPUTFORMAT
  NAME png8
  DRIVER AGG/PNG8
  MIMETYPE image/png
  IMAGEMODE RGB
  EXTENSION png
  FORMATOPTION QUANTIZE_FORCE=on
  FORMATOPTION QUANTIZE_COLORS=256
  FORMATOPTION GAMMA=0.75
END

-Jukka Rahkonen-


Lähettäjä: Jan Hartmann [j.l.h.hartm...@uva.nl]
Lähetetty: 12. maaliskuuta 2012 17:08
Vastaanottaja: Rahkonen Jukka
Kopio: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] Fwd: Constraining WMS output type

wms-getmap_formatlist works, but if I specify image/jpeg,image/png; 
mode=8bit,image/gif, qgis doesn't offer png as an output format anymore. It 
just doen't know 8-bits png. I saw they are working on it:

https://github.com/qgis/Quantum-GIS/commit/3a2c0e9872270fbd62d6bfcd9149d9d2a16c09cf

So, it's a qgis problem. The metadata item is nice to know, though.

Thanks,

Jan
On 03/12/2012 03:03 PM, Rahkonen Jukka wrote:

Hi,

I would have a try by defining a 8-bit png outputformat for img/png MIME type 
and using wms_getmap_formatlist in the metadata. How have you defined the png8 
now in your mapfile?

-Jukka Rahkonen-

Jan Hartmann wrote:




Hi all,


Is there a way to restrict the output types Mapserver offers as a WMS service, 
e.g. only png 8-bits? In QGIS, when I choose png as output for a WMS layer, I 
always get back png24 rasters, even if I explicitly specify png8 as outputtype 
in the mapfile.


Not sure if this would be according to the WMS specs, though.
Jan


___
mapserver-users mailing list
mapserver-users@lists.osgeo.orgmailto: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] Re: Image resample options

2012-03-08 Thread Rahkonen Jukka
Hi,

Tried with mapserver and processing from Yahoo search and first hit leads to

http://www.mapserver.org/input/raster.html#special-processing-directives
http://www.mapserver.org/development/rfc/ms-rfc-4.html#rfc4

-Jukka Rahkonen-



 Ian Walberg wrote:

 Hello,

 Where can we find a list of the available resample types?

PROCESSING RESAMPLE=BILINEAR

Thanks

Ian
___
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] Base map data for WMS

2012-03-07 Thread Rahkonen Jukka
Hi,

A bit outdated but still super easy way for having a try on Windows
http://latuviitta.org/documents/Super_easy_WMS_server.pdf

Package is combined from MS4W and mapfiles by Thomas Bonfort. Package will be 
much better when everything is ready for updating it to contain super fast 
Spatialite support (exists already in GDAL trunk and seems to make Spatilite 
faster that PostGIS), preconfigured MapCache and georeferenced PDF output.

-Jukka Rahkonen-



 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta 
 thomas bonfort
 Lähetetty: 7. maaliskuuta 2012 11:16
 Vastaanottaja: Reinoud Bokhorst
 Kopio: mapserver-users@lists.osgeo.org
 Aihe: Re: [mapserver-users] Base map data for WMS
 
 Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you
 have detailed instructions for how to setup mapserver as a wms server
 for openstreetmap imagery.
 As the basemap rendering isn't specially light on server ressources I
 would recommend using a tile cache and not expose the wms service
 directly. Mapcache can assemble the cached tiles to serve complete wms
 getmap requests should some of your clients not support tiled requests
 (see http://www2.terriscope.fr/geocache/demo/wms for a possible
 rendering style, you can select the singletile layer for untiled
 getmap requests).
 
 --
 thomas
 
 On Wed, Mar 7, 2012 at 09:29, Reinoud Bokhorst
 reinoud.bokho...@bmtargoss.com wrote:
  Dear list,
 
  Until now I have been using the public Demis, Metacarta, Google Maps
  services as base map providers in my WMS clients. Since our 
 company creates
  commercial services, I don't want to be dependent any 
 longer on those
  because:
  - availability is never guaranteed
  - can not use those off-line
  - license restrictions a la Google Maps prohibits use for 
 closed services
 
  So I am keen to start hosting our own base map WMS server 
 containing a good
  resolution world map to start with. Later local maps for 
 smaller areas can
  be added. The world map should be something like Demis with layers
  coastlines, borders, bathymetry, topography, place names, 
 inland waters,
  main roads and place names.
 
  I could buy a WMS server including world map data, e.g. 
 Demis or ArcIMS but
  I don't really want that. We already use GeoServer and 
 MapServer and would
  rather add world map data. So I could:
  1. buy world map data
  2. create world map myself by assembling freely available 
 data (gshhs,
  etopo, vmap, srtm, ...).
 
  I am afraid (2) will cost a lot of time. Regarding (1) I 
 already found world
  data for sale from DM Solutions and ThinkGeo, are there 
 others? Which is
  better?
 
  There is surprisingly little information on the net about 
 this issue, I
  guess most people are either using public services or using 
 commercial
  packages.
 
  My question is a general one: I wondered if anybody has 
 encountered the same
  problem and what solution has been chosen, what data 
 sources when creating a
  map yourself, other commercial data, what data is better 
 than other, etc.
  All comments welcome!
 
  Reinoud Bokhorst
 
 
 
 
 
  ___
  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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] WMS server layer trouble

2012-03-06 Thread Rahkonen Jukka
Hi,

Look at the GetCapabilities and see if Mapserver is advertising the layer 
extents in reasonable way. I have a feeling that QGis is trying to zoom 
automatically to the layer extents by taking the layer extents and some default 
resolution and calculating WIDTH and HEIGHT by those too. If they are wrong in 
the GetCapabilities there can be troubles.
For example the layer fiumi_02 shows now quite a large extents,

Fiumi II, III, IV ordine fiumi_02 epsg:32632 -1.47304E7 -9997960.0 50.0 
9997960.0

OpenJUMP shows the layers better because it does not generate oversized WIDTH 
and HEIGHT.
Consider adding wms_bbox_extended true. It will help clients like OpenJUMP 
to zoom to layer extents with any supported srsName.
It could be easist and most safe to set the correct layer extenst manually in 
metadata.


-Jukka Rahkonen-


Raffaele Morelli  wrote:
Hi,

I can't get it working as desired and can't understand why.
Here is my wms online resource: 
http://cen.isprambiente.it/cgi-bin/rf_mapserv?SERVICE=WMSVERSION=1.1.1REQUEST=GetCapabilities

If you try to load the layer sostegni in QGis you should get an image size 
error, selecting the CEN-RF layer works but loads all the layer in the 
mapfile.
The only layer I can import in QGis is the Data Elevation Model.

I would like my wms server to act like
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1.1REQUEST=GetCapabilities

Any hints?
regards
-r

--
L'unica speranza di catarsi, ammesso che ne esista una, resta affidata 
all'istinto di ribellione, alla rivolta non isterilita in progetti, alla 
protesta violenta e viscerale.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] RE: WMS for netcdf [SEC=UNCLASSIFIED]

2012-03-05 Thread Rahkonen Jukka
Hi,

It would be nice to be able to change some processing directives through 
variable substitution. Multichannel satellite images are one obvious use case. 
I have predefined a few most common settings for 7-channel Landsat images as 
separate mapfiles but it would more convenient and flexible to let users select 
the BANDS, SCALE and LUT they want. It would be useful also when some other 
settings would suit better for printing than those adjusted for on-screen use.

Would others find it reasonable to add PROCESSING to the items which support 
variable substitution?

-Jukka Rahkonen-

teknocreator wrote:

Kathleen,

I've searched through the lists and on the web for an answer to your issue
as I have it too only with GRIB data.  The MapServer docs seem to indicate
that variable substitution won't work for the PROCESSING directive.
Therefore I tried several variations Changing map file parameters via a
form or a URL.  What should've worked here considering that part of the
documentation is to add this to the GetMap request string:

map[layer].processing[0]=BANDS=01

because it was the first PROCESSING directive for my layer and it needs a
string for the directive.  But, I received an msloadLayer error.  I tried a
few variations but all ended up with the same error.  I've seen folks have a
similar issue with this in the MS Users list with no solution at present.

While what Puneet wrote may be a solution for you and possibly our GRIB data
as well, it seems like a much more complicated way just to get at a
particular band in the file.  I do see why this has been done as NetCDF does
come in many flavors and there's the possibility of 4 dimensions in the
file.  There are many links on using WCS with NetCDF, a good number coming
from UCAR.

Still, this looks like a possible code problem where the ability to change
map file parameter via a URL does not work in this case or else the ability
to change BANDS needs to be added to variable substitution.

Hopefully, someone from MapServer can help here.  Looks like I'm going to be
investigating WCS, though.  I'll definitely be checking back on this one.

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/WMS-for-netcdf-SEC-UNCLASSIFIED-tp4519496p4545262.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] RGB imagemode creates RGBA tiffs

2012-03-03 Thread Rahkonen Jukka
Hi,

I have defined a GeoTIFF outputformat as

OUTPUTFORMAT
  NAME GTiff
  DRIVER GDAL/GTiff
  MIMETYPE image/gtiff
  IMAGEMODE RGB
  EXTENSION gtif
END

However, the resulting tiff contains also alpha channel:

Band 1 Block=2120x1 Type=Byte, ColorInterp=Red
  Mask Flags: PER_DATASET ALPHA
Band 2 Block=2120x1 Type=Byte, ColorInterp=Green
  Mask Flags: PER_DATASET ALPHA
Band 3 Block=2120x1 Type=Byte, ColorInterp=Blue
  Mask Flags: PER_DATASET ALPHA
Band 4 Block=2120x1 Type=Byte, ColorInterp=Alpha

Is there something wrong in my outputformat?  Output comes from Mapserver 6.0 
(Ubuntu).

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


Re: [mapserver-users] WFS version and axis order

2012-03-01 Thread Rahkonen Jukka
Hi,

Unfortunately axis order in WFS 1.1.0 (or in GML3) is complicated.


 I need a second option so I can respond to a customer regarding their 
 concerns of using our  WFS services.  Their concern is mainly confidence and 
 the ability of moving forward.  As you  know in the WFS version 1.1 the axis 
 order switched.

Too genaralised to say so. There are systems which have officially 
easting-northing axis order, like WGS84 UTM zones, and for them WFS 1.0.0 and 
1.1.0 must behave similarly.


 These are their assumptions:

 * WFS v 1.0 will serve data in lon, lat order
 * WFS v 1.1 can serve data in lon, lat and lat, lon as well

The meaning of the standard is No, each projection has one fixed, official 
and correct axis order. In real life WFS 1.1.0 servers may behave differently.  
For example Geoserver, TinyOWS and probably deegree are using the WFS 1.0.0 
style axis order if srsName is given in short format EPSG:4326.  When using 
long format srsname=urn:ogc:def:crs:EPSG::4326 servers are trying to use the 
correct order.


 MapServer-Users, Is there way in WFS v1.1 to maintain the lon,lat order for 
 every projection, client request parameter or server configuration?


I think that if you ask for GML2 outputformat then the response should be 
lon-lat (easting-northing) always.


 * We need a way to clearly define how to build BBOX for request (lat,lon or 
 lon,lat) and in what order will be the response – I think that  order should 
 be consistent for request and response.

 MapServer-Users, the last bullet refers to the relationship between BBOX and 
 the WFS versions.   Please confirm BBOX will always be of the contruct: 
 minx,miny,maxx,maxy


Yes, but the meaning of x and y varies :)  Order in BBOX axis follows the 
official definition of the projection. In addition, according to the WFS 1.1.0 
standard BBOX=minx,miny,maxx,maxy defaults to EPSG:4326 projection and not to 
the default output projection. For being unambiguous for all WFS servers with 
WFS 1.1.0 the BBOX should be given with five parameters where the last one 
defines the projection of BBOX. However, not all WFS servers honour these rules 
or even understand the fifth BBOX parameter.  It gets a bit more complicated 
when OGC Filters are used instead of Key-Value pair BBOX because then the BBOX 
defaults to the default output projection. Better to give the exact srsName 
always with Filters too.


 Thanks in advance,

I promise you and your clients will get mad with this.

-Jukka Rahkonen-
 Randy

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


Re: [mapserver-users] WMS request not enabled

2012-02-28 Thread Rahkonen Jukka
Hi,

There is nothing wrong in your mapfile, only that you do not have any layers in 
it. I could repeat the behaviour by removing all the layers from my working 
mapfiles.

The error message in misleading.  I do not know what message there should be if 
there are no layers in the service but it is otherwise OK. However, something 
tells me that this might have corrected in a trunk already.

-Jukka Rahkonen-

 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta 
 Luís de Sousa
 Lähetetty: 28. helmikuuta 2012 13:08
 Vastaanottaja: mapserver-users@lists.osgeo.org
 Aihe: [mapserver-users] WMS request not enabled
 
 Dear all,
 
 Below goes a map file generated by PyWPS. This file is returning the
 following error on a GetCapabilities request:
 
 msWMSGetCapabilities(): WMS server error. WMS request not enabled.
 Check wms/ows_enable_request settings.
 
 There is a good deal of information on this list about this error,
 because when MapServer 6.0 was introduced many people didn't have the
 ows_enable_request parameter set. But PyWPS is correctly setting this
 parameter, so there's no apparent reason for this error to come up.
 
 What else can be causing this? Anything I can do to provide 
 more information?
 
 Thank you and regards,
 
 Luís
 
 #
 
 MAP
   CONFIG MS_ERRORFILE stderr
   DEBUG 5
   EXTENT -180 -90 180 90
   IMAGETYPE png
   NAME buffer-5989-tmpodARQz
   SIZE -1 -1
   STATUS ON
   UNITS METERS
 
   OUTPUTFORMAT
 NAME png
 MIMETYPE image/png
 DRIVER AGG/PNG
 EXTENSION png
 IMAGEMODE RGB
 TRANSPARENT FALSE
   END # OUTPUTFORMAT
 
   PROJECTION
 init=epsg:4326
   END # PROJECTION
   LEGEND
 KEYSIZE 20 10
 KEYSPACING 5 5
 LABEL
   SIZE MEDIUM
   OFFSET 0 0
   SHADOWSIZE 1 1
   TYPE BITMAP
 END # LABEL
 STATUS OFF
   END # LEGEND
 
   QUERYMAP
 SIZE -1 -1
 STATUS OFF
 STYLE HILITE
   END # QUERYMAP
 
   SCALEBAR
 IMAGECOLOR 255 255 255
 INTERVALS 4
 LABEL
   SIZE MEDIUM
   OFFSET 0 0
   SHADOWSIZE 1 1
   TYPE BITMAP
 END # LABEL
 SIZE 200 3
 STATUS OFF
 UNITS MILES
   END # SCALEBAR
 
   WEB
 METADATA
   wcs_label Buffer process using OGR
   wms_onlineresource
 http://localhost/cgi-bin/mapserv?map=/var/www/wps/wpsoutputs/
pywps-0d1bce24-5d36-11e1-99d2-0021cc5dbe3e.map
   ows_country   eu
   ows_keywordlist   GRASS,GIS,WPS
   wms_abstract  See http://pywps.wald.intevation.org and
 http://www.opengeospatial.org/standards/wps;
   ows_city  City
   ows_contactperson Your Name
   ows_contactposition   Your Position
   ows_role  Your role
   ows_enable_request*
   ows_contactorganization   Your Company Name
   ows_accessconstraints none
   ows_title PyWPS Server
   ows_fees  None
   wcs_abstract  See http://pywps.wald.intevation.org and
 http://www.opengeospatial.org/standards/wps;
   ows_contactelectronicmailaddress  lo...@server.org
   wfs_abstract  See http://pywps.wald.intevation.org and
 http://www.opengeospatial.org/standards/wps;
   ows_address   Street
   ows_postcode  000 00
 END # METADATA
   END # WEB
 
 END # MAP
 ___
 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] UTF-8 right to left text

2012-02-26 Thread Rahkonen Jukka
Hi,

Did you know that the fresh Spatialite-gui (v. 3.0.1) can import data directly 
from Excel?

-Jukka Rahkonen-

 Ian Walberg wrote:

 Steve,

 Many thanks for getting back to me.

 We have built with that version of fridibi and do get some text labels
displaying correctly.

 The source data is from an excel spread sheet which we export to CSV and
import into the SQLite DB.

 The plan tomorrow is to find a couple of good and bad labels and follow
these through to see if we can find where there are differences, I
looked last week at the hex codes for a good and bad name but did not
come to any clear confusion.

 Does fribidi need  RTL code to display the text correctly? Do you know
how to decode that from the hex?

 Regards

Ian

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen
Woodbridge
Sent: Sunday, February 26, 2012 8:52 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] UTF-8 right to left text

On 2/26/2012 10:39 PM, Ian Walberg wrote:
 Hello lists,

 We cannot get all our Arabic text labels to display correctly, it
 appears that the incorrectly rendered text is not being drawn right to

 left. Some work and others do not.

 Our assumption is that there are some non displaying codes we are
 missing but we do not know enough yet to work out if this is the case.

 The data is in an sqlite database using an OGR connection.

 Any ideas or experience that you can share would be fabulous.

Ian,

You need the follow pieces to get this to work:

1. make sure you have built mapserver with fribidi-0.19.2 2. you need a
ttf that supports the character set you are using
- I always make sure my data is in UTF8
- and I have a unicode arial.ttf font from Windows 3. make sure your
LABEL block has ENCODING UTF8 in it
- assuming your data is in UTF8

On Linux you can do:
$ dbfdump myshapefile.dbf  aaa
$ file aaa

and it will tell you what the encoding is.

Issues that I have run into are:

1. data with mixed utf8 and other encodings like Window-1256 or
ISO-8859-6 2. In UTF8 data there are a lot of glyphs that are connecting
characters or non printing characters and many fonts do not have glyphs
defined for these characters which typically causes a square box to be
displayed.

-Steve W
___
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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


<    3   4   5   6   7   8   9   10   11   12   >