Re: [mapserver-users] WFS with several SRS?

2011-11-08 Thread Yewondwossen ASSEFA

Hi,

 Multiple SRS is only valid for wfs 1.1 and higher.
 The support of it in  MapServer was added only for MapServer 6.0 [1].
Hope this helps.

[1] http://trac.osgeo.org/mapserver/ticket/3227

best regards,

Y. Assefa


On 11-11-08 05:37 AM, sulu wrote:

I would like to offer a WFS-Service which supports several different
projections.

("WFS_SRS""EPSG:31254 EPSG:3785 EPSG:4326 EPSG:31284 EPSG:32632
EPSG:25832 EPSG:21781")

My mapserver is of version 5.6.6 on a Centos-Box

MapServer version 5.6.6 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR
INPUT=GDAL INPUT=SHAPEFILE


As expected the default SRS is 31254.

A GetFeature-Call with this EPSG works just fine:
Example:
http://vogis.cnv.at/cgi-bin/mapserv?map=wfs.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=nutzungs-grenzen&SRSNAME=epsg:31254

But if i try a other SRS from the WFS_SRS (e.g. 4326) above i receive:
...
msWFSGetFeature(): WFS server error. Invalid GetFeature Request: SRSNAME
value should be valid for all the TYPENAMES. Please check the capabilities
and reformulate your request.
...

As you can see in the Mapfile below, i avoided specifying any projection in
the layer section so i have to wonder what i am doing wrong?

Thanks
Andy


MAPFILE


MAP

EXTENT -7 18 5000 28#for EPSG:31254
FONTSET./fontset
IMAGETYPE  png
MAXSIZE8000
RESOLUTION 96
SYMBOLSET  ./etc/symbol/symbols.sym


# Debugging
CONFIG "MS_ERRORFILE" "/tmp/mapserver_wfs_error.txt"
DEBUG 5

WEB

METADATA
"WFS_TITLE"  "DKM Vorarlberg"
"WFS_SRS""EPSG:31254 EPSG:3785 EPSG:4326 
EPSG:31284
EPSG:32632 EPSG:25832 EPSG:21781"
"WFS_ABSTRACT"   "Geodaten des Bundeslandes Vorarlberg 
als OGC-WFS"

"WMS_SRS""EPSG:4326 EPSG:31254 EPSG:31284 
EPSG:32632
EPSG:25832 EPSG:21781"
"WMS_TITLE"  "DKM Vorarlberg"
"WMS_ABSTRACT""Geodaten des Bundeslandes Vorarlberg 
als OGC-WMS"
#"WMS_ONLINERESOURCE"
"http://vogis.cnv.at/mapserver/mapserv?map=wfs.map&version=1.1.0";
"WMS_FORMATLIST"  
"image/gif,image/png,image/jpeg,image/tif"
"WMS_FEATURE_INFO_MIME_TYPE" "text/html"

END
END

OUTPUTFORMAT
NAME jpg
DRIVER "GDAL/JPEG"
MIMETYPE "image/jpeg"
IMAGEMODE RGB
EXTENSION "jpg"
END

OUTPUTFORMAT
NAME jpg
DRIVER "GDAL/JPEG"
MIMETYPE "image/jpg"
IMAGEMODE RGB
EXTENSION "jpg"
END

OUTPUTFORMAT
NAME gif
DRIVER "GD/GIF"
MIMETYPE "image/gif"
IMAGEMODE PC256
EXTENSION "gif"
END

OUTPUTFORMAT
NAME png
# Driver AGG/PNG weil der GDAL-Driver Probleme bei der 
Transparenz hat
DRIVER "AGG/PNG"
MIMETYPE "image/png"
IMAGEMODE RGBA
EXTENSION "png"
TRANSPARENT ON
FORMATOPTION "INTERLACE=OFF"
END

OUTPUTFORMAT
NAME wbmp
DRIVER "GD/WBMP"
MIMETYPE "image/wbmp"
IMAGEMODE PC256
EXTENSION "wbmp"
END

OUTPUTFORMAT
NAME GTiff
DRIVER "GDAL/GTiff"
MIMETYPE "image/tiff"
IMAGEMODE RGB
EXTENSION "tif"
END


# Start of LAYER DEFINITIONS 
-

# --
# Layer: Nutzungs-Grenzen
# --
LAYER
NAME "nutzungs-grenzen"
#GROUP "nutzungs-grenzen"
METADATA
'OWS_TITLE' 'Nutzungs-Grenzen'
"WFS_TITLE" "Nutzungs-Grenzen"

"GML_INCLUDE_ITEMS"  "all"
"GML_FEATUREID"  "ID"

END

MAXFEATURES 1000
EXTENT  -7 18 -1000 28  #for EPSG:31254

 

Re: [mapserver-users] parameter for size tags in SLD

2011-10-28 Thread Yewondwossen ASSEFA

Hi Yves,

 I opened a ticket [1] regarding the support of both Literal and non 
literal use for the size parameter. I have committed a fix in trunk. If  
possible please cc your self in that trac bug comments.


best regards,

Y Assefa

[1]: http://trac.osgeo.org/mapserver/ticket/4065

On 11-10-28 08:01 AM, Yves Jacolin wrote:

Hello,

I have a SLD with the following:


cross





12

...


If I change

12

to
12   
it is not working anymore. OGC standards gives some example with the former
structure.

Does MapServer support this structure?

Thanks,

Y.



--

Assefa Yewondwossen
Software Analyst

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS Spatial Filter Problem

2011-08-08 Thread Yewondwossen Assefa

Bryan,

 Is it possible for you to provide a sample data/map/request that I can 
try that would reproduce your problems? If that is the case, please send 
it to me directly and I will test it with the latest MapServer and 
possibly provide answers.


regards,

Assefa


On 08/08/2011 10:58 AM, Bryan Hempen wrote:

Hi there!

These are things that I've tried in the meantime:




- Manually sending the request to the server, but without
different results compared to using OpenLayers functions. Also
trying to force the usage of the proxy.cgi by containing it in the
URL, but didn't bring up different results.

-
Thought about the solution as suggested by the John, but
substituting a Polygon with a BBOX only works for rectangular
Polygons! I need to be able to specify arbitrary
Polygons/Shapes. I am sure the solution proposed by him will
work,

 because it will be just a request just like the one that
already works.

-
Thought about trying a newer version of the MapServer.
However, I run is the newest ms4w on my local machone and I
remember that I had the same problem a few weeks ago.
Furthermore, John had the same problem with MapServer 6.0.0,

and since then nothing changed about WFS or filter encoding
according to the release announcements.

-
Thought sending a GET request instead of a POST request could
solve the problem! They provided examples in the documentation
with links, something they definitely wouldn't have done in
case those examples wouldn't work! However, even
GET
requests didn't work! What is strange: Also got errors with
code 500. Shouldn't the mapserver return some error message?



I AM CONFUSED! Please hlp!



Regards,

Bryan



On 05/08/2011 15:04, John Callahan wrote:
This thread may or may not help: 
http://osgeo-org.1803224.n2.nabble.com/WFS-intersect-request-td6458533.html 



I have not tried using AND compound filters.  The following format 
does work for me using the BBOX filter.



SHAPE
http://www.opengis.net/gml"; 
srsName="EPSG:26957">

149081.76574899518 163078.62572595105
205627.85303800018 194899.95291598293



- John

***
John Callahan, Research Scientist
Delaware Geological Survey
University of Delaware
URL: http://www.dgs.udel.edu



This message and any attachments are intended for the use of the addressee or 
addressees only. The unauthorised disclosure,

use, dissemination or copying (either in whole or in part) of its content is 
not permitted. If you received this message in

error, please notify the sender and delete it from your system. Emails can be 
altered and their integrity cannot be guaranteed by

the sender.

Please consider the environment before printing this email.
=


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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] KML output and timestamp

2011-08-05 Thread Yewondwossen Assefa

Sorry for the delay.
It is not supported for now. I have added trac bug on it [1].
You are right that similar mechanism (in terms for metedata) can be used 
to extract time specfic value for the attributes and write it to the kml.


best regards,

[1] http://trac.osgeo.org/mapserver/ticket/3980


On 04/08/2011 9:13 AM, Jørn Vegard Røsnes wrote:

Hi all,

do you know if Mapserver support KML Timestamp for KML output.
http://code.google.com/apis/kml/documentation/time.html

The documentation (http://mapserver.org/output/kml_output.html) says
TimePrimitive:  No
but it's kinda strange because Mapserver supports WMS Time.

Thanks.

kind regards
Jorn Vegard

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




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] KML as Outputformat returns incorrect coordinates

2011-07-06 Thread Yewondwossen Assefa

Hi,

I think this bug is happening because of the fact that internally 
MapSever "plays" with the projection when answering to  non-square 
(distorted) wms requests. I think we end up with pixel coordinates, 
instead of ground coordinates at the output stage.
There was a similar issue I corrected a while ago 
(http://trac.osgeo.org/mapserver/ticket/3840).
I will use the test case provided in 
http://trac.osgeo.org/mapserver/ticket/3928 to correct this and update 
the bug.


best regards,


On 06/07/2011 11:55 AM, Joe Franklin wrote:

I had to adjust the height parameter to make it work when downloading as KML:

height = ((maxy-miny)/(maxx-minx))*width

It still seems like a bug, but does this help?  I guess the WIDTH and HEIGHT 
parameters don't make much sense when outputting as KML.



- Original Message -
From: Jeff McKenna
To: mapserver-users
Cc:
Sent: Wednesday, July 6, 2011 8:00 AM
Subject: Re: [mapserver-users] KML as Outputformat returns incorrect coordinates

You might be hitting the same issue that I reported a few weeks ago
(http://trac.osgeo.org/mapserver/ticket/3928).

-jeff




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Re: WFS intersect request

2011-06-16 Thread Yewondwossen Assefa

Hi,

On 16/06/2011 7:29 AM, Marco Bagni wrote:

Dear John,

let me take your request as the occasion to share a thought with this
community.

You are experiencing my same problem and your last deduction is correct:
BBOX works, for the rest the mismatch between the available documentation
and the real implementation of the spatial filters (if really implemented!
at this point doubting is legitimate) makes impossible for a normal human
being to sort out how to make the Intersect or other filters work.

The docs on this at http://mapserver.org/ogc/filter_encoding.html on 
Spatial operator Intersects 
 
suggests to use intersect with polygon. It was not revised for some time 
but was working at the time of implementation.


You can also check examples in the the autotest tools; 
http://svn.osgeo.org/mapserver/trunk/msautotest/wxs/ (in wfs_filter.map)



What is missing is the proper syntax on how to describe the feature
boundaries that you want to use to perform the spatial filter.

I have seen examples where your "SHAPE" was replaced by "Polygon" but also
for that statement was not clear how to say what projection (EPSG) use.

Fortunately the given (working) example for the BBOX filter that you can
find in the documentation is complete (covers also the declaration of the
EPSG directive) and works.

You and I (and many more users with the same problem) are facing the
"other side" of the Open Source. Who writes the code and releases it for
public domain, sometimes arranges things in such a way that, elegantly,
the users are "suggested" to turn to his commercial consultancy services
in order to have the information that makes the whole thing work; he has
to put some bread on his table too!

 wow, that is an unfair comment. I think you are very wrong on your 
assumptions and how you think people make a living on open source. Non 
constructive comment here.



Sometime it simply takes time to as answer to questions on the mailing 
list and address every requests. Note that all things put in trac as 
bugs or enhancements are considered at release time and depending on 
time and how critical they are, they are addressed.



But almost all of the problems that we are facing in this specific area
depend mostly on us, since I find difficult to think that in so many years
nobody has tried to apply a Spatial filter different from BBOX.

Most probably these guys used this very list to ask the support from other
users but when it came the time to "return" something to the user's
community (for instance the simple howto recipe that solved their
problem), then all the animosity and kindness shown up in the request
message, disappeared and the found solution remained in their code without
being shared with the rest of us.

Let's start to SHARE. Be generous and the community shall become a real
living thing made of requests and also of solutions (real solution, well
written and comprehensible to everybody).

Many parts of Mapserver features are well supported by this community and
the knowledge is already generously shared. This peculiar area (SLD and
WFS filtering) is not but the solution is within our realm, just share it.

I have not tried or  checked your specific issue you sent but reading 
through it,  I did not see a MapServer version. Try it with 6.0. If 
things don't work, provide a sample map/data/test that I can reproduce 
and attach it to a trac bug.



Assefa




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Re: WFS intersect request

2011-06-16 Thread Yewondwossen Assefa

Hi John,

 Can you try something like :

Geometry-61.63,45.04 
-60.78,45.04 -60.78,46.08 
-61.63,46.08, 




Polygon, MultiPolygon, MultiSurface, Box, LineString are supported as 
geometries for these operators.

gml:Envelope is not  right now.

Let me know.

best regards,


\On 09/06/2011 12:47 PM, John Callahan wrote:

Thanks. Yes, my server does support Intersect filter, according to the
WFS GetCaps file. I'm using the latest MS4W install with MS 6.

John


On Thursday, June 9, 2011, Alexandre Dube  wrote:






 Hello,

   If you run a WFS GetCapabilities request on your server, it should
 tell which filters it supports, see :
 http://mapserver.org/ogc/filter_encoding.html#server-side

   Someone correct me if I'm wrong, but I think MapServer needs to be
 compiled with GEOS in order to do intersect filters.

 HTH,

 Alexandre


 On 11-06-09 12:09 PM, John Callahan wrote:
 I have the following WFS intersect request that if
   working with GeoServer, and I'm trying to run this app with
   MapServer.  The error I'm getting is:

   msWFSGetFeature(): WFS server error.
   Invalid or Unsupported FILTER in GetFeature ...


   I've dome some reading but not sure exactly what's supported.  I
   have used both INTERSECT and INTERSECTS, both return the same
   error.  Should I skip these and go with BBOX?  If so, I assume I
   would need to get rid of the lowerCorner/upperCorner items and
   just list the coordinates separated by commas.  Or could there be
   a problem with the PropertyName = SHAPE?   I couldn't find doc on
   what this value should be.  My data are either shapefiles or
   postgis layers.

   The POST request is:

   http://www.opengis.net/wfs";
   service="WFS" version="1.1.0" 
xsi:schemaLocation="http://www.opengis.net/wfs
   http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
   http://massgis.state.ma.us/featuretype";>
   http://www.opengis.net/ogc";>
   
   SHAPE
   http://www.opengis.net/gml";
   srsName="EPSG:26957">
   149081.76574899518
   163078.62572595105
   205627.85303800018
   194899.95291598293
   
   
   
   
   


   Thanks for any help you can provide.

   - John

   ***
   John Callahan, Research Scientist
   Delaware Geological Survey
   University of Delaware
   URL: http://www.dgs.udel.edu
   ***


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




 --
Alexandre Dubé
Mapgears
www.mapgears.com







--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Re: WFS Server with ArcGIS Client

2011-06-14 Thread Yewondwossen Assefa

Thanks. Updated on the server and svn.

On 14/06/2011 3:51 AM, Rahkonen Jukka wrote:

Hi,

Thanks for the update.  The included config.xml was still using the old syntax and new version of 
TinyOWS does not work with it.  I paste here below a config.xml that works with the 1.0 rc3 version 
with the demo data layers "france" and "world".  Demo shapefiles are included 
in the package http://tinyows.org/tracdocs/release/tinyows-1.0.0rc3.tar.bz2 and they should be 
imported into PostGIS first.

http://127.0.0.1/cgi-bin/tinyows.exe";
   schema_dir="/ms4w/apps/tinyows/schema/">
   
   

   http://www.tinyows.org";
  name="world"
  title="World Administrative Boundaries" />
   http://www.tinyows.org";
  name="france"
  title="French Administrative Sub Boundaries (IGN - GeoFLA Departements)" 
/>


-Jukka Rahkonen-


Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] käyttäjän Yewondwossen 
Assefa [yass...@dmsolutions.ca] puolesta
Lähetetty: 14. kesäkuuta 2011 0:35
Vastaanottaja: mapserver-users@lists.osgeo.org
Kopio: TinyOWS users discuss list; ms4w-users
Aihe: Re: [mapserver-users] Re: WFS Server with ArcGIS Client

ms4w adds on for tinyows  1.0.0rc3 is uploaded on the server and should
be available in few minutes for download.

best regards,

On 13/06/2011 4:53 PM, Rahkonen Jukka wrote:

Hi,

Another quick note: Version 1.0 c is much much better than 0.9 which is 
available as MS4W addon package.  But of course one can experiment with 0.9 too 
until 1.0 for MS4W is ready.

-Jukka-

Jeff McKenna wrote:


On 11-06-13 5:12 PM, Rahkonen Jukka wrote:

TinyOWS is in 1.0 release candidate phase but Windows executables are not yet 
available, therefore Linux.

Quick note: TinyOWS has been available in MS4W as an addon package for
quite some time now.

-jeff



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


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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



___
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




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Re: WFS Server with ArcGIS Client

2011-06-13 Thread Yewondwossen Assefa
ms4w adds on for tinyows  1.0.0rc3 is uploaded on the server and should 
be available in few minutes for download.


best regards,

On 13/06/2011 4:53 PM, Rahkonen Jukka wrote:

Hi,

Another quick note: Version 1.0 c is much much better than 0.9 which is 
available as MS4W addon package.  But of course one can experiment with 0.9 too 
until 1.0 for MS4W is ready.

-Jukka-

Jeff McKenna wrote:


On 11-06-13 5:12 PM, Rahkonen Jukka wrote:

TinyOWS is in 1.0 release candidate phase but Windows executables are not yet 
available, therefore Linux.

Quick note: TinyOWS has been available in MS4W as an addon package for
quite some time now.

-jeff



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


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




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Mapserver 6.0, SLD and halo

2011-06-10 Thread Yewondwossen Assefa
Thanks for putting this in trac (#3915 and #3916). I will give it a look 
early next week.


beat regards,

On 10/06/2011 9:35 AM, Rahkonen Jukka wrote:

Hi,

This part of SLD used to work with 5.x



3


#FF
1



It does not work with 6.0. Mapserver accepts the SLD if we take off this part:

3


However, the document http://mapserver.org/ogc/sld.html says that also Radius 
is supported

"Halo Yes  Supported (fill converted to outlinecolor, and radius is converted 
to outlinewidth.
Note that outlinewidth is only available for AGG in>=5.2)"

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




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] SLD and Mapserver

2011-05-31 Thread Yewondwossen Assefa

Hi,

 It is not yet possible to use directly sld styles in a map file. We 
have discussed that a couple of times but It is still in the wish list 
for future versions. If you are interested to see that sooner than later 
and might be possible for you to contribute toward it's development, 
let  me know.


best regards,


On 31/05/2011 12:18 PM, luis peinado wrote:

Hi list,
I'm using mapserver as a WMS server and I try to use an SLD file to 
render my map, instead of the usual CLASS and STYLE labels.
I've succeded using an SLD parameter on my querystring but I can not 
get the same result removing the sld url from the querystring and 
writing it into wms_sld_url paramenter (into LAYER metadata tag).


I have done that as told here:http://mapserver.org/ogc/sld.html
But it seems that wms_sld_url is only useful when using mapserver as a 
WMS client.
I would like to render my maps using SLD files instead of the STYLE 
label to avoid programming on my client application.


Have you got any idea?

Best regards.



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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] SLD with filter

2011-05-31 Thread Yewondwossen Assefa

Daniel,

 I just did a quick test with 5.6.x (svn) and a postgis layer using the 
metadata but could not reproduce a crash. If it is something I can 
reproduce using some test map/data/filter, I will investigate. You can 
either send them to me or attache it to a trac bug.


best regards

On 31/05/2011 10:25 AM, Daniel Degasperi wrote:
Ok, with the metadata tag described below mapserver does not reprocude 
this error, but it throws a segfault.

I've put the coredump online: http://www.r3-gis.com/core.333.gz

Best regards,
Daniel

Am 31/05/2011 14:37, schrieb Yewondwossen Assefa:

Hi Daniel,

 You could possibly try to set on the layer a metadata for the type 
of your field to force it to string: something like

  metadata
 "ows_localita_type" "Character"
 ...
end

regards,

On 31/05/2011 8:26 AM, Daniel Degasperi wrote:

Hi,
I've a problem with following filter:

http://www.opengis.net/ogc";>

localita
1.102



Output:

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";>


msWFSGetFeature(): WFS server error. 
FLTApplyFilterToLayer() failed
msPostGISLayerWhichShapes(): Query error. Error (ERROR:  operator 
does not exist: text = numeric

LINE 1: ...6966392 4130435.36164853))',32632) and ( (localita= 1.102) )
 ^
HINT:  No operator matches the given name and argument type(s). You 
might need to add explicit type casts.
) executing query: select 
"gc_objid","di_id","localita","di_name_1",encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') 
as geom,"gc_objid" from (SELECT  __data__.di_id as 
gc_objid,__data__.the_geom, 
__data__.di_id,__data__.localita,__data__.di_name_1 FROM 
geo.district_area AS __data__) AS foo where the_geom && 
GeomFromText('POLYGON((-393764.596966392 
4130435.36164853,-393764.596966392 5936656.6234314,1412456.59042116 
5936656.6234314,1412456.59042116 4130435.36164853,-393764.596966392 
4130435.36164853))',32632) and ( (localita= 1.102) 
)




It seems that the value 1.102 is not quoted. Should I add the 
attribute xs:type="string" to the literal node or use the 
PropertyIsLike condition?


I'm using MapServer 5.6.6

Best regards,
Daniel











--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] SLD with filter

2011-05-31 Thread Yewondwossen Assefa

Hi Daniel,

 You could possibly try to set on the layer a metadata for the type of 
your field to force it to string: something like

  metadata
 "ows_localita_type" "Character"
 ...
end

regards,

On 31/05/2011 8:26 AM, Daniel Degasperi wrote:

Hi,
I've a problem with following filter:

http://www.opengis.net/ogc";>

localita
1.102



Output:

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";>


msWFSGetFeature(): WFS server error. 
FLTApplyFilterToLayer() failed
msPostGISLayerWhichShapes(): Query error. Error (ERROR:  operator does 
not exist: text = numeric

LINE 1: ...6966392 4130435.36164853))',32632) and ( (localita= 1.102) )
 ^
HINT:  No operator matches the given name and argument type(s). You 
might need to add explicit type casts.
) executing query: select 
"gc_objid","di_id","localita","di_name_1",encode(AsBinary(force_collection(force_2d("the_geom")),'NDR'),'hex') 
as geom,"gc_objid" from (SELECT  __data__.di_id as 
gc_objid,__data__.the_geom, 
__data__.di_id,__data__.localita,__data__.di_name_1 FROM 
geo.district_area AS __data__) AS foo where the_geom && 
GeomFromText('POLYGON((-393764.596966392 
4130435.36164853,-393764.596966392 5936656.6234314,1412456.59042116 
5936656.6234314,1412456.59042116 4130435.36164853,-393764.596966392 
4130435.36164853))',32632) and ( (localita= 1.102) )




It seems that the value 1.102 is not quoted. Should I add the 
attribute xs:type="string" to the literal node or use the 
PropertyIsLike condition?


I'm using MapServer 5.6.6

Best regards,
Daniel





--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: AW: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1

2011-05-02 Thread Yewondwossen Assefa

On 29/04/2011 5:38 PM, Arnd Wippermann wrote:

Hi

Here you can online see

external graphic mostly not showing
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ
er_SLD_World.asp?SLDsrcIdx=51&mapservVersion=6.0.0

Perhaps it has something to do with the complexity of the polygons. Locally
test with simplier polygons works. But also with the simplier polygons it
doesn't show the graphic if i apply the sld file from
http://demo.mapserver.org/ogc-demos/map/sld/sld_polygon_fill_symbol_external
.xml (gif image).

Rotated square not like 5.6.1
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ
er_SLD_World.asp?SLDsrcIdx=51&mapservVersion=6.0.0

Are the above 2 demos still work? I see "broken" tiles. As I mentioned 
initially, I was not able to see the problem with my test using external 
symbols. I just also used a copy of your sld (pointing to an external 
symbol on your server) and was also able to get expected result. Same 
with the sld on mapserver site.
Please file a bug with data/map that shows the problem and I can spend 
more time on it.

borders as thin lines without stroke set
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ
er_SLD_World.asp?SLDsrcIdx=52&mapservVersion=6.0.0

I see that on your server. One test to do is to put your map in debug 
and see the map file that is produced after the sld is applied. It 
should only have one class with one style for the fill. If that is not 
that case, please report.

The patch I cannot test. I'm not able to compile MapServer by myself.

Thank for watching the points
I will apply the patch when MapServer trac/svn come back. It should be 
available fr the next release.


best regards,



Regards,
Arnd


--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1

2011-04-29 Thread Yewondwossen Assefa

On 28/04/2011 3:12 PM, Yewondwossen Assefa wrote:
Sorry I hit send  with finishing the e-mail. I will through each items 
tomorrow and report.


On 28/04/2011 3:10 PM, Yewondwossen Assefa wrote:

On 28/04/2011 9:34 AM, Arnd Wippermann wrote:

Hi,

I'm interested in map styling with SLD and have tested it locally with
MapServer 6.0.0 Beta RC1 windows binaries from www.gisinternals.com.

I have created an online application to play with SLD and the different
MapServer versions.
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ 


er_SLD_World.asp

There the below issues can be seen. For the online application I 
have only

6.0.0 Beta 7 available, but it is the same with RC1.

Most things work great and create a good looking output.

But some things doesn't work as expected.

1.
It seems, that the output directory for debug is set static to
C:\Windows\Temp.
msApplySLD(): Map file after SLD was applied
C:\WINDOWS\TEMP\4db963c5_ab0_1._sld.map
IMGPATH or IMGURL is not take in account.

Temporary files are now written into the tmp directory location. It 
depends on the platform but should respect the environment variables 
set on your platform regarding temporary paths. It is not hardcoded 
in Mapserver.  Ticket http://trac.osgeo.org/mapserver/ticket/3354 has 
notes on this.



2. fill external symbol
Polygon fill with external graphic is erratic. If I zoom in one 
level i get

one tile (South America).
It creates a file
"http%3A%2F%2Fgis.ibbeck.de%2FOLClient%2FSLD%2Fsmileyface.png" in
C:\Windows\Temp.
I am not sure I could reproduce this. With local test file, I was able 
to get a fill polygon with external symbol working.
If you have a simple map/data I can use, you can create a trac bug and 
attach it to them and assign it to me (osgeoid: assefa)




3. Continent, Continent_Else
Filter PropertyIsLike doesn't work. With 5.6.1 it is ok.
Expression from generated mapfile : EXPRESSION ("[Continent]" =~ 
/^Africa/)


4. or_like_abcdef
Filter Or and PropertyIsLike doesn't work. With 5.6.1 only the last 
entry of

PropertyIsLike are taken.
With Or and PropertyIsEqualTo all entries are taken in both versions.
Expression from generated mapfile (6 beta): EXPRESSION ( 
("[country]" =~

/^A/) Or  ( ("[country]" =~ /^B/) Or  ( ("[country]" =~ /^C/) Or  (
("[country]" =~ /^D/) Or  ( ("[country]" =~ /^E/) Or  ("[country]" 
=~ /^F/))

) ) ) )

msEvalExpression: Expression parser error. Failed to parse expression:
("[country]" =~ /^A/) Or ...

With changing =* to ~* and / to " the mapfile works :
EXPRESSION ( ("[country]" ~* "^A") Or  ( ("[country]" ~* "^B") Or ...

It seems, that in the generated mapfile is a wrong expression.



I was able to reproduce this. I have added a bug 
(http://trac.osgeo.org/mapserver/ticket/3855) on it and a patch that 
should correct the issue. Is it  possible for you to test the patch and 
report through the bug? Thx




5. symbol fill rotated
Polygon fill with rotated square looks interesting, but not as 
expected. Try

with 5.6.1.

Here again I tried vectir synbols (weel-know sld symbols like star) as 
well as the graphic symbols but could not see a problem. The roration 
parameter should translate into an angle parameter in the style. I have 
tried this using agg output. Here again if you have test data that 
demonstrate it please open a trac bug.




6. fill solid
Polygon with solid fill without stroke shows thin lines of the borders.



Same as above.


Some other issues are likely not supported by MapServer, but would 
be nice

to have them.






A.
Changing the hatch width with sld. see "group3, hatch" as it is 
possible

with mapfile class.

B.
UserStyles from applied SLD not supported in WMS Styles

C.
WMS request GetStyles creates only one userstyle with rules from the
different styles described in the mapfile. Should it not create 
different

userstyles for each style described in the mapfile?

Regards,
Arnd






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









For new features/enhancements, It would also be better to add them in 
trac and mark them as enhancements. They can be addressed for future 
versions > 6.0.


best regards,


--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1

2011-04-28 Thread Yewondwossen Assefa
Sorry I hit send  with finishing the e-mail. I will through each items 
tomorrow and report.


On 28/04/2011 3:10 PM, Yewondwossen Assefa wrote:

On 28/04/2011 9:34 AM, Arnd Wippermann wrote:

Hi,

I'm interested in map styling with SLD and have tested it locally with
MapServer 6.0.0 Beta RC1 windows binaries from www.gisinternals.com.

I have created an online application to play with SLD and the different
MapServer versions.
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ 


er_SLD_World.asp

There the below issues can be seen. For the online application I have 
only

6.0.0 Beta 7 available, but it is the same with RC1.

Most things work great and create a good looking output.

But some things doesn't work as expected.

1.
It seems, that the output directory for debug is set static to
C:\Windows\Temp.
msApplySLD(): Map file after SLD was applied
C:\WINDOWS\TEMP\4db963c5_ab0_1._sld.map
IMGPATH or IMGURL is not take in account.

Temporary files are now written into the tmp directory location. It 
depends on the platform but should respect the environment variables 
set on your platform regarding temporary paths. It is not hardcoded in 
Mapserver.  Ticket http://trac.osgeo.org/mapserver/ticket/3354 has 
notes on this.



2. fill external symbol
Polygon fill with external graphic is erratic. If I zoom in one level 
i get

one tile (South America).
It creates a file
"http%3A%2F%2Fgis.ibbeck.de%2FOLClient%2FSLD%2Fsmileyface.png" in
C:\Windows\Temp.

3. Continent, Continent_Else
Filter PropertyIsLike doesn't work. With 5.6.1 it is ok.
Expression from generated mapfile : EXPRESSION ("[Continent]" =~ 
/^Africa/)


4. or_like_abcdef
Filter Or and PropertyIsLike doesn't work. With 5.6.1 only the last 
entry of

PropertyIsLike are taken.
With Or and PropertyIsEqualTo all entries are taken in both versions.
Expression from generated mapfile (6 beta): EXPRESSION ( ("[country]" =~
/^A/) Or  ( ("[country]" =~ /^B/) Or  ( ("[country]" =~ /^C/) Or  (
("[country]" =~ /^D/) Or  ( ("[country]" =~ /^E/) Or  ("[country]" =~ 
/^F/))

) ) ) )

msEvalExpression: Expression parser error. Failed to parse expression:
("[country]" =~ /^A/) Or ...

With changing =* to ~* and / to " the mapfile works :
EXPRESSION ( ("[country]" ~* "^A") Or  ( ("[country]" ~* "^B") Or ...

It seems, that in the generated mapfile is a wrong expression.

5. symbol fill rotated
Polygon fill with rotated square looks interesting, but not as 
expected. Try

with 5.6.1.

6. fill solid
Polygon with solid fill without stroke shows thin lines of the borders.

Some other issues are likely not supported by MapServer, but would be 
nice

to have them.

A.
Changing the hatch width with sld. see "group3, hatch" as it is possible
with mapfile class.

B.
UserStyles from applied SLD not supported in WMS Styles

C.
WMS request GetStyles creates only one userstyle with rules from the
different styles described in the mapfile. Should it not create 
different

userstyles for each style described in the mapfile?

Regards,
Arnd






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







--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Some issues with SLD and MapServer 6.0.0 Beta RC1

2011-04-28 Thread Yewondwossen Assefa

On 28/04/2011 9:34 AM, Arnd Wippermann wrote:

Hi,

I'm interested in map styling with SLD and have tested it locally with
MapServer 6.0.0 Beta RC1 windows binaries from www.gisinternals.com.

I have created an online application to play with SLD and the different
MapServer versions.
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL210/MapServer_SLD_World/MapServ
er_SLD_World.asp

There the below issues can be seen. For the online application I have only
6.0.0 Beta 7 available, but it is the same with RC1.

Most things work great and create a good looking output.

But some things doesn't work as expected.

1.
It seems, that the output directory for debug is set static to
C:\Windows\Temp.
msApplySLD(): Map file after SLD was applied
C:\WINDOWS\TEMP\4db963c5_ab0_1._sld.map
IMGPATH or IMGURL is not take in account.

Temporary files are now written into the tmp directory location. It 
depends on the platform but should respect the environment variables set 
on your platform regarding temporary paths. It is not hardcoded in 
Mapserver.  Ticket http://trac.osgeo.org/mapserver/ticket/3354 has notes 
on this.



2. fill external symbol
Polygon fill with external graphic is erratic. If I zoom in one level i get
one tile (South America).
It creates a file
"http%3A%2F%2Fgis.ibbeck.de%2FOLClient%2FSLD%2Fsmileyface.png" in
C:\Windows\Temp.

3. Continent, Continent_Else
Filter PropertyIsLike doesn't work. With 5.6.1 it is ok.
Expression from generated mapfile : EXPRESSION ("[Continent]" =~ /^Africa/)

4. or_like_abcdef
Filter Or and PropertyIsLike doesn't work. With 5.6.1 only the last entry of
PropertyIsLike are taken.
With Or and PropertyIsEqualTo all entries are taken in both versions.
Expression from generated mapfile (6 beta): EXPRESSION ( ("[country]" =~
/^A/) Or  ( ("[country]" =~ /^B/) Or  ( ("[country]" =~ /^C/) Or  (
("[country]" =~ /^D/) Or  ( ("[country]" =~ /^E/) Or  ("[country]" =~ /^F/))
) ) ) )

msEvalExpression: Expression parser error. Failed to parse expression:
("[country]" =~ /^A/) Or ...

With changing =* to ~* and / to " the mapfile works :
EXPRESSION ( ("[country]" ~* "^A") Or  ( ("[country]" ~* "^B") Or ...

It seems, that in the generated mapfile is a wrong expression.

5. symbol fill rotated
Polygon fill with rotated square looks interesting, but not as expected. Try
with 5.6.1.

6. fill solid
Polygon with solid fill without stroke shows thin lines of the borders.

Some other issues are likely not supported by MapServer, but would be nice
to have them.

A.
Changing the hatch width with sld. see "group3, hatch" as it is possible
with mapfile class.

B.
UserStyles from applied SLD not supported in WMS Styles

C.
WMS request GetStyles creates only one userstyle with rules from the
different styles described in the mapfile. Should it not create different
userstyles for each style described in the mapfile?

Regards,
Arnd






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




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] use of CLASSGROUP/GROUP

2011-04-28 Thread Yewondwossen Assefa

Something like this should work for map file changes via url:

http://localhost/cgi-bin/mapserv.exe?mode=map&map=f:/msapps/gmap-ms40/htdocs/gmap75.map&layers=land_fn_group&map_imagetype=png&map.layer[land_fn_group]=classgroup+green

You need to add a validation block on your layer
VALIDATION
   'classgroup' '.'
  END

check bug http://trac.osgeo.org/mapserver/ticket/3754 for hints/docs on 
how  url substitutions and validation blocks work


regards

On 27/04/2011 5:39 PM, Mukesh Subedee wrote:

Hi all,

Does anyone has answer of this question? 
http://www.osgeo.org/pipermail/mapserver-users/2008-October/057975.html


Thanks,
Mukesh


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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] SLD support: Anyone for fixing 5 yr old tickets?

2011-04-20 Thread Yewondwossen Assefa

Hi there,

I have updated both  issues in trac. It would be good if you could add 
yourself in cc in the bugs and comment on them.
I agree that #1166 is still relevant and could be fixed for 6.2.  I am 
not sure if #1602 is something that needs to be done and fits the way 
the specs describe sld and wms.


best regards,


On 15/04/2011 9:39 AM, Hollingbery, Julian wrote:


Hi list,

I have just joined the list for the following reason: We have been 
running SLD-enabled WMS services for some years now, on a closed 
source platform. For that, and several other reasons, we are now 
looking at using MapServer as a replacement. I have compared our 
existing platform and MapServer 5.6.6, and have noticed a couple of 
incompatibilities. After having looked around, I find that both of 
these issues exist as old tickets:


_http://trac.osgeo.org/mapserver/ticket/1602_
_http://trac.osgeo.org/mapserver/ticket/1166_

We do not have the developer resources to provide patches, so I am 
looking for someone to do it for us. Our migration is organized as a 
project, for which we have some funds. Therefore, I am looking for 
someone who would be willing to provide me with an estimate of what it 
would cost (time and/or money) to come up with a patch.


Regarding #1602, what I would like to achieve is to highlight an 
object given by a ogc:Filter, while rendering the remaining objects in 
that layer in the default style. I could of course use an ElseFilter, 
but since this is a question of providing backward compatibility, I'd 
prefer not to. It is not exactly the same thing as in #1602, but it 
seems to me that it might be the same fix.


My particular SLD looks something like this:

xmlns="http://www.opengis.net/sld"; 
xmlns:ogc="http://www.opengis.net/ogc";>


Jordstykke






landsejerlavskode
90552


matrikelnummer
7fv





#FF
1


#FF
3







Jordstykke

default





Thanks in advance,
Julian Hollingbery
Danish Ministry of The Environment, National Survey and Cadastre


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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] SLD and Offset

2011-04-14 Thread Yewondwossen Assefa
Maybe using  the PerpendicularOffset of the stroke element would work in 
your case (only availble in sld1.1)? Quick example can be found at 
http://www3.dmsolutions.ca/tmp/sld_line_simple_1.1.0_offset.xml


best regards,


On 14/04/2011 11:05 AM, Kickinger Johann wrote:
I have real time traffic data which has values for one link/line in 
both directions e.g. value 0 (green) in the digitalisation direction 
and value 3 (red) against the digitalisation direction.
At the moment this is done with OFFSET x -99 and works well. I see the 
link two times with, if available, two different values


   CLASS
NAME C_0_0
EXPRESSION (([value_los] = 0) && ([linkdirection] = 0))
STYLE
COLOR 0 117 0
WIDTH 3
ANTIALIAS TRUE
   OFFSET 2 -99
END
END
CLASS
NAME C_0_1
EXPRESSION (([value_los] = 0) && ([linkdirection] = 1))
STYLE
COLOR 0 117 0
WIDTH 3
ANTIALIAS TRUE
   OFFSET -2 -99


Now I wanted to use SLD with UserStyle - the color and width is 
changeable, but I noticed that the OFFSET was overruled and so I dont 
see different values for separate directions. I found no parameter in 
the SLD for the Offset of a line.
So my workaround is SLD with NamedStyle - I copied the Classes and the 
first are in group1 the last in group2. I switch in the one layer with 
the name of the group.
So my question is - is it possible to use UserStyle SLD with the 
possibility to set a usefull offset or could the offset in the mapfile 
could be used even if nothing more is defined in the SLD.

Thanks for your support/ideas.
BR,
Hannes


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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] MapServer 6: ESRI Grid display with KMZ output

2011-04-14 Thread Yewondwossen Assefa

On 14/04/2011 4:13 AM, Cécile Alfred wrote:

Yes it is.
Thank you very much. There is just a problem with the latlongbox. It 
seems to use the WIDTH HEIGHT oh the request.


 This should be fixed now in svn. Bug related to that issue is at 
http://trac.osgeo.org/mapserver/ticket/3840


best regards,


Cécile

2011/4/12 Yewondwossen Assefa <mailto:yass...@dmsolutions.ca>>


You should comment out  CLASSITEM "[pixel]". There is no need to
add that line from what I can see and in this case seems to make a
difference.
Let me know.

Assefa



On 11/04/2011 10:35 AM, Cécile Alfred wrote:

Hi,

there is here the mapfile (test.map), an ESRI ascii grid, a
geotiff and requests png and kmz (requests.txt).
Thank you
Cécile


2011/4/11 Yewondwossen Assefa mailto:yass...@dmsolutions.ca>>

Hi,

 If you are willing to share a sample map file + this
particular format file, I can look into the kmz output issue.
If that is the case, wither send me the sample or open a trac
bug and attche the data. Please assign the bug to me (assefa).

Assefa


On 08/04/2011 8:09 AM, Cécile Alfred wrote:

Hi,

I try to use Mapserver 6 beta 5 to generate kmz output with
several type of input data (geotiff, shape and esri ascii grid):
 It is OK with geotiff and shape but there is no result with
grd (empty image in temp).
If I try to generate png output it's OK for all.

Thank you for help
Kelly


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



-- 


Assefa Yewondwossen
Software Analyst

Email:yass...@dmsolutions.ca  <mailto:yass...@dmsolutions.ca>
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925







-- 


Assefa Yewondwossen
Software Analyst

Email:yass...@dmsolutions.ca  <mailto:yass...@dmsolutions.ca>
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925







--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] MapServer 6: ESRI Grid display with KMZ output

2011-04-11 Thread Yewondwossen Assefa

Hi,

 If you are willing to share a sample map file + this particular format 
file, I can look into the kmz output issue.
If that is the case, wither send me the sample or open a trac bug and 
attche the data. Please assign the bug to me (assefa).


Assefa

On 08/04/2011 8:09 AM, Cécile Alfred wrote:

Hi,

I try to use Mapserver 6 beta 5 to generate kmz output with several 
type of input data (geotiff, shape and esri ascii grid):
 It is OK with geotiff and shape but there is no result with grd 
(empty image in temp).

If I try to generate png output it's OK for all.

Thank you for help
Kelly


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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] MapServer 6: outputformat gd/jpeg missing

2011-04-05 Thread Yewondwossen Assefa

Hi,

I am not sure if there is yet a 6.0 doc on that. Here is what I can see 
browsing through the code.


 This list gives you the output format names that are defined in 
MapServer and the driver used to render them.


- name: png;  dirver is AGG; mime type is image/png; produces 24bit png
- jpeg; AGG;  image/jpeg; jpeg output
- gif; GD; image/gif; gif output
- png8; AGG;  image/png; mode=8bit; QUANTIZED automatically to produce 
8bit png;

- png24; AGG; image/png; mode=24bit; same as png-24bit png
- pdf; CAIRO; application/x-pdf;
- svg; CAIRO; image/svg+xml
- cairopng; CAIRO; 24bit png
- GTiff; GDAL/GTiff, image/tiff
- kml; Mapserver native; application/vnd.google-earth.kml+xml
- kmz, Mapserver native; application/vnd.google-earth.kmz

You can also define output blocks in the map file as before. Here are 
some of them I see in the code.

  -  gdal/xxx : where xxx is the gdal driver
  - dirver TEMPLATE  (http://mapserver.org/development/rfc/ms-rfc-36.html)
 - ogr outputs for WMS 
(http://www.mapserver.org/trunk/output/ogr_output.html)

- cairowinGDI; CAIRO/WINGDI
 - cairowinGDIPrint; CAIRO/WINGDIPRINT
 - oglpng24;  OGL/PNG

Note that there might be docs explaining/giving details on each of 
them.  I might also have missed some of them. An explicit doc on oputput 
format is needed I believe for the 6.0 release.


Assefa

On 05/04/2011 7:25 AM, fruitwerks wrote:

The only recent mention of jpg I see is:

"AGG/PNG and AGG/JPEG are the only valid agg drivers.  Imagetypes
aggpng24 and aggjpeg can be used to refer to the default output
formats."

Is there a documentation for 6 yet? I know there are a few migration /
quirk / changes texts, but I was unable to find full blown
documentation.


On Tue, Apr 5, 2011 at 3:51 AM, Johannes Smith  wrote:

Hi, trying MapServer 6 beta 4 I recognized that output format gd/jpeg is no
longer supported. Instead there's agg/jpeg. Is that intended? J.

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








--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS Intersect with gml:box

2011-03-30 Thread Yewondwossen Assefa

On 30/03/2011 4:16 PM, Rahkonen Jukka wrote:

Hi,

"Intersect" means the same as "not disjoint", that the two geometries have at least one 
point in common. Thus WFS Intersects should select the point that is inside the "box" in the query. 
I made a quick test with OpenJUMP which is using JTS and it really does select such a point with a apatial 
query Intersects.

 Geos lib used by MapServer should  act the same as JTS I beleive.  
Joaquín, you can maybe attach your simple map/data/url to the bug and I 
will check it using MapServer trunk.



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS Intersect with gml:box

2011-03-30 Thread Yewondwossen Assefa

On 30/03/2011 2:30 PM, Joaquín Rodriguez-Guerra Urcelay wrote:

Hello,

I was finally able to build the source code, and I am not getting the error 
anymore :D (with Latest Release Branch, with trunk wfs was not working for me)

But I am not getting the result I was expecting. Maybe I am wrong, but I 
thought that bbox operation would return all geometries contained in the box, 
and intersect would return all geometries contained in the box and also those 
who are not contained completely, but a part of them. Is this right??
I think intersects in this case really returns  only those features that 
intersect and not all that are completely contained.


Assefa
--


Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS Intersect with gml:box

2011-03-30 Thread Yewondwossen Assefa

On 30/03/2011 1:14 PM, Joaquín Rodriguez-Guerra Urcelay wrote:

Hi Yewondwossen,

Are you planning to include this fix in mapserver 6??
This was committed yesterday and should be available for 6.0 (and 5.6.8 
if released). I forgot to update the bug on that. It is done now.

I am still fighting with the sources, stuck in the error:  ld: cannot find 
-ltermcap
Hopefully fgs will create a new self-installer for mapserver 6 in a couple of 
months, or I should not expect that?

 I  can not say one way or the other about fgs installer. You can ask 
on the fgs mailing list or someone cam comment here.


best regards,



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS Intersect with gml:box

2011-03-29 Thread Yewondwossen Assefa

Hi,

 I did check that and It was not working for me either. It is now fixed 
in trunk and also in the 5.6.x branch.
I have added a bug [1] on 
it, so if you have the chance to build from source, please give it a try 
and update the bug.


best regards,


[1]: http://trac.osgeo.org/mapserver/ticket/3789

On 29/03/2011 1:18 PM, Joaquín Rodriguez-Guerra Urcelay wrote:

Hello list,

I am using a desktop GIS applicatin (uDig) to connect mapserver and display 
some wfs layers and I am having some trouble when uDig tries to filter features 
by bounding box.

uDig sends a intersects spatial filter to obtain features in a bounding box:

http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter=
http://www.opengis.net/ogc"; 
xmlns:gml="http://www.opengis.net/gml";>point
-100.0,-45.0 
100.0,45.0




But it is not working :(

http://www.opengis.net/ogc 
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd";>

msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature :http://www.opengis.net/ogc"; 
xmlns:gml="http://www.opengis.net/gml";>point-100.0,-45.0 100.0,45.0



I have checked that the BBOX filter works perfectly ( I just replaced 
Intersects with BBOX in the above url)

http://localhost:8080/cgi-bin/mywfs?WIDTH=512&SERVICE=WFS&VERSION=1.0.0&request=getfeature&typename=PositionReal&Filter=
http://www.opengis.net/ogc"; 
xmlns:gml="http://www.opengis.net/gml";>point
-100.0,-45.0 
100.0,45.0




But I cant make the INTERSECTS operation work. I would really appreciate if 
someone could point me to any examples of the INTERSECT operation used together 
with gml:box or Box.
  I have seen some examples of intersects used with gml:polygon, but it should 
work too with box, right??

Thanks for reading!

Joaquín
__
This message including any attachments may contain confidential
information, according to our Information Security Management System,
  and intended solely for a specific individual to whom they are addressed.
  Any unauthorised copy, disclosure or distribution of this message
  is strictly forbidden. If you have received this transmission in error,
  please notify the sender immediately and delete it.

__
Este mensaje, y en su caso, cualquier fichero anexo al mismo,
  puede contener informacion clasificada por su emisor como confidencial
  en el marco de su Sistema de Gestion de Seguridad de la
Informacion siendo para uso exclusivo del destinatario, quedando
prohibida su divulgacion copia o distribucion a terceros sin la
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje
  erroneamente, se ruega lo notifique al remitente y proceda a su borrado.
Gracias por su colaboracion.

__

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




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] MapServer 6 and KML outputformat

2011-03-11 Thread Yewondwossen Assefa

On 10/03/2011 6:29 PM, Armin Burger wrote:
Currently the fields/items of the layers (defined under map file 
METADATA KML_INCLUDE_ITEMS) are exported to a KML tag "" 
and inserted as HTML table. While this is of course possible, a 
cleander way would be how GDAL/OGR exports the attributes:


GDAL/OGR uses the tag  and places the attribute values 
in  tags, like


   ...

Berlin
3899412
DE


This leads to a much better display in Google Earth.

I have added this in http://trac.osgeo.org/mapserver/ticket/3728 and 
possibly address it before 6.0 or shortly after.


In addition to the KML_INCLUDE_ITEMS, another possibility to define a 
field/item used in KML for the  tag would be useful, like OGR 
allows this via the NameField option. So maybe a METADATA definition 
like KML_NAME_FIELD could do this. 


The is added to the current svn and will be available for beta2 (ticket 
).  The docs are also 
updated. Note that the metedata is KML_NAME_ITEM to follow other metada 
names used.



best regards,

--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Yewondwossen Assefa

GD is still there . It is still there and does  8bit png and gif.

On 10/03/2011 3:54 PM, Stephen Woodbridge wrote:
A couple of points on this, MS6.0 no longer has a GD driver? is this 
correct? if so, then:

   a. need to add to migration guide
   b. need to indicate appropriate GD to AGG OUTPUTFORMAT conversions
   c. mapfile parsing should throw an error ob DRIVER 'GD/...'

-Steve W

On 3/10/2011 12:36 PM, thomas bonfort wrote:

use AGG/JPEG

regards,
thomas

On Thu, Mar 10, 2011 at 18:33, Andy Colson  wrote:

On 3/9/2011 8:47 PM, Daniel Morissette wrote:


The MapServer Team is pleased to announce the release of MapServer
6.0.0-beta1. This is the first beta on our way to a final 6.0 release.



My mapfile has:

IMAGECOLOR 192 192 192
IMAGEQUALITY 95
IMAGETYPE jpeg
OUTPUTFORMAT
NAME jpeg
DRIVER 'GD/JPEG'
MIMETYPE 'image/jpeg'
EXTENSION 'jpeg'
END

Error I get:
ERROR: 12:OUTPUTFORMAT clause references driver GD/JPEG, but this 
driver

isn't configured.:loadOutputFormat()


  mapserv -v
MapServer version 6.0.0-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=CAIRO SUPPORTS=OPENGL 
SUPPORTS=FREETYPE
SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=GEOS INPUT=POSTGIS 
INPUT=OGR

INPUT=GDAL INPUT=SHAPEFILE


Sure enough, no GD... but I did compile it in:

configure: checking for GD 2.0.28 or higher...
checking for gdImageCreatePaletteFromTrueColor in -lgd... yes
using libgd 2.0.28 (or higher) from system libs 
(-L/usr/lib64 -lgd

-ljpeg -lfreetype -lz -lpng -lz -lXpm -lX11 ).
checking for gdImageCreate in -lgd... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImageJpeg in -lgd... yes
checking for gdImageWBMP in -lgd... yes
checking for gdImageStringFT in -lgd... yes
checking for gdImageOpenPolygon in -lgd... yes
checking for gdImageGifPtr in -lgd... yes
checking for gdFontGetTiny in -lgd... yes
checking for gdImageSetResolution in -l... no
checking whether gdImageGetTrueColorPixel is declared... yes
checking for gdImageGetTrueColorPixel in -lgd... yes
using GD ( -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG 
-DUSE_GD_WBMP

-DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
-DGD_HAS_GETBITMAPFONTS -DGD_HAS_GET_TRUE_COLOR_PIXEL) from system 
libs.


So what do I use?

I'd also like to try the new opengl stuff.. is there new docs for:

http://mapserver.org/mapfile/outputformat.html

-Andy

___
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




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] MapServer 6.0.0-beta1 release - Please test!

2011-03-10 Thread Yewondwossen Assefa

nipped>


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


The layer is set and is valid, its the same request I make to the 
prior version of mapscript and it works fine.


I did have to modify my map file just a bit (commented out the ANGLE 
and label backgroundcolor), but all the layers are still there.


This could be related to that fact that you should enable ows request 
(http://mapserver.org/development/rfc/ms-rfc-67.html)


"ows_enable_request" "*"


best regards,




-Andy

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




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Trouble with WFS GetFeature: get same feature returned multiple times

2011-02-25 Thread Yewondwossen Assefa

Hi,

 I just tried this with my test data and url similar you yours [1] and 
was not able to reproduce it locally using 5.4 and 5.6. If your data/map 
are not sensitive, would it be possible to send it to me directly and I 
will give it a try again (It would be easier for me to see the problem)?


best regards


[1]; 
http://127.0.0.1/cgi-bin/mapserv.exe?map=f:/projects/mapserver-buildkit-2008/mapserver/msautotest/wxs/wfs_filter_mine2.map&&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=popplace_postgis&featureid=popplace_postgis.Tignish,popplace_postgis.Cheticamp,popplace_postgis.Halifax



On 24/02/2011 7:33 PM, Rainer Spittel wrote:

Hi,

I didn't had problems with UMN Mapserver for a very long time. I 
really love the product, and now I really need help.
I set up a WFS Server, accessing a PostGIS point table. I use 
OpenLayers to visualise the WFS layer, and use the cluster strategy to 
group close points to a large cluster point.


Now to the problem:

I want to retrieve the feature data from a cluster point. I already 
have the IDs of the features of the cluster.
Now I send a GetFeature request to the Mapserver to get all attribute 
information for the features, i.e. ID=231 and ID=273:


http://[...]/cgi-bin/stations?request=getfeature&service=WFS&version=1.0.0&typename=DTIS&OUTPUTFORMAT=gml3&featureid=DTIS.231,DTIS.273 



The response of this request contains the feature 231 twice in the 
response. If I add another ID to the request, I get the feature 231 
three times returned:

[...]
 
   
 [...]
 
   
 174.081500 -34.949500
   
 
 231
   
 
 
   
   [...]
 

As soon as I export the table from PostgreSQL into a shapefile, update the 
mapfile to use the shapefile and run the same query, I get the correct 
response.I also tracked the SQL query, which is sent to Postgres, and the query 
is correct. PostgreSQL returns the correct rows.
I use MapServer V5.4.1, which is not a very newer version,but I am constraint 
by the Debian packages.
Is this an user error (I am not smart enough)? Or a bug? If so, has this bug 
been resolved in a later version?
Any help is really appreciated.
Thanks,
Rainer
Rainer Spittel | Head of Development
SilverStripe
http://silverstripe.com 

Phone: +64 4 978 7330
Mobile: +64 21 1390370
Skype: fb3rasp


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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS Filter Encoding and resulting DB-queries

2011-02-23 Thread Yewondwossen Assefa

On 23/02/2011 8:06 AM, Stephan Holl wrote:

Hello Assefa,

Yewondwossen Assefa, [20110223 - 07:26:34]


Hi Stephan,

On 22/02/2011 3:44 AM, Stephan Holl wrote:

Hello list,

while playing with MapServer WFS Filter Encoding capabilities I
found some strange things when it comes to form the DB-queries (the
requested layer is PostGIS-driven).

It seems that there will always be a full table-scan and later on
the FE will be applied. Is this done by design?


   Filters that do include spatial filters end up using the mapserver
experssions. 'Simple' filters should end be using traslated into the
layer's filter expression and end up being used by postgis as part of
the data selection. What does the filter encoding looks like?

It is not a spatial-filter we use currently. It is an attribute-based
IsLike-Filter like seen here[1], but we use it with POST. So adding a
BBOX-related filter as another AND-filter will result in optimized
SQL-Query with only the subset fetched from the database? If so, this
seems worth to document though.

 The filter you sent as example should use the layer's filter element 
and that  should be used when retrieving the data at the postgis level. 
When the layer is in debug mode,  MapServer 5.6.x logs in this case 
shows something like (which indicates that the filter is used at the 
postgis level)

...
msPostGISLayerWhichShapes  query: select  and ( (NAME like 'Syd%' 
escape '!') )

...

Don't you get similar logs?




Best

Stephan

[1]
http://demo.mapserver.org/cgi-bin/wfs?&VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=cities&Filter=%3CFilter%3E%3CPropertyIsLike%20wildcard=%27*%27%20singleChar=%27.%27%20escape=%27!%27%3E%3CPropertyName%3ENAME%3C/PropertyName%3E%3CLiteral%3ESyd*%3C/Literal%3E%3C/PropertyIsLike%3E%3C/Filter%3E




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS Filter Encoding and resulting DB-queries

2011-02-23 Thread Yewondwossen Assefa

Hi Stephan,

On 22/02/2011 3:44 AM, Stephan Holl wrote:

Hello list,

while playing with MapServer WFS Filter Encoding capabilities I found
some strange things when it comes to form the DB-queries (the
requested layer is PostGIS-driven).

It seems that there will always be a full table-scan and later on the FE
will be applied. Is this done by design?

 Filters that do include spatial filters end up using the mapserver 
experssions. 'Simple' filters should end be using traslated into the 
layer's filter expression and end up being used by postgis as part of 
the data selection. What does the filter encoding looks like?



Using URL-substitutions of the Search-keyword and apply it to a
FILTER-element the resulting SQL-query has the given WHERE-filter set.
But this opens the door for SQL-injections AFAIK. Setting the
validation pattern is a little prevention.

Are there any other ways to realize a keyword-driven search with
MapServer beside FE IsLike or FILTER-substitution?

I am using MS 5.6.5 on debian stable.

TIA

Stephan



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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Re: GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252

2011-02-11 Thread Yewondwossen Assefa

On 11/02/2011 9:42 AM, sulu wrote:

Hi Assefa.


Yewondwossen Assefa wrote:

[1] http://trac.osgeo.org/mapserver/ticket/3297


So, is there a patch for Mapserver 6.0 (we use 5.6.5 currently) which allows
to apply custom encoding on a layer basis? That would be rather convenient.

Hi,

No there is no patch to address the problem you specified.  
http://trac.osgeo.org/mapserver/ticket/3297#comment:4 and 
http://trac.osgeo.org/mapserver/ticket/3297#comment:5 show that there is 
some work to define the solution and to implement it.


Assefa

--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] GetfeatureInfo-Request in an UTF-8 environment with shapfile in cp-1252

2011-02-09 Thread Yewondwossen Assefa

On 09/02/2011 7:34 AM, Daniel Morissette wrote:

On 11-02-08 09:37 AM, Siegel Andreas wrote:

Hi.
Our mapserver-eniromnent entirely works in utf-8 (mapfiles, webserver,
postgres, ..) with one exception, that is, all of our shapefiles.
The shapfiles are created/updated in an Windows-environment by several,
external contributors.
Hence they are encoded in Wiindows-ANSI (cp: 1252).
If i do an GetFeatureInfo-Request on the attibutes of the shapefiles all
special characters ("umlauts") are garbled.
This is no wonder since the content of the shapefile-attributes must be
recoded to utf-8 prior to insertion in the template.html.
How can this be acomplished? I could not find anything useful in the
documentation or with google.


The short answer is that there is no mechanism in MapServer at the 
moment to convert encoding of attributes displayed in a query 
template, so your only options are to either change the encoding of 
the data files to UTF-8, or change the template.html and its header to 
match the encoding of the data. (The only place where MapServer 
supports encoding conversion at the moment is in map labels, see the 
ENCODING keyword in the LABEL docs.)


Of course this could be a nice enhancement to MapServer if there was a 
group interested in funding it.


Daniel


Sorry to jump late on this. This issue I believe was identified and 
described in the trac bug [1]. An incomplete solutions was proposed in 
there but It definitely need more thinking.


[1] http://trac.osgeo.org/mapserver/ticket/3297

Assefa

--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] PointSymboliser

2011-01-14 Thread Yewondwossen Assefa

Hi,

You could check in http://www.mapserver.org/ogc/sld.html section *Table 
9. PointSymbolizer *for working examples and sld docs.



regards,


On 14/01/2011 7:45 AM, Tonton wrote:


hello
i try to use star for point symboliser like this sld definition !





star

#CC0066


#FF



10.0




but it's not working great

WMS server error. Invalid SLD document
how to validate sld file for mapserver ?

Tonton


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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] keyimage size and url

2011-01-12 Thread Yewondwossen Assefa

Hi,

On 11/01/2011 12:24 PM, steve.tout...@inspq.qc.ca wrote:


Hi,
In my mapfile I have a layer defined as a external WMS layer 
(CONNECTIONTYPE WMS, .)


I use KEYIMAGE to set the icon in my geoext legend.
For a layer the legend is complex and the icon is very small. is it 
possible to change the size of a KEYIMAGE?


 assuming you are calling mapserver cgi with mode=legend, you can 
change the keysize parameter by doing something like:

  http://.../mapserv?..&map.legend=keysize 100 100
Also, is it possible to use a getLegendGraphic request to get the 
legend icon instead of using KEYIMAGE (it seems that we cannot provide 
a url with KEYIMAGE)?


 I think it should work from what I can see. It should use your 
keyimage and respect the  width/height parameters sent with the 
getLegendGraphic request.



Does KEYIMAGE is the appropriate solution?
thanks for your help,
Steve


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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] How would I modify a map file so that when a getcapabilities is run it outputs as tiled layers (wms-t) including listing resolutions listed below:

2011-01-11 Thread Yewondwossen Assefa

Hi,

 Not sure I understand well the question: Mapserver does not support 
tiled layers by itself. Usually when doing tiles, you will use tilecache 
servers (tilecache.org, or mode-geocache 
http://code.google.com/p/mod-geocache/  ) that can be set up to   
possibly use MapServer as rendering engine .


 Wehn you mention getcapabilities, are referring to the getcapabilities 
support in the WMTS (web map tiling service from OGC)? If that is the 
case, I would recommend again to  check the tilecache libraries 
mentioned above.
If this does not reflect what you intend to accomplish, please give more 
details on what you expect from MapServer.


best regards,



On 11/01/2011 10:15 AM, John Mitchell wrote:
How would I modify a map file so that when a getcapabilities is run it 
outputs as tiled layers (wms-t) including listing resolutions listed 
below:




0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,6.866455078125E-4,3.4332275390625E-4,1.71661376953125E-4,8.58306884765625E-5,4.291534423828125E-5,2.1457672119140625E-5,1.0728836059570312E-5,5.364418029785156E-6,2.682209014892578E-6,1.341104507446289E-6,6.705522537231445E-7,3.3527612686157227E-7



Thanks,

John

--
John J. Mitchell


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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] external graphic symbol don't follow the GetStyles method

2010-12-01 Thread Yewondwossen Assefa

Hi Martin,

 I think you need to define WMS_SLD_SYMBOL_URL  to be able to generate 
an External graphic. This is documented (almost hidden :) in 
http://mapserver.org/ogc/sld.html#client-side-support


best regards,

On 30/11/2010 5:01 PM, Martin Ouellet wrote:

Hi,

When I used a external graphic element in a SLD like this:
test
indicatif103005
4.00


http://www.w3.org/1999/xlink"; 
xlink:type="simple" 
xlink:href="http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif"/>

GIF


Then I used the temporary mapfile generated by the call to define the 
same symbology but in my mapfile.

SYMBOL
NAME 
"http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif";

TYPE PIXMAP
IMAGE "/srv/mapfile/ms_tmp/4cf56a54_49f8_1.gif"
GAP -11
TRANSPARENT 0
  END

CLASS
  NAME "test"
  EXPRESSION ([indicatif] = 103005)
  MAXSCALEDENOM 4
  STYLE
ANGLE 360
COLOR 0 0 0
SIZE 5.5
SYMBOL 
"http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif";

WIDTH 1
  END
END

Question: Finally, I would like to expose this symbology through the 
GetStyles() method but it seem to be completely ignored?

test
indicatif103005
4.00



Is it normal? Thank you in advance!
MartinO


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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] What to do with WMS 1.3.0 and axis order of EPSG:2393?

2010-11-24 Thread Yewondwossen Assefa

Hi Jukka,

 Issues that you raise here are discussed in the following bugs (as a 
reference):

   http://trac.osgeo.org/mapserver/ticket/3582
 http://trac.osgeo.org/mapserver/ticket/3576

I think the idea of using ogr/gdal to reliably get the axis order is for 
may the best option. In that case when we use wms1.3.0 and up, wfs 1.1 
and up we always know that the axis order are the same regardless of the 
format in which the epsg is given.


regards,



On 24/11/2010 8:04 AM, Rahkonen Jukka wrote:

Hi,
The Finnish KKJ projection EPSG:2393 belongs to those with axis order 
Northing-Easting
http://www.epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:crs:EPSG::2393&reportDetail=short&style=urn:uuid:report-style:default-with-code&style_name=OGP%20Default%20With%20Code&title=EPSG:2393 

However, Mapserver WMS 1.3.0 from MS version 5.6.5 does not honour the 
official axis order but it is assuming the Easting-Northing BBOX also 
with WMS 1.3.0. Any suggestions about how to solve this?  In addition 
to the two I have, to stay with WMS 1.1.1 or to start using UTM 
projection with a real Easting-Northing axis order.
Problem is not only with Mapserver, GDAL based clients like QGis are 
creating WMS 1.3.0 request with Easting-Northing BBOX for EPSG:2393.  
Good is that QGIS and Mapserver play nicely together with WMS 1.3.0.  
Bad is that it is not a fair play because they  both are fooling with 
the rules.
I was wondering if this could be handled somehow in a similar way than 
Geoserver and deegree are doing it.  They are following the 
traditional Easting-Northing axis order if CRS is given as EPSG:2393.  
But if CRS is given as
urn:ogc:def:crs:EPSG::2393 they are using the axis order that is 
defined in the EPSG database.  This is a little bit fiddling with the 
standard, but the urn-format is the official one and the alternative 
short format gives better possibilities for success for the end user 
of ready made WMS/WFS clients.

-Jukka Rahkonen-


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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Classifying Dynamic Points

2010-11-23 Thread Yewondwossen Assefa
Maybe wrting a shape file would do the trick for you since you have the 
ability to add attributes?
  
http://svn.osgeo.org/mapserver/trunk/mapserver/mapscript/php/examples/test_writeshape.phtml


On 23/11/2010 9:56 AM, Burgholzer, Robert (DEQ) wrote:


I have succeeded in generating a point layer dynamically thanks to a 
wiki entry 
(http://trac.osgeo.org/mapserver/wiki/PHPMapScriptAddPointScale), but 
I find that I do not have the understanding that I need to color code 
these points by their value.  These values are precipitation 
summaries, that I want to apply a color ramp to.


I can't figure out how to add an attribute other than the x,y,z, and m 
coordinates.  Is this possible?  I really want to do this without 
having to use my postgis connection, but rather, with this dynamically 
generated layer approach if possible.


Thanks,

r.b.

Robert W. Burgholzer

Surface Water Modeler

Office of Water Supply and Planning

Virginia Department of Environmental Quality

rwburghol...@deq.virginia.gov 

804-698-4405

Open Source Modeling Tools:

http://sourceforge.net/projects/npsource/


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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Classifying Dynamic Points

2010-11-23 Thread Yewondwossen Assefa

On 23/11/2010 10:34 AM, Burgholzer, Robert (DEQ) wrote:


Hmm, maybe a **little** more work than I was hoping for, but that 
might be a workable solution.  Thanks for the tip/link.


Guess the question still remains, do these pointObj's have no other 
parameter attributes?


 Not that I know of.  (Doc is available at 
http://mapserver.org/mapscript/php/index.htm to see of classes and 
methods available)


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


Re: [mapserver-users] SLD and OUTPUTFORMAT compatibility?

2010-11-23 Thread Yewondwossen Assefa

Hi Martin,

 Can you try to check the map file after the sld has been applied: you 
can do that by setting your map file in debug and checking the log file  
look for something like "...Map file after SLD was applied"  (ex: 
something like this):

CONFIG  "MS_ERRORFILE" "f:/msapps/gmap-ms40/htdocs/gmap.log"
DEBUG 5

We can then check why the same style setting is not drawing the same way 
with the 2 drivers.  Please also indicate which version of MapServer you 
are using.


regards,



On 23/11/2010 9:15 AM, Martin Ouellet wrote:

Hi all,

I have 2 two differents settings for symbolize my lines (refer to SLD 
settings below):


1) a dashed line which is working *_only when I specify the 
outputformat:_ *DRIVER "*GD*/PNG"
**Note that with the driver GD/PNG, the external graphic below is not 
working but the symbol (ico-ulaval-flag.gif) is copied locally in the 
/ms_tmp directory.

It seem to be ignored by mapserver (but raising no error)...

2) a external graphic which is working *_only when I specify the 
outputformat:_ *DRIVER "*AGG*/PNG"


Q: Is there a way/config to support both at the same time?

any advice?

Thanks you in advance!

MartinOuellet

SLD settings:
__


Re: [mapserver-users] Spatial Filter with WFS

2010-11-23 Thread Yewondwossen Assefa

On 23/11/2010 9:00 AM, Rahkonen Jukka wrote:
Y.A, a question for you:  I have thought that also the filters should 
be presented as gml3 with WFS 1.1.0 and thus posList should be used 
instead of coordinates. Am I wrong with this belief?  By the way, this 
is how Geoserver 2.1 beta 1 writes out on multipolygon as gml3


Yes with wfs 1.1, It should be gml3. Note that the parsing of the gml 
tree is done through OGR and I believe OGR is flexible to read the 
different syntax for a  tag. We do not schema validate the 
gml in MapServer and take as assumption that It is good, if it is parsed 
properly by OGR.








37.510991 -88.071564 37.4762736 -88.087883 37.442852 
-88.311707 37.409308 -88.359177

-Jukka Rahkonen-


 I was not aware of the MultiSurface  element. It is now added in svn 
(http://trac.osgeo.org/mapserver/ticket/3615)



regards,


--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Spatial Filter with WFS

2010-11-23 Thread Yewondwossen Assefa

Hi all,

As noted MapServer does not support gml:Surface. The original request 
with gml:Polygon seems to be correct.
Andreas, is it possible to package it and send it to me off list. I can 
quickly check what the issue is.


regards,



as noted Mapserver does not support gml:Surface.

On 23/11/2010 8:26 AM, Rahkonen Jukka wrote:

Hi,

This one may not be the only problem, but I would start by creating a 
valid WFS 1.1.0 request by giving a filter as gml3 or alternatively go 
on with using gml2 filter but changing version to WFS 1.0.0.  Here 
below is a WFS 1.1.0 request that works against deegree.  It does not 
necessarily work against Mapserver because it can well be that 
Mapserver does not support gml:Surface, even if the surface is a plain 
polygon as in this  case.  However, you see that gml3 does not use 
or Mapserver bug or both if your request works.



http://www.opengis.net/ogc"; 
xmlns:gml="http://www.opengis.net/gml"; 
xmlns:wfs="http://www.opengis.net/wfs"; service="WFS" version="1.1.0" 
maxFeatures="1000" outputFormat="text/xml; subtype=gml/3.1.1">
http://www.deegree.org/app"; srsName="EPSG:26912" 
typeName="app:Counties">



http://www.deegree.org/app";>
app:position






87.0 198.0 149.0 239.0 261.0 202.0 263.0 89.0 161.0 80.0 87.0 
198.0










-Jukka Rahkonen-

Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
 
[mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta Fischer, Andreas

Lähetetty: 22. marraskuuta 2010 19:36
Vastaanottaja: mapserver-users@lists.osgeo.org 


Aihe: [mapserver-users] Spatial Filter with WFS

Dear MapServer-User,
I configured MapServer version 5.6.5 as WMS- and WFS-Server to offer 
information about land and properties. I use PostgreSQL/PostGIS 
(8.4.4/1.5.1) as datastore in this case. The spatial reference system 
is EPSG:25832 und the type of the geometry is MULTIPOLYGON. OS is Suse 
Linux Enterprise Server 11, Servicepack1.


WMS and WFS work fine until I use a spatial filter within the 
getFeature-Request of the WFS. In this case the response doesn't 
deliver any features. Nevertheless the number of features (e.g. 
numberOf Features='4') is correct. I tried this out with a couple of 
different boundingboxes and the known number of features that 
intersect these boundigboxes. In all cases I do not get any features 
back, but always the right number. So it seems that at least the 
intersection of the boundingbox and my data works correctly.
Please take a look at the following request and response that 
illustrate that problem:

Request:
http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&REQUEST=getFeature&typename=folie001&SERVICE=WFS&VERSION=1.1.0 
&

Filter=

msGeometry



409350,5709890 409350,5709910 409370,5709910 
409370,5709890 409350,5709890







Response


xmlns:ms="http://mapserver.gis.umn.edu/mapserver"; 
xmlns:gml="http://www.opengis.net/gml"; 
xmlns:wfs=http://www.opengis.net/wfs 
xmlns:ogc="http://www.opengis.net/ogc"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver 
http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=folie001&OUTPUTFORMAT=text/xml 
; 
subtype=gml/3.1.1 http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"; numberOfFeatures="4">



-1.00 -1.00
-1.00 -1.00



Indeed of this behavior the WFS returns features when I do not use a 
spatial filter. Therefore in my opinion the WFS should be configured 
right in general. To me the spatial filter seems to be the problem. 
Unfortunately I do not have any ideas what is going wrong.


For more information you can take a look at my MapFile and a part of 
the capabilities document returned from the WFS below:


MAP
NAME "ku_testwfs"
STATUS ON
SIZE 400 520
EXTENT 389965 5693582 420177 5732815
UNITS METERS
PROJECTION
"init=epsg:25832"
END
SYMBOLSET "/mapserver/symbols/symbols_alk.sym"
FONTSET "/mapserver/fonts/fonts.fnt"
IMAGECOLOR 255 255 255
WEB
IMAGEPATH "/mapbender/mb262/http/tmp/"
IMAGEURL "http://myserver/mapbender/tmp/";
METADATA
"ows_onlineresource" 
"http://myserver/cgi-bin/mapserv?map=/mapserver/mapfiles/u218768/ku_testwfs.map";

"ows_title" "Liegenschaftskarte, Kreis Unna"
 

Re: [mapserver-users] Dinamic SLD style

2010-10-25 Thread Yewondwossen Assefa

Hi there,

 It is possible to do attribute binding on some elements but It was not 
implemented for the Graphic symbol property name. I have added that 
support in trunk. It is described in the bug 3586 [1].

 You might want to add your name to that bug and comment on it.

regards,

[1]: http://trac.osgeo.org/mapserver/ticket/3586
On 25/10/2010 5:55 AM, Joaquín Rodriguez-Guerra Urcelay wrote:

Hello, I am trying to create a dinamic sld style for a shapefile in mapserver. 
I come from geoserver, and I was wondering if there was any way to use 
properties of the shapefile in the sld style, as in the example below where 
points in the shapefile with tipo=3 are represented with a ship3.png rotated 
COG deegrees.  Is this possible in mapserver? Thanks for your help!

 
   ship3
   
 
   Tipo
   3
 
   
   


  
  image/png

16
COG
  
   
 

Joaquín Rodríguez-Guerra Urcelay

__
This message including any attachments may contain confidential
information, according to our Information Security Management System,
  and intended solely for a specific individual to whom they are addressed.
  Any unauthorised copy, disclosure or distribution of this message
  is strictly forbidden. If you have received this transmission in error,
  please notify the sender immediately and delete it.

__
Este mensaje, y en su caso, cualquier fichero anexo al mismo,
  puede contener informacion clasificada por su emisor como confidencial
  en el marco de su Sistema de Gestion de Seguridad de la
Informacion siendo para uso exclusivo del destinatario, quedando
prohibida su divulgacion copia o distribucion a terceros sin la
autorizacion expresa del remitente. Si Vd. ha recibido este mensaje
  erroneamente, se ruega lo notifique al remitente y proceda a su borrado.
Gracias por su colaboracion.

__

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




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] wfs 1.1 capabilities breaks when using special characters

2010-10-22 Thread Yewondwossen Assefa

Hi,

 This is probably related to encoding issues with libxml2 described in 
http://trac.osgeo.org/mapserver/ticket/3297
 Some items are still missing the encoding conversion.  If there is no 
sensitive info in your map, It would be nice to attach it to the bug so 
It can be tested.


regards,

On 22/10/2010 8:29 AM, Holger Porath wrote:

Hi list,

mapserver 5.6 breaks when we perform a getcapabilities request for wfs 
1.1. This only happens when the capabilities response contains special 
characters (like the copyright symbol or umlauts). The response is cut 
at the position where the special character is returned:
http://www.opengis.net/gml"; 
xmlns:wfs="http://www.opengis.net/wfs"; 
xmlns:ows="http://www.opengis.net/ows"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:ogc="http://www.opengis.net/ogc"; 
xmlns="http://www.opengis.net/wfs"; version="1.1.0" 
xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";> 
 test title 
test abstract  
OGC WFS 
1.1.0test 
fees copyright


The error log shows the following:
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71]encoding
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] error :
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] output 
conversion failed due to conv error, bytes 0xFC 0x6D 0x65 0x72

[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] I/O
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] error :
[Fri Oct 22 13:57:57 2010] [error] [client 10.6.241.71] encoder error
The strange thing is that for wfs 1.0 the request/response is working 
fine! It is not cut and returned as usual. The issue is only for wfs 1.1.

Does anyone have any idea?
Thanks in advance.
Holger
---
Dipl. Wirt. Inform. Holger Porath
Wangeroogestraße 63
45665 Recklinghausen
holger.por...@porath.de___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Trouble shooting SLD?

2010-10-19 Thread Yewondwossen Assefa

 Hi there,

I do not think there is any thing wrong wit the LSD you posted. I used 
it locally with MapServer svn and It did apply (after I changed the 
layer name to my local data set.
 I see that your map file has the log set and you should be able to see 
something in the log file starting with msApplySLD()   Do you see that?


Another point is that the sld file is temprarly saved into the tnagepath 
defined in your mapfile (IMAGEPATH 'R:/webtemp/' ): Would there be any 
problem for the web user to write files in that directory?  You can use 
also the SLD_BODY to avoid that. Here is your encoded sld [1]  that I 
have used and works (you need to change the name inside it back to 
reflect your map file):


Please also indicate the version of MapServer (sorry if I have missed 
this info in the thread). I am using the current trunk version.


regards

[1] : 
%3CStyledLayerDescriptor+version%3D%221.0.0%22%3E%3CNamedLayer%3E%3CName%3EWorldGen%3C%2FName%3E%3CUserStyle%3E%3CTitle%3ECommunities%3C%2FTitle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CPolygonSymbolizer%3E%3CFill%3E%3CCssParameter+name%3D%22fill%22%3E%23d2741c%3C%2FCssParameter%3E%3CCssParameter+name%3D%22fill-opacity%22%3E1%3C%2FCssParameter%3E%3C%2FFill%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%2300%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E0.26%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FPolygonSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E



On 18/10/2010 5:22 PM, K wrote:
As I am still unable to get my SLD to work, I wonder if the shape file 
(is it a shape file?) and map file for that example is available to 
download somewhere? This way I can toss it on my server and it would 
let me see if my problem is software related, rather then something 
wrong with my files.


Thanks,

Ken

On 18/10/2010 5:31 PM, Jeff McKenna wrote:

On 10-10-18 11:16 AM, Rahkonen Jukka wrote:

I noticed that none of the full request links in the document
http://mapserver.org/ogc/sld.html are working now


Good catch Jukka. The examples should be working again, please re-try.

-jeff



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




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] wfs filter request

2010-09-30 Thread Yewondwossen Assefa

 Hi There,

 I have loged this in http://trac.osgeo.org/mapserver/ticket/3557. Fix 
is committed for the 5.6 branch. Please give it a try and update the bug.


regards,

On 30/09/2010 3:43 AM, Holger Porath wrote:

Hi again!

We are still having issues with using mapserver 5.6.5 as a wfs server 
together. When we submit a wfs getfeature filter request mapserver 
doesn't use the filter in the sql statement. It just searches all the 
objects in the database and applies the filter on the result. Thus, we 
are getting a timeout.


Here is our filter request:

Filter=escape="ESC">FS_FSZ111


As you can see the filter for the attribute "FS_FSZ" is set to "111".

The debug log shows that this isn't used in the sql at all: Using this 
Sql to retrieve the data : SELECT fs_id, FS_GKNR, FS_FLNR, FS_FSZ, 
FS_FSN, FS_FSSTATUS, FS_ID, FS_FSRWERT_ABS, FS_FSHWERT_ABS, 
fs_koordinate FROM os_flst
I expected to see a where clause like the following: where fs_fsz like 
"111"
When we switch back to mapserver 5.0.0 we see the correct where clause 
in the debug log. So what are we doing wrong or is this a bug?


Thanks for your help.
Regards,
Holger

This is how our layer definition looks like:
LAYER
NAME "test_flst"
 METADATA
 "wfs_extent" "341 547 3666000 5726000"
 "wfs_title" "test_flst"
 "gml_featureid" "fs_id"
 "gml_include_items" "all" # optional
 END # of METADATA
 TYPE POINT
 STATUS ON
CONNECTIONTYPE oraclespatial
 CONNECTION "user/p...@service"
 DATA "fs_koordinate from os_flst USING UNIQUE fs_id NONE"
 PROJECTION
 "init=epsg:31467"
 END # of PROJECTION
 DUMP TRUE
END # of LAYER
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Problems labelling using Halo option

2010-09-30 Thread Yewondwossen Assefa

 Hi,

Check the file  
C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map and the 
layer where the sld is applied, the label object should have the 
outlinecolor set if it worked properly. Is that the case? I am not sure 
I understand the font issue, but you can also see what font was set fir 
that label object.


regards,


On 30/09/2010 7:43 AM, David Alda Fernandez de Lezea wrote:

Assefa,

Yes, it's valid. It works, but not with desired behaviour. It draws the 
polygons with the labels but without the Halo effect.

I forgot to put xml headers in the previous email.


http://www.opengis.net/sld
StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld";
xmlns:ogc="http://www.opengis.net/ogc";
xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

I also forgot to mention that if I putVerdana  for example, and Verdana does not exist 
in my fontset, it does the labelling properly (including Halo), but it's like if mapserver gets some 
default values, because the size has changed and even though I change it in th e SLD, the size keeps 
the same.



WMS Log

[Thu Sep 30 13:39:53 2010].513000 CGI Request 1 on process 256
[Thu Sep 30 13:39:53 2010].685000 msApplySLD(): Map file after SLD was applied 
C:/ms4w/Apache/htdocs/ogcservices/tmp/4ca47709_100_1._sld.map[Thu Sep 30 
13:39:53 2010].826000 msDrawRasterLayerLow(orto0): entering.
[Thu Sep 30 13:40:02 2010].216000 msDrawMap(): Layer 4 (orto0), 8.390s
[Thu Sep 30 13:40:03 2010].606000 msDrawMap(): Layer 0 (vinedos_sigpac), 1.390s
[Thu Sep 30 13:40:04 2010].122000 msDrawMap(): Layer 3 (vinedos_disolve_bn), 
0.516s
[Thu Sep 30 13:40:04 2010].513000 msDrawMap(): Layer 2 (vinedos_disolve), 0.391s
[Thu Sep 30 13:40:05 2010].919000 msDrawMap(): Layer 1 (vinedos), 1.406s
[Thu Sep 30 13:40:07 2010].106000 msDrawMap(): Layer 7 (vinedos_parcelas), 
1.187s
[Thu Sep 30 13:40:07 2010].106000 msDrawLabelCache(): 
labelcache_map_edge_buffer = -10
[Thu Sep 30 13:40:07 2010].106000 msDrawMap(): Drawing Label Cache, 0.000s
[Thu Sep 30 13:40:07 2010].106000 msDrawMap() total time: 13.343s
[Thu Sep 30 13:40:08 2010].606000 msSaveImage() total time: 1.500s
[Thu Sep 30 13:40:08 2010].606000 mapserv request processing time (msLoadMap 
not incl.): 15.093s
[Thu Sep 30 13:40:08 2010].637000 msFreeMap(): freeing map at 015C6820.

Thanks.



De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca]
Enviado el: jueves, 30 de septiembre de 2010 13:24
Para: David Alda Fernandez de Lezea
CC: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Problems labelling using Halo option


Hi there,

  Is the sld xml you are using valid?  Grabbing it from this e-mail, It seems to not 
validate (several   tags). It might just a copy paste but make 
sure of that.
You can aslo set your map in debug mode ( DEBUG 5 for example) and check your 
logs to see if the xml was parsed properly and if that is the case you should 
also be able a tmp file of your map file after SLD was applied

regards,


On 30/09/2010 3:34 AM, David Alda Fernandez de Lezea wrote:

Hi list,

I'm developing a program that generates some images from a WMS with a 
dynamic generated SLD. The problem is that I'm telling MapServer to generate 
some labels with Halo, to make them easy to read, using the following code:


vinedos






provincia1

municipio43

poligono4

parcela880

recinto1




#00
2
5 5 5 5





poligono-parcela-recinto


times
18
bold




0.50.5





2


#FF
0.85



#00
0.65







But when I receive the image the Halo is not applied (see attached 
file). My mapfile is as follows:

NAME "WMSSERVER"

STATUS ON
EXTENT 46 471 61 482 # Euskadi  
SHAPEPATH "extra/shapes/"
FONTSET "extra/fonts/fonts.txt"
SYMBOLSET "extra/symbols/symbols.sym"


IMAGETYPE "image/png; mode=24bit"

OUTPUTFORMAT
   NAME png
   DRIVER "AGG/PNG"
   MIMETYPE "image/png"
  

Re: [mapserver-users] Problems labelling using Halo option

2010-09-30 Thread Yewondwossen Assefa

 Hi there,

 Is the sld xml you are using valid?  Grabbing it from this e-mail, It 
seems to not validate (several   tags). It might just a 
copy paste but make sure of that.
You can aslo set your map in debug mode ( DEBUG 5 for example) and check 
your logs to see if the xml was parsed properly and if that is the case 
you should also be able a tmp file of your map file after SLD was applied


regards,


On 30/09/2010 3:34 AM, David Alda Fernandez de Lezea wrote:

Hi list,

I'm developing a program that generates some images from a WMS with a dynamic 
generated SLD. The problem is that I'm telling MapServer to generate some 
labels with Halo, to make them easy to read, using the following code:


vinedos





provincia1
municipio43
poligono4
parcela880
recinto1




#00
2
5 5 5 5




poligono-parcela-recinto


times
18
bold



0.50.5





2


#FF
0.85



#00
0.65







But when I receive the image the Halo is not applied (see attached file). My 
mapfile is as follows:

NAME "WMSSERVER"

STATUS ON
EXTENT 46 471 61 482 # Euskadi  
SHAPEPATH "extra/shapes/"
FONTSET "extra/fonts/fonts.txt"
SYMBOLSET "extra/symbols/symbols.sym"


IMAGETYPE "image/png; mode=24bit"

OUTPUTFORMAT
   NAME png
   DRIVER "AGG/PNG"
   MIMETYPE "image/png"
   IMAGEMODE RGBA
   EXTENSION "png"
   FORMATOPTION "TRANSPARENT=ON"
   FORMATOPTION "INTERLACE=OFF"
END
OUTPUTFORMAT
  NAME jpeg
  DRIVER "GD/JPEG"
  MIMETYPE "image/jpeg"
  IMAGEMODE RGB
  EXTENSION "jpg"
END
IMAGECOLOR 255 255 255
UNITS METERS

DEBUG ON
CONFIG "MS_ERRORFILE" 
"C:/ms4w/Apache/htdocs/ogcservices/logs/wms_impresiones_lotes_log.log"
DEBUG 5


WEB
IMAGEPATH "C:/ms4w/Apache/htdocs/ogcservices/tmp/"
IMAGEURL "tmp/"
METADATA
"wms_name""IKT WMS Server"
"wms_title"   "Servidor WMS IKT - 
Impresiones Lotes"
"wms_onlineresource"  
"http://192.168.1.161/cgi-bin/mapserv.exe?map=../htdocs/ogcservices/impresiones_lotes_wms.map&";
"wms_srs" "EPSG:23030 EPSG:4326"
"wms_transparent"   "true"
"wms_abstract""Servicio de mapas WMS de IKT 
Nekazal Teknologia. Powered by Apache and UMN MapServer. Servicio WMS para las impresiones por 
lotes."
"wms_keywordlist" "IKT,Euskadi,Mapas 
Euskadi"
"wms_feature_info_mime_type"   "application/vnd.ogc.gml"
"labelcache_map_edge_buffer" "-10"
END
END

PROJECTION
"init=epsg:23030"
END

LAYER
STATUS ON
CONNECTIONTYPE postgis
CONNECTION "user=postgres password= dbname=VITICOLA_IMPRESIONES 
host=192.168.1.161 port=5432"
NAME "vinedos"

PROJECTION
"init=epsg:23030"
END
DUMP TRUE
TYPE POLYGON
METADATA
"wms_title" "vinedos"
"wms_srs" "EPSG:23030"
"wms_name""vinedos"
"wms_server_version"  "1.1.1"
"wms_format"  "image/gif"
"wms_transparent" "true"
"wms_extent""47 470 61 482"
"gml_include_items" "all"
END 
#Sentencia SQL para obtener los datos
DATA "the_geom FROM vinedos using unique gid using SRID=23030"

CLASS
NAME "Vinedos"
STYLE
SYMBOL 'dashed1'
OUTLINECOLOR 0 0 0
END
TEMPLATE "ttt_query.html"
END

PROCESSING "LABEL_NO_CLIP=ON"
END

END

And my font file:

sansVera.ttf
esri-130esri_130.ttf
times   times.ttf
times-bold  timesbd.ttf
arial   arial.ttf

No error messages are received.

Any ideas??

Thanks.

Un saludo,

···

Re: [mapserver-users] SVG, PDF and Flash output in MapServer 6.0.

2010-09-20 Thread Yewondwossen Assefa

 On 10/09/2010 4:08 PM, Andreas Neumann wrote:

Hi,

Thank you for your information on future plans about output based on 
Cairo.


Regarding the SVG support, my main concern is that if the output goes 
through Cairo than there is no chance of adding attributes and 
semantics to the vector features in SVG - am I correct? In SVG one 
could f.e. embed title and description elements, as well as non-graphical 


 That is correct from what I can see.
attributes in a separate namespace in the XML output. Now that SVG 
support will be widespread in all browsers (IE9 will be implementing 
SVG), I would assume that people would make more use of SVG output, 
also for interactive maps. In this setup it would be nice if one could 
have the option between a pure graphical output (probably the CAIRO 
output version) and a more semantically rich output (a separate output 
driver?) I would recommend to go with Cairo, but leave the door open 
for another, alternative output driver for more sophisticated SVG output.


 I agree with you that we would have more control on what we can output 
if we have a native MapServer svg driver.  I think adding a native SVG 
driver will always possible baring in mind that there is enough 
need/interest to add it and support it in the long term


Thanks for your feedback.

regards,


Regarding SWF: it would be better if Flash would die in the long run - 
it is not part of the open web and a black box. All browser project 
now seem committed to implement SVG and canvas. So I myself wouldn't 
care if you would drop SWF support. Other users may think different.


Just my two cents,
Andreas

On 9/10/10 5:09 PM, Yewondwossen Assefa wrote:

Hi all,

 The Dev team is reviewing and preparing for the 6.0 MapServer 
release [1][2].   There are significant changes and new features in 
this release. One of them is the rendering overhaul. The reasons 
behind is to facilitate the long term maintenance and make sure that 
all the output formats are in sync feature-wise.
Currently output drivers such as svg, pdf and flash lag in 
functionality and supported features compare to the AGG/GD output.
As part of  this re-factoring, the Cairo library [3] will be added 
allowing SVG and PDF outputs to pass through this library.  This 
would deprecate the current support of native svg and pdf in MapServer.


The other renderer that is affected is the SWF (Flash) renderer: at 
this point there is no effort to bring this output feature to the 
level of other renderers. This means that there is a big chance that 
the SWF support will not be part of the 6.0 release (unless someone 
wants to fund it).  Is this something that affects lots/some users?


best regards,


[1] http://trac.osgeo.org/mapserver/wiki/60ReleasePlan
[2] http://trac.osgeo.org/mapserver/wiki/60MigrationIssues
[3] http://cairographics.org/


*
*
--

Assefa Yewondwossen
Software Analyst

Email:yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925




___
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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


[mapserver-users] SVG, PDF and Flash output in MapServer 6.0.

2010-09-10 Thread Yewondwossen Assefa

 Hi all,

 The Dev team is reviewing and preparing for the 6.0 MapServer release 
[1][2].   There are significant changes and new features in this 
release. One of them is the rendering overhaul. The reasons behind is to 
facilitate the long term maintenance and make sure that all the output 
formats are in sync feature-wise.
Currently output drivers such as svg, pdf and flash lag in functionality 
and supported features compare to the AGG/GD output.
As part of  this re-factoring, the Cairo library [3] will be added 
allowing SVG and PDF outputs to pass through this library.  This would 
deprecate the current support of native svg and pdf in MapServer.


The other renderer that is affected is the SWF (Flash) renderer: at this 
point there is no effort to bring this output feature to the level of 
other renderers. This means that there is a big chance that the SWF 
support will not be part of the 6.0 release (unless someone wants to 
fund it).  Is this something that affects lots/some users?


best regards,


[1] http://trac.osgeo.org/mapserver/wiki/60ReleasePlan
[2] http://trac.osgeo.org/mapserver/wiki/60MigrationIssues
[3] http://cairographics.org/


*
*

--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS GetFeature and SLD filter "Between"

2010-08-05 Thread Yewondwossen Assefa

Hi There,

 Would you please let me know what is the underlying layer's format  
that OGR is using;  It might help to to reproduce the problem?


From reading this, the OGC filter has been translated into an sql 
statement and passed to OGR (something like "WHERE row  BETWEEN 2 AND 
4"). From my understanding, OGR passes sql statements to underlying 
drivers that support sql or parses it it self when the driver does not 
support it.


I have opened a bug on it http://trac.osgeo.org/mapserver/ticket/3510 
and will update it as I find the problem.


You can maybe also try your filter by converting the between operator to 
>= and <= as a work around.


best regards,


On 04/08/2010 6:27 AM, Arnd Wippermann wrote:

Hi

if I use a SLD filter "Between" for filter the WFS getfeature, I get the
following error:


http://www.opengis.net/ogc";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.opengis.net/ogc
http://schemas.opengis.net/wfs/1.0.0/OGC-exception.xsd";>
   
msWFSGetFeature(): WFS server error. FLTApplyFilterToLayer() failed
msOGRFileWhichShapes(): OGR error. SetAttributeFilter( (row BETWEEN 2 AND
4)) failed on layer Squares.
Failed to identify operation:BETWEEN
   


Is it a known bug, or is perhaps the post request incorrect?

That's the post request

post

http://www.opengis.net/wfs"; service="WFS"
version="1.0.0" maxFeatures="100"
xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

http://www.opengis.net/ogc";>name
http://www.opengis.net/ogc";>description
http://www.opengis.net/ogc";>row
http://www.opengis.net/ogc";>column
http://www.opengis.net/ogc";>indice
http://www.opengis.net/ogc";>msGeometry
http://www.opengis.net/ogc";>

row

2


4






MapServer 5.6.1

I hope someone has a clue.

Arnd

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

   



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] vector pdf output

2010-08-04 Thread Yewondwossen Assefa

On 03/08/2010 5:03 PM, Worth Lutz wrote:


Does MapServer support vector PDF output??

Also I am experimenting on ver. 5.6.3 with pdf output and am getting 
some output but it does not look like the png output.  I also have not 
yet figured out why I sometimes get nothing for some layers.  Still 
experimenting...


Can anyone point me to some examples?

Is the cairo/pdf output available in the svn trunk?  If I compile that 
will I be able to experiment with it?  Any advise on trying that?


If you want to experiment, you should try using the version in the 
sandbox (http://svn.osgeo.org/mapserver/sandbox/mapserver6/), instead of 
trunk. This sandbox  will eventually be merged to trunk Ii uses the 
cairo library for the pdf output From what I can see, It seems to be in 
a good shape. Note that the imagetype to use is pdf.
You can see an example of a pdf generated at 
http://www3.dmsolutions.ca/tmp/gmap-ms60.pdf


best regards,

--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] getlegendgraphic error with GROUP layers

2010-07-12 Thread Yewondwossen Assefa



@Assefa: Do you have a more detailed implementation plan for this
issue? I am also highly interested in this feature.

Best regards

Stephan

[1] http://trac.osgeo.org/mapserver/ticket/3411

   
It is still planned to be addressed before 6.0. I am not sure yet about 
the release date but I intend to spend some time before that to close 
bugs tagged for 6.0.


regards,

--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors?

2010-07-12 Thread Yewondwossen Assefa

On 11/07/2010 6:02 PM, Blammo wrote:

More info,

Using this service call:

https://www.sharedgeo.org/MNGEO-ro/public/ows?SERVICE=wfs&VERSION=1.1.0&REQUEST=getFeature&TYPENAME=layer_3&FILTER=%3CFilter%3E%3CDWithin%3E%3CPropertyName%3EGeometry%3C/PropertyName%3E%3Cgml:Point%3E%3Cgml:coordinates%3E-93.093,44.955%3C/gml:coordinates%3E%3C/gml:Point%3E%3CDistance%20units=%27f%27%3E0.0438%3C/Distance%3E%3C/DWithin%3E%3C/Filter%3E 



I tried, FT, FEET, Ft, ft, Feet and f, (this last, the "f" is the only 
thing that changed the results, but it only increased the return from 
three to six points):


I used the same unit distance of 0.0438, which the majority of time 
returns three points. These points in ground units are actually within 
~2360ft of each other.  I have no idea how the 0.0438 number relates 
to that.  Is it possibly related to the LAT/LON coordinate system?


This is working enough for me to get through my current stage of 
development, I'm just trying to get a handle on how the filter units 
are supposed to relate to the map units.  Maybe DWithin has a PROJ 
option or something??




When the units in unrecognized (like "f" in this case), It should be 
ignored the and distance is assumed to be the same units as the gml 
element that was part of the query.  You can add a projection to the gml 
element using the srsrName element.


best regards,


--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors?

2010-07-12 Thread Yewondwossen Assefa

On 11/07/2010 5:40 PM, Blammo wrote:

Ok,

I got another related question . .

On a DWithin return list, any chance that the results are ordered by 
distance from a point, closest first?  Or isn't this something I can 
depend on from MapServer?


There is no guarantee on that. The search is done within the distance 
and all points that fit the criteria are returned in the order they are 
found.



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS Filter encoding . . . Anyone know what the Units list for DWithin that MapServer honors?

2010-07-11 Thread Yewondwossen Assefa

On 11/07/2010 5:26 AM, Blammo wrote:

All,

I've got a filter request working with DWITHIN but get seemingly weird 
returns.. Using EPSG:4326, and "m" (Does this = Miles??) I get returns 
that I expect when using fractional "m" values.


What other unit designations are honored?  I don't see anything in the 
getCapabilities about units or the MapServer docs.



here are the units and abbreviations that can be used:
- m or meters: can be used to indicate meters
- km or kilometers:  kilometers
- NM: nauticalmiles
- mi or miles : miles
- in or inches : inches
- ft or feet : feet
- deg or dd: degree
- px: pixels

ticket was added to add this in the docs 
(http://trac.osgeo.org/mapserver/ticket/3488)


Lastly, does MapServer support CQL (yet?), I saw references to this in 
my searching.



Not that I am aware of.


best regards


--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS Server does not support VERSION 1.1.0

2010-07-08 Thread Yewondwossen Assefa

Chris,

Is your Linux version still a 5.2.1?
Note that I have tried your request locally with current MapServer 
version (svn) and got expected results.


regards,


On 08/07/2010 3:06 AM, Chris Green wrote:


Hi All

I have a situation that I cannot understand. For some time I have been 
developing an application using OpenLayers and Mapserver, working on a 
Windows platform with Mapserver CGI 5.2.1 that I downloaded as MS4W 
from MapTools.org. The application involves a number of WFS searches 
for which I have been using WFS 1.1.0 without any problems.


Now I am migrating to a Linux platform in order to get ready for 
production, using Fedora. I downloaded the FGS Linux installer from 
MapTools.org and have made the application run under this environment. 
However there is now a problem with WFS . In response to a post as 
follows:


|http://www.opengis.net/wfs"; service="WFS" 
version="1.1.0" maxFeatures="100" 
xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>typeName="feature:Countries_full" srsName="EPSG:4326" 
xmlns:feature="http://mapserver.gis.umn.edu/mapserver";>xmlns:ogc="http://www.opengis.net/ogc";>matchCase="true">REGIONEurope|


I get a response of:

xmlns="http://www.opengis.net/ogc"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://www.opengis.net/ogc 
http://schemas.opengis.net/wms/1.1.1/OGC-exception.xsd";>




msWFSDispatch(): WFS server error. WFS Server does not support VERSION 
1.1.0.






If I modify the WFS protocol to 1.0.0 I don't get the error, but I 
don't get any results either. This is the case for all of the WFS 
searches in the application, although they still work fine under MS4W. 
Can anyone help me see what I am doing wrong?


Chris


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



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] follow-up on OGC compliancy

2010-07-02 Thread Yewondwossen Assefa

On 02/07/2010 6:49 AM, Bart van den Eijnden wrote:

Hi list,

a follow-up on this e-mail from Daniel Morissette:

http://www.mail-archive.com/mapserver-users@lists.osgeo.org/msg08668.html

Is there still the plan to get the official stamp from OGC on WMS compliancy? 
Any timeline?

Is there still work ongoing for WFS compliancy, or does this need sponsorship 
to actually happen? Also, I assume it is technically viable to have Mapserver 
WFS 1.1 compliant, or are there big / impossible hurdles to be taken?

   
 There was  some effort put toward wfs 1.1 compliancy tests with 
several elements identified and corrected. Summary of this effort is 
described here [1].
 There is still substantial work to be done to be able to pass the 
majority of the tests (things such addressing  mandatory/non mandatory 
attributes, support of Xpath expressions, support of the Sort operator, 
encoding comes into mind).  I believe there will still be some issues 
with some of the tests that we found were inconsistent (although I have 
not followed the details, note that CITE has done some work to 
upgrade/correct the tests). There will be some effort toward this again 
sometime before the 6.0 release.


[1]: 
http://trac.osgeo.org/mapserver/wiki/MapServerOGCCITEComplianceWFS110Notes


best regards.


TIA.

Best regards,
Bart___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

   



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] OGC spatial filter BBox

2010-07-02 Thread Yewondwossen Assefa

On 30/06/2010 9:00 AM, Daniel Degasperi wrote:

Hi,
does the spatial filter BBox described in 
http://mapserver.org/ogc/sld.html work?


If I take look at the "full_request_6d" example, it seems the filter 
will be applied on all the geometries.


I tried to apply a spatial BBox filter also on a set of polygons,
but instead to change the color for the polygon within the given bbox, 
it changed the color of every geometry of my layer.


 I believe in this case that the bboxfilter  in the sld is "over 
written" by the bbox of the wms request. I have added a trac on it [1] 
and will fix it for the 6.0 release.


best regards,

[1]: http://trac.osgeo.org/mapserver/ticket/3479




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




--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Polygon outline not drawn in PDF output if polygon is not filled

2010-06-11 Thread Yewondwossen Assefa

Hi There,

The first issue with the color/fill-color seems to be a defect.
 This second issue with the Width parameter is due to the fact that 
the  parameter is not supported in the PDF driver.


The intention is to depreciate the current PDF support and use the Cairo 
PDF driver for the 6.0 release [1]. At that point we should have support 
for things like width, color/fill-color, ... be consistent between all 
output drivers. You could maybe try using MapServer from svn and try the 
Cairo support and see if that solves your immediate needs.


regards,


[1] http://trac.osgeo.org/mapserver/wiki/60ReleasePlan


Case 1: Unfilled polygon, PDF output: As written above, the PDF output is 
empty. This is the problem case.

Case 2: Filled polygon, PDF output: If the "#COLOR" line is uncommented, the 
green-filled polygon, complete with red outline, is drawn.

Case 3: Unfilled polygon, PNG output: If I switch to PNG output (by uncommenting the 
OUTPUTFORMAT for PNG and commenting-out the PDF one) and revert to "#COLOR" 
(thereby disabling polygon fill), the unfilled red outline is drawn in the PNG output.

Case 4: Filled polygon, PNG output: With PNG output and fill COLOR enabled, the 
filled green polygon with red outline is drawn to the PNG output.

Is this a defect? Could you suggest a work-around for unfilled polygon PDF 
output?
   


This seems to be a defect

A secondary observation: Using a filled polygon for PDF, use of a "WIDTH" 
parameter appears to have no effect upon the width of the outline.

   



I'm using MapServer version 5.6.3 (MS4W distribution) under Windows XP Pro 2002 SP3. The 
problem was demonstrated with use of the "drawmap.exe" command-line utility.

Thanks in advance,

- Phil Anzel

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

   



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Re: Styling a mapfile with SLD?

2010-06-02 Thread Yewondwossen Assefa

On 02/06/2010 9:01 AM, Rahkonen Jukka wrote:

Yewondwossen Assefa wrote:

   

On 02/06/2010 2:39 AM, paalkr wrote:
 

Hi!

Thanks! I really don't understand how that poorly formatted
   

SLD slipped
 

trough the oxygen XML editor, obviously there are many
   

close-tags that
 

misses the backslash.

Do you know if there is a ticket regarding the lack of
   

error messages when
 

MapServer fails to either pick up or parse a SLD document?
   

If not I think
 

that I will write one, and encourage one of my colleagues
   

to have a look at
 

the source and maybe write a patch for it.


   

   There is an ol one
http://trac.osgeo.org/mapserver/ticket/1471 that I
just updated. The errors are trapped but at this point we let the WMS
request succeed without the SLD. I believe the correct way
would be to
return an exception.
 


This needs some consideration.  Think about an end user who is using
somew ready made application which is set to get styles from an external
SLD.  Now if this SLD gets broken, which would you prefer as an user: a
correct exception without a map, or a map which may have wrong styling?
I would take the map.

-Jukka Rahkonen-

   
I guess it is debatable. I have not seen something in the specs re. this 
issue. I will send a note to wms-dev list at OGC to see if there is 
something in the specs that deals with this issue.


best regards,


--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Re: Styling a mapfile with SLD?

2010-06-02 Thread Yewondwossen Assefa

On 02/06/2010 2:39 AM, paalkr wrote:

Hi!

Thanks! I really don't understand how that poorly formatted SLD slipped
trough the oxygen XML editor, obviously there are many close-tags that
misses the backslash.

Do you know if there is a ticket regarding the lack of error messages when
MapServer fails to either pick up or parse a SLD document? If not I think
that I will write one, and encourage one of my colleagues to have a look at
the source and maybe write a patch for it.

   
 There is an ol one http://trac.osgeo.org/mapserver/ticket/1471 that I 
just updated. The errors are trapped but at this point we let the WMS 
request succeed without the SLD. I believe the correct way would be to 
return an exception.


best regards,


-

Regards,
Pål Kristensen
   



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS – version relat ed problem

2010-06-01 Thread Yewondwossen Assefa

On 31/05/2010 12:25 PM, Stefanie Weykam wrote:

Dear list members,

I am having trouble with parsing the GetCapabilities response from my 
WFS services:


If I send a GetCapabilities-request indicating VERSION=1.0.0 – 
metadata having non ascii characters (like characters with accent) are 
parsed without any problem. But indicating VERSION=1.1.0 or omitting 
this parameter causes a parsing error at the first ‘strange’ character 
encountered.  Is there anything I can do about that?

Both, GetFeature and DescribeFeatureType work just fine with any version.

This is possibly related to http://trac.osgeo.org/mapserver/ticket/3297. 
The difference between wfs 1.0 and 1.1 in Mapserver GetCapabilities is 
that the version 1.1 uses libxml2 as the libarary to build the xml that 
is returned. It is parlty fixed is the current svn version.



Question nº 2 – data type is always string:
In response to a DescribeFeatureType request, the server returns data 
type ‘string’ for all fields. I wonder if I can specify the real data 
type somehow?? This would allow thick clients to apply filter 
expressions on this layer.



 You should be able to set metadata at the layer level to do that:

  `"gml_PERIMETER_type" "double"  #where PERIMETER is your attribute name


best regards,


--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Testing KML support

2010-05-20 Thread Yewondwossen Assefa

Hi Peter,

 I have updated the RFC after some cleanup in the code 
(http://svn.osgeo.org/mapserver/branches/branch-5-6/docs/en/development/rfc/ms-rfc-58.txt). 



 Note also that there is a componenent Output-KML in MapServer trac 
(http://trac.osgeo.org/mapserver/), for reporting issues.


best regards,

On 07/05/2010 5:02 PM, Yewondwossen Assefa wrote:


Hi Peter,

There is supposed to be --with-kml.
I have added the OUTPUT=KML if built with the flag.
Note that the driver is still in development/cleanup state. I will 
update the RFC  (http://mapserver.org/development/rfc/ms-rfc-58.html) 
once this phase is over.


regards,

On 07/05/2010 12:23 PM, Peter Hopfgartner wrote:

Hi,

I'm would like to look at the KML functionality in the current MapServer
trunk.

There does not seem to be any specific option in configure, so I enabled
it by setting the environment variable CPPFLAGS:

$ export CPPFLAGS=-DUSE_KML
$ ./configure --with-proj --with-postgis --with-cairovim
--with-xml2-config=/usr/bin/xml2-config
$ make



The resulting shp2img has a lot of Kml-related symbols in it:

$ nm shp2img | grep -i kml | wc -l
71

Anyway, KML does not seem to be oin the OUTPUT formats list:

[peter.hopfgart...@vm-centos5-64-1 mapserver]$ ./shp2img -v
MapServer version 5.7-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE

Indeed, trying to produce some KML from a map file, I get:

$ /usr/local/bin/shp2img -i KML -m kml_test.map>  test.kml
loadOutputFormat(): General error message. OUTPUTFORMAT clause
references driver KML, but this driver isn't configured.

Am I missing something?

Regards,

Peter







--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS featureislike and bbox filter required?

2010-05-19 Thread Yewondwossen Assefa

Is it possible that the extents values in your  map file are not set?

regards,

On 18/05/2010 5:40 PM, mattmendick wrote:

Hi All-

I'm trying to query mapserver's wfs service (layer's data is backed by
postgis) using the following post: (excuse the parentheses instead of<>'s,
they are from some debug code)

(wfs:GetFeature service="WFS" version="1.1.0" resultType='results'
xmlns:wfs="http://www.opengis.net/wfs";
xmlns:ogc="http://www.opengis.net/ogc";
xmlns:gml="http://www.opengis.net/gml";) (wfs:Query srsName="EPSG:4326"
typeName="ms:delaware_highway")
(ogc:PropertyName)name(/ogc:PropertyName)
(ogc:PropertyName)geom(/ogc:PropertyName)
(ogc:Filter)
   (ogc:PropertyIsLike wildCard="*" singleChar="." escape="!")
  (ogc:PropertyName)name(/ogc:PropertyName)
  (ogc:Literal)*Wil*(/ogc:Literal)
   (/ogc:PropertyIsLike)
(/ogc:Filter)
(/wfs:Query)
(/wfs:GetFeature)


I don't get back any results, but when I specify a bounding box, let's say a
global bounding box to make it easy, I get back all the relevant results.

(wfs:GetFeature service="WFS" version="1.1.0" resultType='results'
xmlns:wfs="http://www.opengis.net/wfs";
xmlns:ogc="http://www.opengis.net/ogc";
xmlns:gml="http://www.opengis.net/gml";) (wfs:Query srsName="EPSG:4326"
typeName="ms:delaware_highway")
(ogc:PropertyName)name(/ogc:PropertyName)
(ogc:PropertyName)geom(/ogc:PropertyName)
(ogc:Filter)
   
  
 geom
 
 -180 -90
 180 90
 
  
  (ogc:PropertyIsLike wildCard="*" singleChar="." escape="!")
 (ogc:PropertyName)name(/ogc:PropertyName)
 (ogc:Literal)*Wil*(/ogc:Literal)
  (/ogc:PropertyIsLike)
   
(/ogc:Filter)
(/wfs:Query)
(/wfs:GetFeature)

Is the bbox filter necessary to do a property is like?  When I don't specify
the bounding box, the postgres query has this intersect clause: where
wkb_geometry&&  GeomFromText('POLYGON((-1 -1,-1 -1,-1 -1,-1 -1,-1 -1))

Is this trying to tell me that I need to add the bbox, or is this a bug?

Thanks for your help!
   



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Testing KML support

2010-05-07 Thread Yewondwossen Assefa


Hi Peter,

There is supposed to be --with-kml.
I have added the OUTPUT=KML if built with the flag.
Note that the driver is still in development/cleanup state. I will 
update the RFC  (http://mapserver.org/development/rfc/ms-rfc-58.html) 
once this phase is over.


regards,

On 07/05/2010 12:23 PM, Peter Hopfgartner wrote:

Hi,

I'm would like to look at the KML functionality in the current MapServer
trunk.

There does not seem to be any specific option in configure, so I enabled
it by setting the environment variable CPPFLAGS:

$ export CPPFLAGS=-DUSE_KML
$ ./configure --with-proj --with-postgis --with-cairovim
--with-xml2-config=/usr/bin/xml2-config
$ make
   



The resulting shp2img has a lot of Kml-related symbols in it:

$ nm shp2img | grep -i kml | wc -l
71

Anyway, KML does not seem to be oin the OUTPUT formats list:

[peter.hopfgart...@vm-centos5-64-1 mapserver]$ ./shp2img -v
MapServer version 5.7-dev OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
SUPPORTS=WMS_SERVER INPUT=JPEG INPUT=POSTGIS INPUT=SHAPEFILE

Indeed, trying to produce some KML from a map file, I get:

$ /usr/local/bin/shp2img -i KML -m kml_test.map>  test.kml
loadOutputFormat(): General error message. OUTPUTFORMAT clause
references driver KML, but this driver isn't configured.

Am I missing something?

Regards,

Peter

   



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Oracle Spatial and MAXFEATURES, not implemented?

2010-05-07 Thread Yewondwossen Assefa
This was done as part of the http://trac.osgeo.org/mapserver/ticket/2605 
and is only available in trunk right now (for the upcoming 6.0 release).


regards,

On 07/05/2010 9:45 AM, Peter Hopfgartner wrote:

I'm trying to limit the maximum number of features, as in the map file
snippet below.

MapServer is 5.6.3.

Anyway, the number of features drawn is not limited, as expected, but
thousands of shapes are processed.

Indeed, enabling -all_debug 5, the query passed to Oracle looks like;

---
msOracleSpatialLayerWhichShapes. Using this Sql to retrieve the data:
SELECT pln_id, pln_id, the_geom FROM plant_data_map WHERE
SDO_FILTER( the_geom, MDSYS.SDO_GEOMETRY(2003, :srid,
NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),:ordinates ),'querytype=window') = 
'TRUE'
msOracleSpatialLayerWhichShapes. Bind values: srid:25832
minx:666798.076923   miny:5169400.00  maxx:667551.923077
maxy:517.00
---

Indeed, almost 15,000 shapes arrive:

---
msOracleSpatialLayerNextShape on layer 0x101363e0, row_num: 14934
msOracleSpatialLayerNextShape on layer 0x101363e0, Fetched 0 more rows
(14934 total)
msOracleSpatialLayerFreeItemInfo was called.
---

Peeking at the source in maporaclespatial.c, it seems that
layer->maxfeatures is never read and no limitation, maybe looking like
"ROWNUM<= layer->maxfeatures" is added to the SELECT statement.

Regards,

Peter




MAPFILE SNIPPET:

LAYER #16-
 GROUP "pflanzennr_black_12"
 NAME "Pflanzennr"
 STATUS ON
 TYPE POINT
 PROJECTION
 "init=epsg:25832"
 END
 CONNECTIONTYPE oraclespatial
 CONNECTION "{MYUSER}/{MYPASSWD}"
 DATA "the_geom from plant_data_map using  unique pln_id srid
25832"
 PROCESSING "CLOSE_CONNECTION=DEFER"
 SIZEUNITS meters
 LABELITEM "pln_id"
 MAXFEATURES 20
 TOLERANCE 1
 POSTLABELCACHE TRUE
 CLASS
 NAME "label"
 LABEL
 TYPE TRUETYPE
 PARTIALS TRUE
 FONT "verdana"
 COLOR 0 0 0
 OUTLINECOLOR 255 255 255
 SIZE 6
 MINSIZE 6
 MAXSIZE 8
 POSITION CR
 FORCE TRUE
 END
 END
END




   



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] wms version 1.3 bbox problems

2010-05-05 Thread Yewondwossen Assefa
You could possibly look into using mapscript wrapper for WxS services 
(http://mapserver.org/ogc/mapscript.html) and possibly change the 
version programatically or the order of the bbox.


regards,

On 05/05/2010 2:29 PM, Travis Kirstine wrote:

It appears that the bbox in the reverse order for 1.3, is there a work around?

wms.php?cid=27&VERSION=1.3.0&REQUEST=GetMap&LAYERS=Imagery_group&STYLES=&CRS=EPSG:4269&BBOX=-180,-90,180,90&WIDTH=636&HEIGHT=318&FORMAT=image/png&TRANSPARENT=TRUE&BGCOLOR=0xFF&EXCEPTIONS=XML
HTTP/1.1" 200 166460 "-" "C:\\Program
Files\\MapInfo85\\Professional\\MAPINFOW.EXE"

On 5 May 2010 12:15, Yewondwossen Assefa  wrote:
   

Hi,

  What does the GetMap request looks like, specifically the bbox coordinates
and the projection?  For wms 1.3.0, bbox coordinates are expected for
projections such as espg:4326 to use the inverse axe order (lat/long instead
of long/lat)?

regards,
On 05/05/2010 11:54 AM, Travis Kirstine wrote:
 

Hi,
I'm currently running ms 5.4.2 and am having difficulties with wms
version 1.3.  I am using MapInfo as the client and it seems that it is
hard coded wms version 1.3 if available from the service.  It seems
that there is bbox issue when passing GetMap request to the service.
Is there something I have to add to the mapfile to indicate the
correct bbox or projection?

MAP
 NAME "Montreal Map"
 SIZE 256 256
 STATUS OFF
 UNITS METERS
 EXTENT -180 -90 180 90
 IMAGECOLOR 155 203 231
 SHAPEPATH "/home/share1/data"
 IMAGETYPE JPEG
 RESOLUTION 96
 PROJECTION
 "init=epsg:4326"
 END
 WEB
 IMAGEPATH "/home/share1/data/map_images/"
 IMAGEURL "http:///";
 METADATA
 "wms_onlineresource"
"http://xx";
 "wms_srs" "EPSG:32198 EPSG:2138 EPSG:32098
EPSG:4269 EPSG:4326 EPSG:54004" # updated by user
 "wms_title" "Montreal Map" # defined by user
 "wms_abstract" "" # defined by user
 "ows_sld_enabled" "false"
 END
 END
 OUTPUTFORMAT
 NAME png
 DRIVER "GD/PNG"
 MIMETYPE "image/png"
 IMAGEMODE RGBA
 EXTENSION "png"
 TRANSPARENT ON
 END
 OUTPUTFORMAT
 NAME jpeg
 DRIVER "GD/JPEG"
 MIMETYPE "image/jpeg"
 IMAGEMODE RGB
 EXTENSION "jpg"
 FORMATOPTION "QUALITY=80"
 END

 LAYER
 NAME "Imagery_1"
 DATA
"/home/share1/www/openstream/mapfiles/xml/31_Imagery_lvl1.xml"
 METADATA
 "wms_group_abstract" ""
 "wms_group_title" "Imagery"
 "wms_title" "Imagery_1"
 "wms_extents" "-180 -85.05112877980659 180
85.0511287798066"
 END
 PROJECTION
 "init=epsg:4326"
 END
 MINSCALE 295828775
 TYPE RASTER
 GROUP "Imagery_group"
 STATUS ON
 PROCESSING "CLOSE_CONNECTION=DEFER"
 PROCESSING "RESAMPLE=BILINEAR"
 END
END
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


   


--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925




 
   



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] wms version 1.3 bbox problems

2010-05-05 Thread Yewondwossen Assefa

Hi,

 What does the GetMap request looks like, specifically the bbox 
coordinates and the projection?  For wms 1.3.0, bbox coordinates are 
expected for projections such as espg:4326 to use the inverse axe order 
(lat/long instead of long/lat)?


regards,
On 05/05/2010 11:54 AM, Travis Kirstine wrote:

Hi,
I'm currently running ms 5.4.2 and am having difficulties with wms
version 1.3.  I am using MapInfo as the client and it seems that it is
hard coded wms version 1.3 if available from the service.  It seems
that there is bbox issue when passing GetMap request to the service.
Is there something I have to add to the mapfile to indicate the
correct bbox or projection?

MAP
 NAME "Montreal Map"
 SIZE 256 256
 STATUS OFF
 UNITS METERS
 EXTENT -180 -90 180 90
 IMAGECOLOR 155 203 231
 SHAPEPATH "/home/share1/data"
 IMAGETYPE JPEG
 RESOLUTION 96
 PROJECTION
 "init=epsg:4326"
 END
 WEB
 IMAGEPATH "/home/share1/data/map_images/"
 IMAGEURL "http:///";
 METADATA
 "wms_onlineresource" 
"http://xx";
 "wms_srs" "EPSG:32198 EPSG:2138 EPSG:32098
EPSG:4269 EPSG:4326 EPSG:54004" # updated by user
 "wms_title" "Montreal Map" # defined by user
 "wms_abstract" "" # defined by user
 "ows_sld_enabled" "false"
 END
 END
 OUTPUTFORMAT
 NAME png
 DRIVER "GD/PNG"
 MIMETYPE "image/png"
 IMAGEMODE RGBA
 EXTENSION "png"
 TRANSPARENT ON
 END
 OUTPUTFORMAT
 NAME jpeg
 DRIVER "GD/JPEG"
 MIMETYPE "image/jpeg"
 IMAGEMODE RGB
 EXTENSION "jpg"
 FORMATOPTION "QUALITY=80"
 END

 LAYER
 NAME "Imagery_1"
 DATA
"/home/share1/www/openstream/mapfiles/xml/31_Imagery_lvl1.xml"
 METADATA
 "wms_group_abstract" ""
 "wms_group_title" "Imagery"
 "wms_title" "Imagery_1"
 "wms_extents" "-180 -85.05112877980659 180
85.0511287798066"
 END
 PROJECTION
 "init=epsg:4326"
 END
 MINSCALE 295828775
 TYPE RASTER
 GROUP "Imagery_group"
 STATUS ON
 PROCESSING "CLOSE_CONNECTION=DEFER"
 PROCESSING "RESAMPLE=BILINEAR"
 END
END
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

   



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Disable WMS 1.3.0-Support in MS 5.6.3

2010-05-03 Thread Yewondwossen Assefa

Sorry about that: ticket is http://trac.osgeo.org/mapserver/ticket/3444

regards,

On 03/05/2010 2:43 AM, Stephan Holl wrote:

Hello Yewondwossen,

Yewondwossen Assefa, [20100430 - 13:33:47]

   

I added ticket http://trac.osgeo.org/mapserver/ticket/344. Support
will be added for the next release and I will possibly prepare a
patch for 5.6.x branch if needed.
 

Wow, that would be great, I would have been added myself to the ticket,
but there is something strange with the number. Could you please
recheck with that?

TIA

Stephan

   

On 30/04/2010 4:42 AM, Stephan Holl wrote:
 

Hello Yewondwossen,

Yewondwossen Assefa, [20100429 - 07:46:39]


   

Stephan Holl wrote:

 

Hello,

ist it possible to disable the support for WMS 1.3.0 with a
configuration switch right now?
It could be handy for some of my usecases.



   

Hi Stephan,

Not that I know of. It would be possible to add as enhancement a
way to set/read in the map file the default wms version in case the
request url does not have a version set. Right now it defaults to
the latest supported version (1.3.0).

 

Yes, it would be nice to have a Metadata-statement in the WEB-block
to set it globally.
   
   



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Disable WMS 1.3.0-Support in MS 5.6.3

2010-04-30 Thread Yewondwossen Assefa
I added ticket http://trac.osgeo.org/mapserver/ticket/344. Support will 
be added for the next release and I will possibly prepare a patch for 
5.6.x branch if needed.


regards,

On 30/04/2010 4:42 AM, Stephan Holl wrote:

Hello Yewondwossen,

Yewondwossen Assefa, [20100429 - 07:46:39]

   

Stephan Holl wrote:
 

Hello,

ist it possible to disable the support for WMS 1.3.0 with a
configuration switch right now?
It could be handy for some of my usecases.


   

Hi Stephan,

Not that I know of. It would be possible to add as enhancement a way
to set/read in the map file the default wms version in case the
request url does not have a version set. Right now it defaults to the
latest supported version (1.3.0).
 

Yes, it would be nice to have a Metadata-statement in the WEB-block to
set it globally.

   




Best

Stephan

   



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Disable WMS 1.3.0-Support in MS 5.6.3

2010-04-29 Thread Yewondwossen Assefa

Stephan Holl wrote:

Hello,

ist it possible to disable the support for WMS 1.3.0 with a
configuration switch right now?
It could be handy for some of my usecases.

  

Hi Stephan,

Not that I know of. It would be possible to add as enhancement a way to 
set/read in the map file the default wms version in case the request url 
does not have a version set. Right now it defaults to the latest 
supported version (1.3.0).


regards,


Curios.

TIA

Beste Grüße

Stephan

  



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



--

Assefa Yewondwossen   
Software Analyst   

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS - invalid XML in POST request?

2010-04-15 Thread Yewondwossen Assefa

Would something like this work for the server:

maxFeatures="1" outputFormat="GML2"

 xmlns:wfs="http://www.opengis.net/wfs";
 xmlns:gml="http://www.opengis.net/gml";
 xmlns:ogc="http://www.opengis.net/ogc";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd";>




Geometry

-613875.00,-1351366.235392 
-143625.00,-1116633.764608







Note that there is a bug [1] on this (and the ogc name space you 
reported a a few weeks ago). Please take the time to check and update 
the bug since I can not test it against an Arc Server.


[1]: http://trac.osgeo.org/mapserver/ticket/3414

regards,

Miloslav Kmeť wrote:

Hi. I am trying to get working WFS with POST request method. My layer def:
  
LAYER

DEBUG 5
NAME "MCHU"
STATUS ON
TYPE POLYGON
CONNECTIONTYPE WFS
CONNECTION 
"http://globus.sazp.sk/arcgis/services/nipi/protected_sites/MapServer/WFSServer";

METADATA

  "wfs_version" "1.0.0"
  "wfs_service" "WFS"
  "wfs_srs" "epsg:102067"
  "wfs_typename" "nps:MCHU"
  "wfs_maxfeatures" "1"  
END

END

( http://pastebin.ca/1862437 )

I read in the documentation, that without wfs_request_method in METADATA the 
default request method is POST.


When mapserver do POST, the WFS service complains:
Xml Parsing failed. Reason:Reference to undeclared namespace prefix: 'wfs'.

Below is the full communication between mapserver and ArcGIS server. It seems 
like, there are some namespace declaration missing, but I  cannot figure out 
the right request XML.


Thanks

( http://pastebin.ca/1862442 ):

POST /arcgis/services/nipi/protected_sites/MapServer/WFSServer HTTP/1.1
User-Agent: MapServer/5.6.3 libcurl/7.19.7
Host: globus.sazp.sk
Accept: */*
Content-Type: text/xml
Content-Length: 386






Geometry

-613875.00,-1351366.235392 
-143625.00,-1116633.764608





HTTP/1.1 200 OK
Date: Thu, 15 Apr 2010 20:28:35 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/xml
Content-Length: 358

xmlns:ows='http://www.opengis.net/ows'>exceptionCode='NoApplicableCode'>Xml Parsing failed.

Reason:Reference to undeclared namespace prefix: 'wfs'.

Linepos:21
Source:outputFormat="GML2">.
  



--

Assefa Yewondwossen   
Software Analyst   

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Strange Behaviour with getFeature using POSTmethod and more than one typename

2010-04-13 Thread Yewondwossen Assefa
0.171674 4727284.213916 508836.024080 4727284.75 508803.990153
4727288.933371 508767.495442 4727291.614218 508746.759555 4727292.732835
508712.381656 4727293.722635 508668.513405 4727296.264416 508636.606992
4727297.415920 508604.852191 4727298.120986 508564.557869 4727297.680078
508531.128179 4727298.113485 508492.603378 4727299.164420 508458.641561
4727302.445701 508425.942066 4727306.547768 508385.948362 4727313.023936
508370.140478 4727315.545819 
  

  

  



-Mensaje original-
De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] 
Enviado el: martes, 13 de abril de 2010 13:09

Para: David Alda Fernandez de Lezea
CC: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Strange Behaviour with getFeature using
POSTmethod and more than one typename

David,
  

Assefa,

Thanks for your response. I had that configured in the waye you told


me this is what I get:
  

[Fri Apr 09 11:24:45 2010].725000 CGI Request 1 on process 1948 [Fri


Apr 09 11:24:46 2010].37000 mapserv request processing time (msLoadMap
not incl.): 0.312s [Fri Apr 09 11:24:46 2010].37000 msFreeMap(): freeing
map at 015D60B8.
  
  


You should be able to check then the query sent to the oracle db and
  

that might give your more hints.
  

  

Where I can view the query sent to Oracle??

Thanks.

  


I forgot to mention that you also need to have the debug statement  in
your layer for layer specific debug output in oracle.

Layer
 
 DEBUG 5
 ...
END

I am not sure what version of MapServer your are using, but you should
if not already (and possiible) upgrade to 5.6.3 or the trunk version
from svn. Both have a lot more debugging information for the oracle
spatial.



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

  



--

Assefa Yewondwossen   
Software Analyst   

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Strange Behaviour with getFeature using POSTmethod and more than one typename

2010-04-13 Thread Yewondwossen Assefa

David,

Assefa,

Thanks for your response. I had that configured in the waye you told me this is 
what I get:

[Fri Apr 09 11:24:45 2010].725000 CGI Request 1 on process 1948 [Fri Apr 09 
11:24:46 2010].37000 mapserv request processing time (msLoadMap not incl.): 
0.312s [Fri Apr 09 11:24:46 2010].37000 msFreeMap(): freeing map at 015D60B8.

  

You should be able to check then the query sent to the oracle db and that might 
give your more hints.



Where I can view the query sent to Oracle??

Thanks.

  
I forgot to mention that you also need to have the debug statement  in 
your layer for layer specific debug output in oracle.


Layer

DEBUG 5
...
END

I am not sure what version of MapServer your are using, but you should  
if not already (and possiible) upgrade to 5.6.3 or the trunk version 
from svn. Both have a lot more debugging information for the oracle spatial.



-Mensaje original-
De: Yewondwossen Assefa [mailto:yass...@dmsolutions.ca] Enviado el: viernes, 09 
de abril de 2010 14:19
Para: David Alda Fernandez de Lezea
CC: mapserver-users@lists.osgeo.org
Asunto: Re: [mapserver-users] Strange Behaviour with getFeature using POST 
method and more than one typename

David,

 You could possibly get more hints if you put you map in debug mode and see the 
logs. You can add something like this in your map:

CONFIG  "MS_ERRORFILE" "f:/tmp/ms_error.log"
DEBUG 5

You should be able to check then the query sent to the oracle db and that might 
give your more hints.

regards,

David Alda Fernandez de Lezea wrote:
  

Hi list,

I'm having a strange behaviour when receiving data from getFeature request. I 
prepare a request that is intended to mark some parcels from two different 
layers (these layers are stored in Oracle Spatial). The request looks like:


http://www.opengis.net/wfs";
xmlns:ogc="http://www.opengis.net/ogc"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd"> 

PROVINCIA1
iteral>
MUNICIPIO1
POLIGONO1
PARCELA1
RECINTO1


PROVINCIA1
MUNICIPIO1
POLIGONO1
PARCELA20
RECINTO1


PROVINCIA1
MUNICIPIO1
POLIGONO1
PARCELA24
RECINTO1








PROVINCIA1
MUNICIPIO1
POLIGONO1
PARCELA29


PROVINCIA1
MUNICIPIO1
POLIGONO1
PARCELA5






All the features that I want to mark using these filters are unique rows in 
Oracle Spatial. Using my Ajax app I get the following response:

 http://mapserver.gis.umn.edu/mapserver";
   xmlns:gml="http://www.opengis.net/gml";
   xmlns:wfs="http://www.opengis.net/wfs";
   xmlns:ogc="http://www.opengis.net/ogc";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver 
http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wfs.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=RecintosSigpac,ParcelasSigpac&OUTPUTFORMAT=text/xml;
 subtype=gml/3.1.1  http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";>
  

538881.736860 4744342.676060
539514.702532 4744971.618431

  

  


539098.554563 
4744632.941135
539191.352464 
4744726.952445



  

  
539146.378383 4744724.433931 
539145.235158 4744724.343655 539141.209291 4744724.134593 539098.862296 4744721.948469 539098.790865 
4744711.615815 539098.554563 4744677.257422 539100.133554 4744665.742677 539101.989421 4744645.274892 
539102.338824 4744636.815604 539147.216698 4744634.836696 539183.793353 4744632.941135 539191.352464 
4744725.909256 539176.751878 4744726.952445 539160.884500 4744725.549674 539146.378383 4744724.433931 

  

  

  


  


539098.554563 
4744632.941135
539191.352464 
4744726.952445



  

  
539146.378383 4744724.433931 
539145.235158 4744724.343655 539141.209291 4744724.134593 539098.862296 4744721.948469 539098.790865 
4744711.615815 539098.554563 4744677.257422 539100.133554 4744665.742677 539101.989421 4744645.274892 
539102.338824 4744636.815604 539147.216698 4744634.836696 539183.793353 4744632.941135 539191.352464 
4744725.909256 539176.751878 4744726.952445 539160.884500 4744725.549674 539146.378383 4744724.433931 

  

  

  


  


539140.476604 
4744723.079992
539239.310392 
4744825.870297



  

  
539210.760749 4744825.870297 
5

Re: [mapserver-users] Re: wfs getcapabilities doesn't use namespace in featuretype's name?

2010-04-09 Thread Yewondwossen Assefa

Hi There,

It will be added for the next release 
(http://trac.osgeo.org/mapserver/ticket/3428)


regards,

gsamp wrote:

I'm getting the same problem: featuretypes name without namespace in the
getcapabilities response!

It is missing some configuration in the mapfile? 


Any clarification is appreciated.
  



--

Assefa Yewondwossen   
Software Analyst   

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS multiple typenames in request, only one in reply

2010-04-09 Thread Yewondwossen Assefa

Hi There,

wfs post request should look like this:


http://www.opengis.net/wfs"; 
xmlns:ogc="http://www.opengis.net/ogc"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">



...









You can check the xsds for more details at http://schemas.opengis.net/wfs/

regards,

Attila BERÉNYI wrote:

Hi,

Thank you for your response, I'm able to request data from both layers 
(typenames) this way, however I'd like to achieve this in OpenLayers. 
So I've created a small demo application which uses XMLHttp to request 
data from Mapserver.

http://webgis.fmt.bme.hu/gfi/xml.html
The requests are hard coded, please take a look at the source.

How could I achieve the below described functionality with XML request(s)?

Thanks in advance,

BR,

Attila

2010.04.06. 15:42 keltezéssel, Yewondwossen Assefa írta:
The following URL on your server gives the output for the 2 typenames 
I believe:


http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek,elteresek2&Filter=%28%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:BBOX%3E%3Cogc:PropertyName%3EmsGeometry%3C/ogc:PropertyName%3E%3Cgml:Envelope%20xmlns:gml=%22http://www.opengis.net/gml%22%20srsName=%22EPSG:23700%22%3E%3Cgml:lowerCorner%3E649971.6696%20236508.4728%3C/gml:lowerCorner%3E%3Cgml:upperCorner%3E651559.1688%20237919.5832%3C/gml:upperCorner%3E%3C/gml:Envelope%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%29%28%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:BBOX%3E%3Cogc:PropertyName%3EmsGeometry%3C/ogc:PropertyName%3E%3Cgml:Envelope%20xmlns:gml=%22http://www.opengis.net/gml%22%20srsName=%22EPSG:23700%22%3E%3Cgml:lowerCorner%3E649971.6696%20236508.4728%3C/gml:lowerCorner%3E%3Cgml:upperCorner%3E651559.1688%20237919.5832%3C/gml:upperCorner%3E%3C/gml:Envelope%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%29 



Attila BERÉNYI wrote:
Thank you guys, I've tried with comma and brackets as well, no 
success so far :(


2010.04.06. 14:46 keltezéssel, Yewondwossen Assefa írta:

bart...@osgis.nl wrote:

Hi,

you need to repeat your filter (comma-separated) IIRC.

I believe it should be brackets instead of comma: something like 
...&FILTER=(...)(...)

Best regards,
Bart


Dear All,

I've two layers (elteresek and elteresek2), and I'd like to get 
features

from both of them using WFS GetFeature request.
If I apply one typename at a time, it works correct, but if I 
include
two typenames in the request only the first is processed and 
included in

the response.
This works correct (note TYPENAME=elteresek):
http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek&Filter=
xmlns:ogc="http://www.opengis.net/ogc";>msGeometry

xmlns:gml="http://www.opengis.net/gml";
srsName="EPSG:23700">649971.6696
236508.4728651559.1688
237919.5832

This works correct (note TYPENAME=elteresek2) as well:
http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek2&Filter=
xmlns:ogc="http://www.opengis.net/ogc";>msGeometry

xmlns:gml="http://www.opengis.net/gml";
srsName="EPSG:23700">649971.6696
236508.4728651559.1688
237919.5832

But the reply for this link includes only the first typename (in 
this

case elteresek):
http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek,elteresek2&Filter=
xmlns:ogc="http://www.opengis.net/ogc";>msGeometry

xmlns:gml="http://www.opengis.net/gml";
srsName="EPSG:23700">649971.6696
236508.4728651559.1688
237919.5832

What am I doing wrong?

Thanks,

Attila
___
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












--

Assefa Yewondwossen   
Software Analyst   

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925




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


Re: [mapserver-users] Strange Behaviour with getFeature using POST method and more than one typename

2010-04-09 Thread Yewondwossen Assefa

David,

You could possibly get more hints if you put you map in debug mode and 
see the logs. You can add something like this in your map:


CONFIG  "MS_ERRORFILE" "f:/tmp/ms_error.log"
DEBUG 5

You should be able to check then the query sent to the oracle db and 
that might give your more hints.


regards,

David Alda Fernandez de Lezea wrote:

Hi list,

I'm having a strange behaviour when receiving data from getFeature request. I 
prepare a request that is intended to mark some parcels from two different 
layers (these layers are stored in Oracle Spatial). The request looks like:


http://www.opengis.net/wfs"; xmlns:ogc="http://www.opengis.net/ogc"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">




PROVINCIA1
MUNICIPIO1
POLIGONO1
PARCELA1
RECINTO1


PROVINCIA1
MUNICIPIO1
POLIGONO1
PARCELA20
RECINTO1


PROVINCIA1
MUNICIPIO1
POLIGONO1
PARCELA24
RECINTO1








PROVINCIA1
MUNICIPIO1
POLIGONO1
PARCELA29


PROVINCIA1
MUNICIPIO1
POLIGONO1
PARCELA5






All the features that I want to mark using these filters are unique rows in 
Oracle Spatial. Using my Ajax app I get the following response:


http://mapserver.gis.umn.edu/mapserver";
   xmlns:gml="http://www.opengis.net/gml";
   xmlns:wfs="http://www.opengis.net/wfs";
   xmlns:ogc="http://www.opengis.net/ogc";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver 
http://192.168.1.65/cgi-bin/mapserv.exe?map=../htdocs/MFD/ejemplo_wfs.map&SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=RecintosSigpac,ParcelasSigpac&OUTPUTFORMAT=text/xml;
 subtype=gml/3.1.1  http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";>
  

538881.736860 4744342.676060
539514.702532 4744971.618431

  

  


539098.554563 
4744632.941135
539191.352464 
4744726.952445



  

  
539146.378383 4744724.433931 
539145.235158 4744724.343655 539141.209291 4744724.134593 539098.862296 4744721.948469 539098.790865 
4744711.615815 539098.554563 4744677.257422 539100.133554 4744665.742677 539101.989421 4744645.274892 
539102.338824 4744636.815604 539147.216698 4744634.836696 539183.793353 4744632.941135 539191.352464 
4744725.909256 539176.751878 4744726.952445 539160.884500 4744725.549674 539146.378383 4744724.433931 

  

  

  


  


539098.554563 
4744632.941135
539191.352464 
4744726.952445



  

  
539146.378383 4744724.433931 
539145.235158 4744724.343655 539141.209291 4744724.134593 539098.862296 4744721.948469 539098.790865 
4744711.615815 539098.554563 4744677.257422 539100.133554 4744665.742677 539101.989421 4744645.274892 
539102.338824 4744636.815604 539147.216698 4744634.836696 539183.793353 4744632.941135 539191.352464 
4744725.909256 539176.751878 4744726.952445 539160.884500 4744725.549674 539146.378383 4744724.433931 

  

  

  


  


539140.476604 
4744723.079992
539239.310392 
4744825.870297



  

  
539210.760749 4744825.870297 
539171.605414 4744812.932158 539154.900802 4744810.658958 539151.793893 4744810.241026 539150.884920 
4744803.887571 539149.435868 4744793.751862 539144.504835 4744774.483491 539140.476604 4744745.790917 
539141.570279 4744729.302770 539144.916268 4744728.632982 539155.283284 4744730.181283 539174.221816 
4744732.271720 539213.767798 4744726.008999 539214.713582 4744725.893379 539232.282920 4744723.079992 
539239.310392 4744781.827717 539208.870828 4744783.739315 539209.136859 4744799.555691 539209.910262 
4744816.473342 539210.760749 4744825.870297 
  

  

  


  


539350.511939 
4744673.714232
539514.702532 
4744971.618431



  

  
539491.015879 4744792.082294 
539475.782392 4744815.126130 539474.642472 4744816.850943 539474.056299 4744817.555015 539460.451809 
4744853.928462 539454.143305 4744873.207102 539440.629731 4744926.019638 539430.716698 4744943.313585 
539413.952425 4744959.898107 539411.273518 4744964.881346 539407.646330 4744971.618431 539406.476289 
4744971.434873 539406.366823 4744971.415630 539405.504687 4744971.280377 539358.907641 4744964.079030 
539357.908645 4744963.924384 539357.819670 4744963.914567 539352.263608 4744963

Re: [mapserver-users] WFS multiple typenames in request, only one in reply

2010-04-06 Thread Yewondwossen Assefa
The following URL on your server gives the output for the 2 typenames I 
believe:


http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek,elteresek2&Filter=%28%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:BBOX%3E%3Cogc:PropertyName%3EmsGeometry%3C/ogc:PropertyName%3E%3Cgml:Envelope%20xmlns:gml=%22http://www.opengis.net/gml%22%20srsName=%22EPSG:23700%22%3E%3Cgml:lowerCorner%3E649971.6696%20236508.4728%3C/gml:lowerCorner%3E%3Cgml:upperCorner%3E651559.1688%20237919.5832%3C/gml:upperCorner%3E%3C/gml:Envelope%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%29%28%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:BBOX%3E%3Cogc:PropertyName%3EmsGeometry%3C/ogc:PropertyName%3E%3Cgml:Envelope%20xmlns:gml=%22http://www.opengis.net/gml%22%20srsName=%22EPSG:23700%22%3E%3Cgml:lowerCorner%3E649971.6696%20236508.4728%3C/gml:lowerCorner%3E%3Cgml:upperCorner%3E651559.1688%20237919.5832%3C/gml:upperCorner%3E%3C/gml:Envelope%3E%3C/ogc:BBOX%3E%3C/ogc:Filter%3E%29

Attila BERÉNYI wrote:
Thank you guys, I've tried with comma and brackets as well, no success 
so far :(


2010.04.06. 14:46 keltezéssel, Yewondwossen Assefa írta:

bart...@osgis.nl wrote:

Hi,

you need to repeat your filter (comma-separated) IIRC.

I believe it should be brackets instead of comma: something like 
...&FILTER=(...)(...)

Best regards,
Bart


Dear All,

I've two layers (elteresek and elteresek2), and I'd like to get 
features

from both of them using WFS GetFeature request.
If I apply one typename at a time, it works correct, but if I include
two typenames in the request only the first is processed and 
included in

the response.
This works correct (note TYPENAME=elteresek):
http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek&Filter=
xmlns:ogc="http://www.opengis.net/ogc";>msGeometry

xmlns:gml="http://www.opengis.net/gml";
srsName="EPSG:23700">649971.6696
236508.4728651559.1688
237919.5832

This works correct (note TYPENAME=elteresek2) as well:
http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek2&Filter=
xmlns:ogc="http://www.opengis.net/ogc";>msGeometry

xmlns:gml="http://www.opengis.net/gml";
srsName="EPSG:23700">649971.6696
236508.4728651559.1688
237919.5832

But the reply for this link includes only the first typename (in this
case elteresek):
http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek,elteresek2&Filter=
xmlns:ogc="http://www.opengis.net/ogc";>msGeometry

xmlns:gml="http://www.opengis.net/gml";
srsName="EPSG:23700">649971.6696
236508.4728651559.1688
237919.5832

What am I doing wrong?

Thanks,

Attila
___
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









--

Assefa Yewondwossen   
Software Analyst   

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925




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


Re: [mapserver-users] WFS multiple typenames in request, only one in reply

2010-04-06 Thread Yewondwossen Assefa

bart...@osgis.nl wrote:

Hi,

you need to repeat your filter (comma-separated) IIRC.

  
I believe it should be brackets instead of comma: something like 
...&FILTER=(...)(...)

Best regards,
Bart

  

Dear All,

I've two layers (elteresek and elteresek2), and I'd like to get features
from both of them using WFS GetFeature request.
If I apply one typename at a time, it works correct, but if I include
two typenames in the request only the first is processed and included in
the response.
This works correct (note TYPENAME=elteresek):
http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek&Filter=http://www.opengis.net/ogc";>msGeometryhttp://www.opengis.net/gml";
srsName="EPSG:23700">649971.6696
236508.4728651559.1688
237919.5832

This works correct (note TYPENAME=elteresek2) as well:
http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek2&Filter=http://www.opengis.net/ogc";>msGeometryhttp://www.opengis.net/gml";
srsName="EPSG:23700">649971.6696
236508.4728651559.1688
237919.5832

But the reply for this link includes only the first typename (in this
case elteresek):
http://webgis.fmt.bme.hu/cgi-bin/mvmNew?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature&TYPENAME=elteresek,elteresek2&Filter=http://www.opengis.net/ogc";>msGeometryhttp://www.opengis.net/gml";
srsName="EPSG:23700">649971.6696
236508.4728651559.1688
237919.5832

What am I doing wrong?

Thanks,

Attila
___
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

  



--

Assefa Yewondwossen   
Software Analyst   

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] How to filter ArcGIS WFS service?

2010-04-01 Thread Yewondwossen Assefa

Hi There,

It should be now fixed. Bug related to it is 
http://trac.osgeo.org/mapserver/ticket/3414.


regards,

Miloslav Kmeť wrote:

Hello.

I need to find a solution how to filter ArcGIS wfs service in mapserver WFS 
client. I read this document: http://mapserver.org/ogc/filter_encoding.html and 
there is no topic about xml ns prefixes in filter.


It seems, that esri's wfs services need xml namespace ogc: in every filter 
element.


I tried id with get from browser and this works as expected:
eia_eia:IDAKCIA1833
?service=wfs&version=1.1.0&request=getFeature&typename=eia_eia:EIA_Locality&filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Eeia_eia:IDAKCIA%3C/ogc:PropertyName%3E%3Cogc:Literal%3E1833%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E
(tinyurlized: http://tinyurl.com/yanqfry)

But this won't filter anything and gives me all features:
eia_eia:IDAKCIA1833
?service=wfs&version=1.1.0&request=getFeature&typename=eia_eia:EIA_Locality&filter=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Eeia_eia:IDAKCIA%3C/PropertyName%3E%3CLiteral%3E1833%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E
(tinyurlized: http://tinyurl.com/y9t3rld)

I doubt, that I can get some response from Esri on this topic, because of this 
thread: http://forums.esri.com/Thread.asp?c=158&f=2276&t=273488 where folks


So the question is - how to add the ogc: namespace prefix into wfs_filter?

This is how I have configured the WFS in my mapfile:
CONNECTIONTYPE WFS
CONNECTION 
"http://globus.sazp.sk/arcgis/services/eia/eia/mapserver/wfsserver";

METADATA

  "wfs_version" "1.0.0"
  "wfs_service" "WFS"
  "wfs_request_method" "GET"
  "wfs_srs" "EPSG:4326"
  "wfs_typename" "eia_eia:EIA_locality"
  "wfs_filter" 
"eia_eia:IDAKCIA1833"

  "wfs_maxfeatures" "1000"
END

Thank you.

  



--

Assefa Yewondwossen   
Software Analyst   

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] GetLegendGraphics with GROUP layer

2010-03-29 Thread Yewondwossen Assefa

Yves Jacolin wrote:

Hello,


One more question about WMS services and MapServer. Is it possible de 
get a GetLegendGraphics with a GROUPed layer?



If I used directly the layer NAMe parameter, I get my picture, if I 
use the GROUP parameter, I get no response (empty picture).



It does not. Will add it for the next release 
(http://trac.osgeo.org/mapserver/ticket/3410)


regards,


Thanks,


Y.
--
Yves Jacolin


Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex


Tel : 00 33 4 79 26 57 98
Fax : 04 79 70 15 81
Mail : 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
  



--

Assefa Yewondwossen   
Software Analyst   

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WMS GetFeatureInfo on a WFS layer

2010-03-25 Thread Yewondwossen Assefa

Hi Yves,

Couple of things:

 First of all, you you should be able to do a GetFeatureInfo request on 
this WFS layer. There is a bug with latest versions of MapServer I 
believe trink and possibly 5.6 (I only test trunk). The bug is described 
at http://trac.osgeo.org/mapserver/ticket/3403, and It should now be 
fixed in svn. If you are builiding aginst trunk, please give it a try.


Other notes on
  - I usually have a  "ows_latlonboundingbox" set on the wfs layer
  - I usually add &RADIUS=2 when doing a GetFeatureInfo request.

hope it helps.

best regards,

Yves Jacolin wrote:

Hi Arnd,

Thanks for your answer We will try an other way.

The 2nd given url is really a WFS server, I successfully send a 
GetFeature request with filter parameter. :)


Thanks again,

Y.

2010/3/24 Arnd Wippermann >


Hi,
 
as I know, you cann't request a WMS or WFS through a connection in

your mapfile (results to "Search return no result"). Only with own
data added as shapefile and so on, you can get a result for
GetfeatureInfo requests. Wether mapinfo via ogr cann't request, i
have no clue. But I would think, it should be possible.
 
I have checked, that the url is a valid wfs server, also it seems,

that it points to a wms server.
 
Arnd



*Von:* mapserver-users-boun...@lists.osgeo.org

[mailto:mapserver-users-boun...@lists.osgeo.org
] *Im Auftrag von
*Yves Jacolin
*Gesendet:* Mittwoch, 24. März 2010 10:24
*An:* mapserver-users
*Betreff:* [mapserver-users] WMS GetFeatureInfo on a WFS layer

Hi,

I added a WFS layer in my mapfile and I am using MapServer as a
WMS server. I would like to send a GetFeatureInfo request on this
WFS layer but I always get a "Search return no result" as answer.

Is it possible to request such layer? I get same problem with an
OGR connection (mapInfo file). Does the problem could occur only
with a polyline feature if we click always too far of the feature?

Or the problem occur from the WFS service?

The WFS service I want to request in my WMS service is
http://carto.ecologie.gouv.fr/MEDD/wms.php?service_idx=17W&map=sacarte.map


Thanks in advance for your help,

Y.
-- 
Yves Jacolin

Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
Tel : + 33 (0)4 79 26 57 97
http://www.camptocamp.com
yves.jaco...@camptocamp.com 




--
Yves Jacolin
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac Cedex
Tel : + 33 (0)4 79 26 57 97
http://www.camptocamp.com
yves.jaco...@camptocamp.com 


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



--

Assefa Yewondwossen   
Software Analyst   

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] compiling error current trunk and --with-wfs

2010-03-23 Thread Yewondwossen Assefa
I am looking into this.  Bug related to this is 
http://trac.osgeo.org/mapserver/ticket/3282

Lars Lingner wrote:

Hello,

with current trunk (r9997) I'm getting

./libmapserver.a(mapwfs.o): In function `msWFSGetCapabilities':
mapwfs.c:(.text+0x57cd): undefined reference to
`msOWSCommonNegotiateVersion'

./configure  --with-ogr --with-proj --with-gdal --with-wfs

Its compiling successfull when using

./configure  --with-ogr --with-proj --with-gdal


With 5.6.3. I couldn't reproduce the problem. I'm using a debian system.

Can someone confirm this problem? Should I file a ticket?


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

  



--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] keyimage / getlegendgraphic

2010-03-22 Thread Yewondwossen Assefa

Jörg,

bug related to this is http://trac.osgeo.org/mapserver/ticket/3398. It 
should be fixed in trunk


regards,



Jörg Thomsen wrote:

huhu,

does really nobody have an idea how to solve this? :(


since an update from mapserver 4.x to 5.6 we have a problem with the
keyimage of rasterlayers. The keyimage is unusually large, but with
the old version it worked.

the original imagine is 451*1949 px the keysize in the mapfile is
given with

KEYSIZE 450 1950


The image which is now delivered has a size of 472*1960px, most of
this picture is white canvas, the original graphic is very small and
placed at the lower left corner.

Any suggestions?


I found an older post meanwhile, so I am not the only one having this 
problem:
http://lists.osgeo.org/pipermail/mapserver-users/2009-December/063947.html 



Regards, Jörg
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WFS limit time interval to POSTGIS

2010-03-18 Thread Yewondwossen Assefa


Heiko Schröter wrote:

Hello,

by setting up a WFS server i need to limit the time interval for the requests 
to the postgis db (Millions of data points inside POSTGIS).
The WMS part with time interval requests is working and i'am trying to make 
these data available through WFS as well.

What i can find in the docs is a FILTER with a WFS Client connecting a WFS 
server.
But this seems not to apply for DATE interval calculus.

The only thing i get in the moment is the whole data set at once or the first 
NUMBER (here 10) of entries.

Is it possible at all to limit the requested time interval to a WFS server ?
i.e. something like TIME=2007-1-2/2007-1-3

  


Hi there,

There is no explicit support of a TIME parameter in wfs but  I believe 
It should be possible on a postgis layer to use the FilterEncoding to 
limit the request: would something like this work for you:


Filter=your_time_field2007-01-02your_time_field2007-01-03


regards,


Thanks and Regards
Heiko


LAYER
EXTENT -180 -90 180 90
CONNECTIONTYPE POSTGIS
NAME "TEST"
PROCESSING "CLOSE_CONNECTION=DEFER"
OPACITY 60
STATUS ON
DUMP TRUE
METADATA
"wfs_title" "test"
"wfs_maxfeatures" "10"
"gml_featureid" "ID" ## REQUIRED
"gml_include_items" "all" ## Optional (serves all 
attributes for layer)
"gml_geometries" "rechteck"
"gml_rechteck_type" "polygon"
END
PROJECTION
"init=epsg:4326"
END
CONNECTION "user={BF961C25A57BA226} password={C9748CA35D48D049} 
dbname={6B40E65B12B92106} host=localhost"
DATA "rechteck from test_data using srid=-1 using unique datum"
TYPE POLYGON
SIZEUNITS meters
CLASS
NAME "test_class"
STYLE
OUTLINECOLOR 0 0 0
COLOR [farbe]
END
END
END # Layer
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

  



--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WMS TIME parameter slow

2010-03-18 Thread Yewondwossen Assefa

Sorry to jump late on this.

The use of the date_trunc function for postgis layers (described 
http://mapserver.org/ogc/wms_time.html) was from what I remember to 
allow queries (on a timestamp field)
like time=2001-01-01 expecting to get back  all values of the day 
regardless of the time set. I have entered a bug on it 
(http://trac.osgeo.org/mapserver/ticket/3382) to be able to review it 
before the 6.0 release.


regards,


Paul Ramsey wrote:

Sorry, there's not much more I can offer, you've done a great job
debugging, but at the end of the day the SQL being generated by the
WMS Time module is not great. Make sure to run 'ANALYZE' on your
database so the planner has the latest stats.

P.

On Thu, Mar 11, 2010 at 5:59 AM, Heiko Schröter
 wrote:
  

Am Donnerstag 11 März 2010 14:35:53 schrieben Sie:

Paul,

thanks for staying at it. These timings i get with the variation of the theme. 
The second best is to cast 'datum::timestamp'. But still beeing 32times slower 
than just a trivial compare on the index as in 1). The slowest run is the brute 
force 'date_trunc' without cast 3). So to me this is a bit voodo why postgres 
refuses to scan the indices in proper speed in 2) and 3).
The maximum index scan i get with 'date_trunc' is a 'Bitmap Heap Scan' on the 
index with scenario 2).
Of what i have found inside the docs/google is that even when casting 'datum' 
inside postgres the request, here generated by MS, should or have to be casted 
as well which is not (at least by now).

Heiko


1) The brute force compare:
sc_gis=# explain analyze select 
"datum","farbe",encode(AsBinary(force_collection(force_2d("rechteck")),'NDR'),'hex') as 
geom,"datum" from o_v20 where rechteck
&& GeomFromText('POLYGON((-134.90506329114 -78.2278481012662,-134.90506329114 
78.2278481012663,134.90506329114
78.2278481012663,134.90506329114 -78.2278481012662,-134.90506329114 
-78.2278481012662))',-1) and (datum >= '2007-12-10' and datum <= '2007-12-11');

 Total runtime: 41.018 ms
(32 rows)

Now Create Immutable Index on our play table:
CREATE INDEX o_v20_y2007_date_trunc ON o_v20_y2007 (date_trunc('day', 
datum::timestamp without time zone));
2)
sc_gis=# CREATE INDEX o3_v20_y2007_date_trunc ON o3_v20_y2007 
(date_trunc('day', datum::timestamp without time zone));
ERROR:  relation "o3_v20_y2007_date_trunc" already exists
scia_gis=# explain analyze select 
"datum","farbe",encode(AsBinary(force_collection(force_2d("rechteck")),'NDR'),'hex') as 
geom,"datum" from o_v20 where rechteck
&& GeomFromText('POLYGON((-134.90506329114 -78.2278481012662,-134.90506329114 
78.2278481012663,134.90506329114
78.2278481012663,134.90506329114 -78.2278481012662,-134.90506329114 
-78.2278481012662))',-1) and ((date_trunc('day', datum::timestamp without time zone) 
>= '2007-12-10' AND date_trunc('day', datum::timestamp without time zone) <= 
'2007-12-11'));

 Total runtime: 1250.679 ms
(26 rows)

3)
sc_gis=# explain analyze select 
"datum","farbe",encode(AsBinary(force_collection(force_2d("rechteck")),'NDR'),'hex') as 
geom,"datum" from o_v20 where rechteck
&& GeomFromText('POLYGON((-134.90506329114 -78.2278481012662,-134.90506329114 
78.2278481012663,134.90506329114
78.2278481012663,134.90506329114 -78.2278481012662,-134.90506329114 
-78.2278481012662))',-1) and ((date_trunc('day', datum) >= '2007-12-10' AND 
date_trunc('day', datum) <= '2007-12-11'));

 Total runtime: 2329.380 ms
(23 rows)



Good job getting this far on your own! Create a SQL wrapper function
on top of date_trunc which *is* marked as immutable and you'll be able
to build a functional index on it.

P.

On Thu, Mar 11, 2010 at 1:39 AM, Heiko Schröter
 wrote:
  

Am Mittwoch 10 März 2010 16:52:28 schrieb Heiko Schröter:

Done what has been suggested. The 'date_trunc' function forces sequential scans 
instead of using the indexed scans.

I've tried and failed:
sc_gis=# CREATE INDEX o_v20_y2007_date_trunc ON o_v20_y2007 (date_trunc('day', 
datum at time zone 'GMT'));
ERROR:  functions in index expression must be marked IMMUTABLE

Probably the MS list is not the right place to ask.
But may be a kind soul has some pointers to more infos.
I admit that db's are not my field of experience and i'am still learning.

On the other hand it would be nice to have a hint about the indexing issue 
inside the MS docs when using the WMS Time extension.

Heiko


sc_gis=# explain analyze select 
"datum","farbe",encode(AsBinary(force_collection(force_2d("rechteck")),'NDR'),'hex') as 
geom,"datum" from o_v20 where rechteck
&& GeomFromText('POLYGON((-134.90506329114 -78.2278481012662,-134.90506329114 
78.2278481012663,134.90506329114
78.2278481012663,134.90506329114 -78.2278481012662,-134.90506329114 
-78.2278481012662))',-1) and (datum >= '2007-12-10' and datum <= '2007-12-30');
QUERY PLAN
-

Re: [mapserver-users] getmap request with SLD failing after upgrade to 5.6.0

2010-03-03 Thread Yewondwossen Assefa

Bart van den Eijnden wrote:

Then I fear you have run into (like myself):

http://trac.osgeo.org/mapserver/ticket/3289

Assefa can confirm this. Btw the fix was only done in trunk, should it not be 
done in the 5.6 branch as well?

  
The fix was back ported to the 5.6 branch and should be available for 
the next 5.6.2 release.


best regards,



Best regards,
Bart

On Mar 3, 2010, at 9:41 AM, DeDuikertjes wrote:

  

Bart,

I've tried to do so, no difference in either error file or temporary mapfile 
expressions

MArco

Bart van den Eijnden schreef:


It seems Mapserver does not treat your column as a character column, try using 
the following METADATA on your source layer (so not in the temporary MAP file):

"gml_geoidn_type" "Character"

Best regards,
Bart

On Mar 3, 2010, at 8:52 AM, DeDuikertjes wrote:

 
  

Bart,

Thanks for the suggestion. I've opened up the temporary MAP file. A layer 
definition from this file is (there are a LOT more like that):

LAYER
 CONNECTION "host=xxx user=x dbname=xxx"
 CONNECTIONTYPE POSTGIS
 DATA 'tc_punt_geometry from "NL.IMRO.0184.Zeewijkfase4-0201_aggregated" using 
unique oid using srid=28992'
 DUMP TRUE
 GROUP "query"
 METADATA
   "wms_srs" "EPSG:28992 EPSG:900913 EPSG:4326"
   "ows_feature_id"  "geoidn"
   "ows_group_title" "query"
   "ows_extent"  "170861.5122 520007.0618 171570.1698 520546.6582"
   "gml_exclude_items"   
"tc_multi_geometry,tc_vlak_geometry,tc_lijn_geometry,tc_punt_geometry"
   "ows_title"   "query_punt"
   "gml_include_items"   "all"
   "ows_exclude_items"   "all"
 END
 NAME "query_punt"
 PROCESSING "CLOSE_CONNECTION=DEFER"
 PROJECTION
   "init=epsg:28992"
 END
 STATUS ON
 TEMPLATE "query.html"
 TYPE POLYGON
 UNITS METERS
 CLASS
   NAME "Unknown"
   EXPRESSION ([geoidn] = NL.IMRO.0184.EP127818521-00)
   STYLE
 ANGLE 360
 COLOR 255 0 255
 OPACITY 40
 SIZE 2
 SYMBOL "sld_line_symbol"
 WIDTH 1
   END
   STYLE
 ANGLE 360
 COLOR 255 0 255
 OPACITY 40
 SYMBOL 0
 WIDTH 1
   END
   STYLE
 ANGLE 360
 OPACITY 40
 OUTLINECOLOR 255 0 255
 SIZE 2
 SYMBOL "sld_line_symbol"
 WIDTH 1
   END
 END
END

MArco



Bart van den Eijnden schreef:
   


Hi Marco,

Mapserver has saved a temporary MAP file, please open it up and check if 
something is wrong in there, or post the LAYER definition to the  mailing list.

  
  

/var/www/cgi-bin/../html/viewerfabriek-alpha/data/vf_80.101.100.35_check/4b8d40f7e0787/4b8e0df9_52ef_0._sld.map
  


Best regards,
Bart

On Mar 3, 2010, at 8:30 AM, DeDuikertjes wrote:

  
  

Thank you,

I've did as you said, but can't get a clue on what's going on.
The error file shows:

[Wed Mar  3 08:21:29 2010].677158 msApplySLD(): Map file after SLD was applied 
/var/www/cgi-bin/../html/viewerfabriek-alpha/data/vf_80.101.100.35_check/4b8d40f7e0787/4b8e0df9_52ef_0._sld.map[Wed
 Mar  3 08:21:29 2010].731599 msyyparse(): Expression parser error. syntax error
[Wed Mar  3 08:21:29 2010].731628 msEvalExpression: Expression parser error. 
Failed to parse expression: NL.IMRO.0184.BA127909736-00 = 
NL.IMRO.0184.EP127818521-00
[Wed Mar  3 08:21:29 2010].731649 msyyparse(): Expression parser error. syntax 
error
And a lot more of these expression errors.
Then followed by
[Wed Mar  3 08:21:29 2010].745454 msDrawMap(): Layer 0 (query_vlak), 0.029s
[Wed Mar  3 08:21:29 2010].747286 msDrawMap(): Layer 1 (query_lijn), 0.002s
[Wed Mar  3 08:21:29 2010].749832 msDrawMap(): Layer 2 (query_punt), 0.003s
[Wed Mar  3 08:21:29 2010].750760 msDrawMap(): Drawing Label Cache, 0.000s
[Wed Mar  3 08:21:29 2010].750771 msDrawMap() total time: 0.046s
[Wed Mar  3 08:21:29 2010].999507 msSaveImage() total time: 0.249s
[Wed Mar  3 08:21:29 2010].999706 mapserv request processing time (msLoadMap 
not incl.): 0.336s
[Wed Mar  3 08:21:29 2010].999723 msFreeMap(): freeing map at 0x81bf400.

What is going wrong?

MArco


Yewondwossen Assefa schreef:
  


Hi There,

One way to debug would be to set your map file in debug, something like this:
CONFIG  "MS_ERRORFILE" "f:/msapps/gmap-ms40/htdocs/gmap.log"
DEBUG 5
and check the logs. It should show you the map file after the sld has been 
applied. That might give a  hint on what went wrong.

best regards,

DeDuikertjes wrote:
  
  

Hi List,

Finally I managed to upgrade mapserver 5.1-dev (FWTools) to 5.6.0 (FGS).
I use it as a WMS. Everything looks fine, but I've one anoying problem:

When I do a getmap-request with an SLD I get an empty image back, while
5.1-dev gives me a proper result.
Other getma

Re: [mapserver-users] getmap request with SLD failing after upgrade to 5.6.0

2010-03-02 Thread Yewondwossen Assefa

Hi There,

One way to debug would be to set your map file in debug, something like 
this:

CONFIG  "MS_ERRORFILE" "f:/msapps/gmap-ms40/htdocs/gmap.log"
DEBUG 5
and check the logs. It should show you the map file after the sld has 
been applied. That might give a  hint on what went wrong.


best regards,

DeDuikertjes wrote:

Hi List,

Finally I managed to upgrade mapserver 5.1-dev (FWTools) to 5.6.0 (FGS).
I use it as a WMS. Everything looks fine, but I've one anoying problem:

When I do a getmap-request with an SLD I get an empty image back, while
5.1-dev gives me a proper result.
Other getmap requests work fine.
I tested this several times by swapping the old mapserv executable with
the new one.

an example of a getmap request which fails on 5.6.0 and succeeds in
5.1-dev is:
https://85.12.17.114/cgi-bin/mapserv?map=../html/viewerfabriek-alpha/data/vf_80.101.100.35_check/4b8d40f7e0787/NL.IMRO.0184.Zeewijkfase4-0201.map&LAYERS=query&FORMAT=png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SLD_BODY=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3Csld%3AStyledLayerDescriptor%20version%3D%221.0.0%22%3E%3Csld%3ANamedLayer%3E%3Csld%3AName%3Equery%3C%2Fsld%3AName%3E%3Csld%3AUserStyle%3E%3Csld%3AName%3Equery%3C%2Fsld%3AName%3E%3Csld%3AFeatureTypeStyle%3E%3Csld%3ARule%3E%3Cogc%3AFilter%3E%3Cogc%3APropertyIsEqualTo%3E%3Cogc%3APropertyName%3Egeoidn%3C%2Fogc%3APropertyName%3E%3Cogc%3ALiteral%3ENL.IMRO.0184.EP127818521-00%3C%2Fogc%3ALiteral%3E%3C%2Fogc%3APropertyIsEqualTo%3E%3C%2Fogc%3AFilter%3E%3Csld%3APolygonSymbolizer%3E%3Csld%3AFill%3E%3Csld%3ACssParameter%20name%3D%22fill%22%3E%23FF00FF%3C%2Fsld%3ACssParameter%3E%3Csld%3ACssParameter%20name%3D%22fill-opacity%22%3E0.4%3C%2Fsld%3ACssParameter%3 

E%3C%2Fsld%3AFill%3E%3Csld%3AStroke%3E%3Csld%3ACssParameter%20name%3D%22stroke%22%3E%23FF00FF%3C%2Fsld%3ACssParameter%3E%3Csld%3ACssParameter%20name%3D%22stroke-opacity%22%3E0.4%3C%2Fsld%3ACssParameter%3E%3Csld%3ACssParameter%20name%3D%22stroke-width%22%3E2%3C%2Fsld%3ACssParameter%3E%3C%2Fsld%3AStroke%3E%3C%2Fsld%3APolygonSymbolizer%3E%3Csld%3ALineSymbolizer%3E%3Csld%3AStroke%3E%3Csld%3ACssParameter%20name%3D%22stroke%22%3E%23FF00FF%3C%2Fsld%3ACssParameter%3E%3Csld%3ACssParameter%20name%3D%22stroke-opacity%22%3E0.4%3C%2Fsld%3ACssParameter%3E%3Csld%3ACssParameter%20name%3D%22stroke-width%22%3E2%3C%2Fsld%3ACssParameter%3E%3C%2Fsld%3AStroke%3E%3C%2Fsld%3ALineSymbolizer%3E%3C%2Fsld%3ARule%3E%3C%2Fsld%3AFeatureTypeStyle%3E%3C%2Fsld%3AUserStyle%3E%3C%2Fsld%3ANamedLayer%3E%3C%2Fsld%3AStyledLayerDescriptor%3E&SRS=EPSG%3A900913&BBOX=625312.21905694,6921632.3781404,627462.0104771,6922637.4056294&WIDTH=1800&HEIGHT=841 



any help greatly appreciated, MArco



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




--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925




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


Re: [mapserver-users] WFS query problem (MS 5.0)

2010-02-24 Thread Yewondwossen Assefa

Bart,

I think It is this one: http://trac.osgeo.org/mapserver/ticket/2444. 
Patch is in the bug.


best regards,

Bart van den Eijnden wrote:

Hi James,

all data sources are PostGIS. I am sure the WFS request is valid.

It only happens if I click somewhere where one of the two layers has no data, 
if I click somewhere where both layers have data all is fine.

Best regards,
Bart

On Feb 24, 2010, at 10:39 AM, James Perrins wrote:

  

Hi Bart,

I imagine you've thought of these (and from your post that you are
sure that your WFS request is valid - and that it should be returning
data) - but just in case:

- Does this happen all the time - or only on some areas / requests ?
We have had issues with certain more complex gemometry types - or some
geometries that are questionably formed

- Where is the data coming from ?
We've had issues with data sources that can supply mixed geometry
types - or even I think grouped layers where it included perhaps
points for one zoom level and polygons for another

Sorry - can't help with version numbers - don't keep track of that
stuff too carefully

Good luck


On Wed, Feb 24, 2010 at 8:28 AM, Bart van den Eijnden  wrote:


Hi list,
I need someone with a good memory on Mapserver history :-)
I am running into what I believe is an old bug in Mapserver WFS,
unfortunately we are still running an old MS 5.0.0.
When doing a WFS query and one of the layers returns an error (like no
matching records found), no feature collection is returned but only the
error message.
Can someone remember this bug, and also if there is a workaround, if no
workaround then in what version was this fixed? TIA.

http://www.opengis.net/ogc";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.opengis.net/ogc
http://schemas.opengis.net/wms/1.1.1/OGC-exception.xsd";>
 
msQueryByRect(): Search returned no results. No matching record(s) found.
 


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


  


--
Dr James Perrins
exeGesIS SDM Ltd
Great House Barn
New Street, Talgarth
Powys LD3 0AH.
Direct Line: 01646 686650
Tel: 01874 711145
Fax: 01874 711156
Email: jam...@esdm.co.uk

This E-mail and any files transmitted with it are private and intended
solely for the use of the individual or entity to whom they are
addressed. If you are not the intended recipient, the E-mail and any
files have been transmitted to you in error and any copying,
distribution or other use of the information contained in them is
strictly prohibited.

Nothing in this E-mail message amounts to a contractual or other legal
commitment on the part of exeGesIS SDM Ltd unless confirmed by a
signed communication.

exeGesIS SDM Ltd will make every effort to keep its network free of
viruses. However, the recipient of this message will need to scan this
message, and any attachments, for viruses, as exeGesIS SDM Ltd can
take no responsibility for any computer virus that might be
transferred by this e-mail.




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

  



--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] OtherSRS is not shown in WFS Capabilities

2010-02-22 Thread Yewondwossen Assefa

Hi There,

There is a trac bug on this issue 
(http://trac.osgeo.org/mapserver/ticket/3227) and should be fixed in the 
next couple of weeks. It would be good if you can add your name to the 
bug to get an update on it and report any issues.


best regards,

Mauricio Pazos wrote:
Hello everyone, 

I have configured the WFS  to provide many SRS as output like is shown in the 
example http://www.mapserver.org/ogc/wfs_server.html.


This is part of the mapfile


MAP
NAME "WFS"
STATUS ON
SIZE 400 300
EXTENT 53 474 61 482
UNITS METERS
IMAGECOLOR 255 255 255
WEB
METADATA
"wfs_title" "WFS"
"wfs_abstract"  "Web Feature Service Default TEST"
"wfs_onlineresource""http://192.168.2.22/cgi-bin/wfs?";
"wfs_srs"   "EPSG:23030 EPSG:25830 EPSG:4326"
END
END

PROJECTION
"init=epsg:23030"
END

LAYER
NAME "RIVER_BASIN"
METADATA
"wfs_title" "RIVER_BASIN"
"wfs_abstract"  "River Basin"
"wfs_extent""515055 474 624945 481"
"gml_featureid" "ID"
"gml_include_items" "all"
END
TYPE POLYGON
STATUS ON
CONNECTIONTYPE oraclespatial
CONNECTION "WFSNEW/ax...@orcl"
DATA "GEOM FROM VRIVER_BASIN USING UNIQUE ID SRID 23030 VERSION 10g"
PROJECTION
  "init=epsg:23030"
END
DUMP TRUE
CLASS
STYLE
OUTLINECOLOR 0 0 0
COLOR 120 120 120
END
END
END # RIVER_BASIN

As you can see there are three SRSs specified "EPSG:23030 EPSG:25830 EPSG:4326" 
as output in the web metadata section, but the capabilities operation present 
only the first (EPSG:23030) as DefaultSRS element. 


This is part of the capability response

xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";>


...




Query



 RIVER_BASIN
 RIVER_BASIN
 River Basin

 EPSG:23030


 text/xml; subtype=gml/3.1.1


...





I think it should present 
EPSG:23030

EPSG:25830
EPSG:4326

What is wrong? Any idea?

Thanks in advance. 

  



--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Wfs without geometry information

2010-02-16 Thread Yewondwossen Assefa

ibrahimsaricicek wrote:

Is there a way of getting a wfs request without geometry information?
How can i filter geometry in upcoming xml?
  
For a WFS GetFeature request,  you can specify a layer level metadata :  
"gml_geometries" "none"


regards,


--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] Position of label

2010-01-18 Thread Yewondwossen Assefa

Jan Hartmann wrote:

Hi folks,

Is there a way to get back the exact position of the labels in a 
MapServer map? I want to make the labels clickable with Ajax, so a x-y 
values in image coordinates would be enough. I looked in the Template 
and Mapscript docs, but couldn't find anything about the (computed) 
position of labels.


Jan

Hi Jan,

This should be available pretty soon in trunk using Mapserver Templates 
(http://trac.osgeo.org/mapserver/ticket/3241), Please add your name in 
CC on this bug for comments/suggestions.


best regards,



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




--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] WMS-Client example

2010-01-04 Thread Yewondwossen Assefa

www2.dmsolutions.ca/cgi-bin/mswms_gmap  is now up and running.

regards,



Rahkonen Jukka wrote:

Hi,

First problem is that the url "www2.dmsolutions.ca/cgi-bin/mswms_gmap?" does 
not answer.  You have no chance to succeed with that WMS server at the moment.

-Jukka Rahkonen-


greenzeod wrote:

  

Hello,

I have a problem with the WMS-Client sample layer, which 
doesnŽt work for me.
I tried to add the prov_bound layer to my map-config file, 
but when I tried to display the layer, i get only a white image.


If i use the local bathymetry layer instead of prob_bound - it works.

Did I make something wrong? 


Best Regrads

Sergej


My call for the image:

http://127.0.0.1/cgi-bin/mapserv.exe?MAP=E:/Program%20Files%20
%28x86%29/ms4w/apps/gmap/htdocs/gmap75.map&SERVICE=wms&VERSION
=1.1.1&LAYERS=prov_bound&REQUEST=GetMap&SRS=EPSG:42304&BBOX=-2
20,-712631,3072800,384&FORMAT=image/png&WIDTH=400&HEIGHT=300


MAP-File:

#
# Start of layer definitions
#
LAYER
  NAME "prov_bound"
  TYPE RASTER
  STATUS ON
  CONNECTION "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?";
  CONNECTIONTYPE WMS
  METADATA
"wms_srs" "EPSG:42304 EPSG:42101 
EPSG:4269 EPSG:4326 EPSG:42304"

"wms_name""prov_bound"
"wms_server_version"  "1.1.0"
"wms_formatlist"  
"image/gif,image/png,image/jpeg,image/wbmp"

"wms_format"  "image/gif"
  END
END




LAYER
  NAME bathymetry
  METADATA
"wms_title" "Elevation/Bathymetry"
  END
  TYPE RASTER
  STATUS ON
  DATA bath_mapserver.tif
  PROJECTION
"init=epsg:42304"
  END
END

END # layer



___
Preisknaller: WEB.DE DSL Flatrate für nur 16,99 Euro/mtl.! 
http://produkte.web.de/go/02/


___
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

  



--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] attribute bindings for SYMBOL and FONT?

2009-12-18 Thread Yewondwossen Assefa

Brent Fraser wrote:

The short story:

  Is it possible to bind a CLASS's SYMBOL object to an attribute (i.e 
store the symbol name as a attribute of a feature)?  And the LABEL 
objects FONT name?


Binding would be with  style'symbol, instead of class symbol.  Font also 
can be bound.  I will update the docs to reflect that.  The list of 
binding elements is:


For style:
 SIZE, WIDTH, ANGLE, COLOR, OUTLINECOLOR, SYMBOL, OUTLINEWIDTH, OPACITY

for labels: SIZE, ANGLE, COLOR, OUTLINECOLOR, FONT, PRIORITY

regards,


The Long Story:
---
I've been working with the yet-to-be-released Feature Editor in 
Geomoose v2. It allows the user to digitize features (points, lines, 
and polygons) and assign attributes, then stores them in PostGIS.


I want to allow simple styling and don't want to have a map file the 
size of "War and Peace", so I thought I would use the 
attribute/item/column binding abilities of Mapserver's CLASS and LABEL 
objects.


To that end, one of the columns the feature table will be "style name" 
(or maybe "feature class"), which I'll use to join to a style table 
(with COLOR, WIDTH, etc columns) to get the feature rendered in a 
simple style.


After a quick review of Mapserver's doc, most of the most important 
objects can be bound to attributes, with two exceptions, SYMBOL 'name' 
and FONT 'name':


CLASS
  STYLE
ANGLE [angle]
COLOR [color]  #R G B
OUTLINECOLOR [olcolor] #R G B
SIZE [size]
WIDTH [width]  # v5.2

SYMBOL 'name' # in SYMBOLSET

  END #STYLE

  TEXT ([label])
  LABEL
ANGLE  [label_angle]
COLOR [label_color]
OUTLINECOLOR [label_olcolor]
PRIORITY [label_priority]
SIZE [label_size]

FONT 'name' # in FONTSET

  END #LABEL

END # CLASS

How difficult would it be to have attribute binding for SYMBOL and 
FONT?  I suppose I could use mapscript, but I'd rather not.


Thanks!
Brent Fraser

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




--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] increase timeout limit

2009-12-14 Thread Yewondwossen Assefa
You can try setting the time using *“wms_connectiontimeout” 
(*http://www.mapserver.org/ogc/wms_client.html)


regards,

Holger Porath wrote:

Hi list,

I am trying to render a big WMS map with mapserver 5.0 but I am 
encountering the following issue:


msDrawWMSLayerLow(): WMS server error. WMS GetMap request failed for 
layer 'abc' (Status -28: TIMEOUT of 30 seconds exceeded.).


Does anyone know how I can increase the timeout limit. 30 seconds 
doesn't seem to be enough for my map.


Thanks in advance.

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




--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


Re: [mapserver-users] GetLegendGraphic, class name, no label

2009-12-08 Thread Yewondwossen Assefa

Hi Steve,


Have you tried to add width and height parameters in your request with 
the rule specified: ...&width=20&height=20&Format=gif&RULE=my_rule
That should allow you to get the exact size. If not I believe the 
default sizes are taken from the keysize parameter legend block in the 
map file. If not defined it will default to 20/10.


regards,

steve.tout...@inspq.qc.ca wrote:


Hi,
I'm using GetLegendGraphic to get an icon.
I don't want any label so I don't give a class name in the layer 
definition.


I have a layer with several classes. I would like to get the icon for 
the last class only, without the label.
I tried to use RULE=className in the request, and give a className to 
my last class, but the icon is distorted, too big.


If I keep only one class (the last one I want) in the mapfile, without 
a classname, and without RULE key in the request the icon I get is good.


Is there some more information I need to use RULE key in the request? 
Maybe I misunderstood this key uses.

thanks
steve


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



--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



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


  1   2   >