[mapserver-users] Re: [UMN_MAPSERVER-USERS] Non-MS4W Windows binaries for MapServer 5

2008-02-14 Thread Yewondwossen Assefa

Rafal,

 If you only need the binaries and not the whole ms4w environment, you 
can still download the ms4w and just get the binaries from it. Look at 
http://maptools.org/ms4w/index.phtml?page=README_INSTALL.html#i-installing-the-ms4w-mapserver-binaries-in-other-environments

for what needs to be extracted.

Best Regards

Rafal Wawer wrote:

Dear All,
 
I am looking for MapServer 5.x. binaries precompiled for Windows.
 
I know, that there is the MS4W ( I've been using it for testing) but in 
opinon of my network amdins that solution is not safe enough for a 
proffessional service with copyrighted data behind it.
What I am looking for is a MapServer to be put on top on Apache under 
Windows OS. I thought I will find it on MapServer's website, but there 
is only a link to MS4W and FWTools.
 
I will appreciate your help.

Kind regards:
Raf
 


Dr. Rafal Wawer

K.U.Leuven

R&D Division SADL (Spatial Application Division)

Celestijnenlaan 200e bus 2224

BE-3001 Leuven-Heverlee

Belgium

tel. 0032 16 329731

 



Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm for more 
information.





--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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] SUMMARY: SLD not working

2008-02-14 Thread Yewondwossen Assefa

Paul,


The problem was that the SLD that works fine in geoserver does not work fine
in mapserver.  


You are right, Userlayers are not supported.


In MapServer, one must use sld:NamedLayer rather than sld:UserLayer.
Further, the NamedLayer name must match the map file layer name.

Jeff McKenna says it all in the docs:
When MapServer gets a valid SLD through a request, it parses this SLD to
extract 
all the styles attached to the NamedLayers, and then it applies these styles
to 
the map before it is returned to the client. When applying the SLD,
MapServer 
compares the names used in the map files with the names of the NamedLayers
in 
the SLD document.

RE http://mapserver.gis.umn.edu/docs/howto/sldhowto



 I have added a comment in the docs to clarify that part of the text: 
something like : When applying the SLD, MapServer compares the  
parameter of the NamedLayers in the SLD document to the wms layer names 
(wms layer names are available with a getcapabilities request)
Saying that, the wms layer names exposed in the capabilities document 
come from the layer's name in the map file so the previous text is also 
technically correct.


Best Regards,


For clarity, I never stated what I meant exactly by "not working."
"Not working" in this case meant that the polygon was not being rendered.




--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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: re[MAPSERVER-USERS] ad angle from database to rotate symbol -> Symbol definition error

2008-02-19 Thread Yewondwossen Assefa

Paul,

 I think the syntax for attribute binding is something like
   ANGLE [orientation] (attribute value in brackets). Could you try 
changing you map file and give it a try.


Best Regards,


Paul L wrote:

Dear List

I'm not the first one to ask this question, but I am unable to use the older
list-posts as in the meantime (mapserver 5.0) the ANGLEITEM seems to be
deprecated, if I understand this document
http://mapserver.gis.umn.edu/development/rfc/ms-rfc-19
correctly.

I am reading points from a postgis-table and would like Mapserver to rotate
the symbols of each point according to the rotation-value stored as integer
in the same table. It works fine as long as I hardcode the angle like
"ANGLE=45". As soon as I try setting ANGLE="orientation" I get the
errormessage: 


getSymbol(): Symbol definition error. Parsing error near
(orientierung):(line 126)

Can you help me find my errors?
Thank you very much
Paul

P.S. I can actually read the angle and display it as a label, so it
shouldn't be a problem of reading from the database.


LAYER

NAME points
TYPE POINT
CONNECTIONTYPE POSTGIS
CONNECTION "dbname=test_postgis user=postgres password=postgres
host=localhost port=5432"
DATA "geometry from (select id, name, orientation, geometry from points)
as foo USING UNIQUE id USING SRID=-1"
  STATUS DEFAULT
  TRANSPARENCY 65

  CLASS
  STYLE
SYMBOL "U"
SIZE 15
COLOR 0 0 150
ANTIALIAS TRUE
ANGLE 45
#ANGLE "orientation" #throws error: getSymbol(): Symbol definition error
(..)
  END
  END
END



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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] Farsi right-to-left labels

2008-03-11 Thread Yewondwossen Assefa

Hi There,

 Have you looked at the PostArabic posgresql module 
(http://dcmms.sourceforge.net/postarabic.php).


 Not sure if Farsi and Arabic text are treated similarly but If that 
was the case, you can load your data into a postgres/postgis DB, install 
the postarabic module and use str_reverse and the shape_arabic functions 
available to display your postgis layer with the labels in Mapserver.


Best Regards,

R Isfahani wrote:

Hi,

I'm trying to render some Farsi (Persian) labels on my map. As you may 
know, Farsi words are written from right to left, just like Hebrew.
I've changed the label's encoding to 'Windows-1256' in my mapfile and 
I'm using TrueType fonts. Farsi letters have appeared. But the problem 
is that letters are in revers order and letters are not joining properly.
Of course reversing the letters' order in database will cause the right 
order of them when rendering the map. But I wanna know if there's any 
other way to show farsi labels in right order with no joining problems.
 
[Actually, I'm using Ka-Map on the top of Mapserver to render my maps on 
the web. Ka-Mappers told me that my problem is a kind of Mapserver problems]


Any new ideas are welcomed.
Thanx.


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try 
it now. 






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



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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] Farsi right-to-left labels

2008-03-12 Thread Yewondwossen Assefa



Stephen Woodbridge wrote:

Hi Daniel,

I looked at the patch briefly.
It doesn't seem to be doing character joining for works in Arabic.

I'm thinking that if we had the algorithm to do the joining then we 
could add that and maybe a Tag or metadata item that enabled the joining 
 if needed. The joining algorithm, might be smart enough to only join 
Arabic letters and leave the rest alone.


If you are interested, I think I can get my hands on a perl script that 
does the joining.




Steve,

 Isn't is what the function shape_arabic (from the PostArabic) module 
does?  If that is the case, the source code in C and an original perl 
source code are available on the web.


Best Regards,



-Steve W

Daniel Morissette wrote:
Copying what I wrote earlier this morning on the ka-map list (sorry 
for those on both lists):


FYI there is an open MapServer ticket about this:
  http://trac.osgeo.org/mapserver/ticket/956

The ticket even includes a patch that you may want to try. I'll try to 
address this one for MapServer 5.2.


Daniel


R Isfahani wrote:

Hi,

I'm trying to render some Farsi (Persian) labels on my map. As you 
may know, Farsi words are written from right to left, just like Hebrew.
I've changed the label's encoding to 'Windows-1256' in my mapfile and 
I'm using TrueType fonts. Farsi letters have appeared. But the 
problem is that letters are in revers order and letters are not 
joining properly.
Of course reversing the letters' order in database will cause the 
right order of them when rendering the map. But I wanna know if 
there's any other way to show farsi labels in right order with no 
joining problems.
 
[Actually, I'm using Ka-Map on the top of Mapserver to render my maps 
on the web. Ka-Mappers told me that my problem is a kind of Mapserver 
problems]


Any new ideas are welcomed.
Thanx.


___
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: [EMAIL PROTECTED]
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] Re: flash swf output

2008-04-03 Thread Yewondwossen Assefa

Florin,


Hello,

I have a couple of suggestions for the SWF output which would really
help with making more interesting applications:

-THE most important: name the objects in the swf so they can be
accessed by ActionScript


 There is a bug on this specific issue 
http://trac.osgeo.org/mapserver/ticket/2336. What was done here was to 
name every instance with a unique name. Please look at it and 
update/comment in that bug.




-define the rollover, rollout, press and release actions in one
prototype in the root.  this will not break any existing applications
and will reduce file size a bit.
-allow the user to set the amount by which the resolution can be
reduced. how much is lost with FULL_RESOLUTION=FALSE ?
-line thickness for vector lines

I'd like to help work on some of these things,  but I need some
guidance. Maybe a google summer of code thing? I am a student 



I certainly would appreciate any contributions to this module. Usually 
the approach would be to open a trac ticket in Mapserver, discuss the 
issue there and hopefully provide a patch to solve the issue.


I would think these changes would be more appropriate to be dealt 
directly instead of through the google summer code initiative. If we 
were to completely rewrite the swf support, that could make sense for a 
summer code. I also believe that It is a  bit late for this year to submit.



Also, the page at
http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html
should be updated to indicate that the new version of XAMPP contains a
compiled version of Ming 0.4 for Windows.



 I have added a documentation bug to move this document to the 
MapServer site (http://trac.osgeo.org/mapserver/ticket/2567). We can 
review/change it when this is done.


Best Regards,



Florin





--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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 ignored / External Graphic ignored

2008-04-09 Thread Yewondwossen Assefa

Christian,

 I did a quick test using you sld at 
(http://sicky.i-networx.de/temp/mapserv/test.sld) with local data 
(adapted to fit the sld : 
http://localhost/cgi-bin/mapserv.exe?map=f:/msapps/world_testdata/map/sicky.map&SERVICE=WMS&VeRsIoN=1.1.1&Request=GetMap&LAYERS=Baugrenze&BBOX=-81.366241839,42.39269586,-77.8780568047,44.13861927&SLD=http://sicky.i-networx.de/temp/mapserv/test.sld&FORMAT=png&WIDTH=400&HEIGHT=300&SRS=EPSG:4326&FORMAT=png&WIDTH=400&HEIGHT=300&STYLES=
 and I was able to render the layer Baugrenze using the styles defined 
in the sld.  So I believe there is no issue with the sld. Common error 
is usually the SLD is not accessible but you mentioned that you already 
verified that


 2nd point is that external graphics can only be of type png or gif 
(and not SVG). The reason being is that currently MapServer does not 
support SVG symbols.


   I am using Mapserver svn. If you want me to do local tests with your 
map/data, you could zip and send it to me and I will give it a try.


Best Regards,


Sicky wrote:

I'll start off with some background of what I'm trying to do:
I want to define SVGs as external graphic in an SLD to use these as
PointSymbolizers and LineSymbolizers. Firstly I tried GeoServer and it
worked quite fine, the only problem was, that it wasn't rendered very good.
So I thought of trying MapServer, but then the problems came...

I'm running the latest ms4w on Windows 2000 with Apache 2.2.8.

Here's link to my mapfile: http://sicky.i-networx.de/temp/mapserv/test.map

That's the SLD file I let create with the GetStyles request and just changed
a color and width to see if it was recognized:
http://sicky.i-networx.de/temp/mapserv/test.sld
GetStyles document here:
http://sicky.i-networx.de/temp/mapserv/GetStyles.txt

The important part of the GetCapabilities request is:

(the whole one is located here:
http://sicky.i-networx.de/temp/mapserv/GetCapabilities.txt)

Since GetStyles is working fine and the wms server supports SLD I don't see
a problem there (I searched the net for hours and hours to solve the problem
and tried any suggestion..). But when I request a map with an SLD like this:
http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&WIDTH=600&HEIGHT=700&LAYERS=Baugrenze,AllgWohngebiete&STYLES=&SLD=http://localhost:8080/test.sld&FORMAT=image/png

it just ignores the sld and shows this:
http://sicky.i-networx.de/temp/mapserv/sld.png 


http://localhost:8080/test.sld itself is viewable in the browser without any
problems and the names of the layers are mathcing those in the mapfile
(note: in my mapfile i commented out the style for one layer to see if a
style in a mapfile overrides a sld)

I played around with this a bit, e.g. naming it 'test.xml', removing
'STYLES=' and so on... but nothing helped :(

The I thought of the other method to use SLDs, with SLD_BODY. My request is
as follows:
http://localhost:8080/cgi-bin/mapserv.exe?map=/program%20files/ms4w/apps/blp/test.map&REQUEST=getMap&SERVICE=WMS&VERSION=1.1.1&SRS=EPSG:4326&BBOX=3954683.0884047896,5499947.559657593,3954754.5911026173,5499966.522156349&LAYERS=Baugrenze,AllgWohngebiete&SLD_BODY=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E%3CStyledLayerDescriptor+version%3D%221.1.0%22%3E%3CNamedLayer%3E%3CName%3EBaugrenze%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EBaugrenze%3C%2FName%3E%3CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%2300%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3CNamedLayer%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3CUserStyle%3E%3CFeatureTypeStyle%3E%3CRule%3E%3CName%3EAllgWohngebiete%3C%2FName%3E%3

CLineSymbolizer%3E%3CStroke%3E%3CCssParameter+name%3D%22stroke%22%3E%23ff00ff%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-opacity%22%3E1.00%3C%2FCssParameter%3E%3CCssParameter+name%3D%22stroke-width%22%3E5%3C%2FCssParameter%3E%3C%2FStroke%3E%3C%2FLineSymbolizer%3E%3C%2FRule%3E%3C%2FFeatureTypeStyle%3E%3C%2FUserStyle%3E%3C%2FNamedLayer%3E%3C%2FStyledLayerDescriptor%3E&WIDTH=600&HEIGHT=700&FORMAT=image/png


the sld_body part in plain text looks like this:



Baugrenze

Baugrenze


#00
1.00
5







AllgWohngebiete



AllgWohngebiete


#ff00ff
1.00
5








the result made me happy:
http://sicky.i-networx.de/temp/mapserv/sld_body.png 


at least now i know that my mapserver definately works with SLDs. but this
wouldn't be a solution since I really need to define a SLD file because it's
gonna be very big. So i really want 'SLD=' to work instead of 'SLD_BODY'.

But 'SLD_BODY' doesn't work fine either :(
when I try to use an external graph

Re: [MAPSERVER-USERS] SLD ignored / External Graphic ignored

2008-04-09 Thread Yewondwossen Assefa

Barend Kobben wrote:


Setting these incorrectly, and more importantly their security setting
incorrrectly, will normally give no problems, but when using SLDs (and also
in other cases, eg. when chaining Mapserver to external WMS and WFS
services), they will make MS malfunction, but SILENTLY (ie. No error
messages).



Barend

 I added a bug and a fix in mapserver svn for it to generate an error. 
See bug http://trac.osgeo.org/mapserver/ticket/2573


Best Regards

--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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 ignored / External Graphic ignored

2008-04-09 Thread Yewondwossen Assefa

Sicky wrote:

Thanks for you quick reply and testing it :-)

1st: Ok, now I know that the SLD is working, but why not here?



 Barend comments could maybe explain you problem? If all is as 
expected, as I said I am willing to give it a try provided a test sample.



2nd: Really? SVG isn't supported by MapServer? Then the use of it would be
quite senseless for me. Or will MapServer render lines/outlines of polygones
with PNGs or GIFs nicely? Because GeoServer doesn't (lots of gaps in the
lines etc.)!

 SVG symbols are not supported (SVG as an output format is).  I have 
not seen GeoServer rendering for this particular case so I can not 
compare. I guess you need to try it locally and see for yourself if it 
is acceptable.




Cheers and thanks again,
Christian.




--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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] php/mapscript and OWS

2008-04-10 Thread Yewondwossen Assefa

Robert,

 what does you php script looks like?  Quick test I did with a png 
output and works looks like this:


 request : 
http://localhost/msapps/wxs/test.php?SERVICE=WMS&VeRsIoN=1.1.1&Request=GetMap&LAYERS=WorldGen_Outline&FORMAT=png&WIDTH=400&HEIGHT=300&SRS=EPSG:4326&FORMAT=png&WIDTH=400&HEIGHT=300&STYLES=&BBOX=-180.0,-90.0,180.0,90.0&SLD=http://localhost/msapps/world_testdata/tests/sld_tests/sld_line_multi_filter.xml


test.php

loadparams();

ms_ioinstallstdouttobuffer();

$oMap = ms_newMapobj("f:/msapps/world_testdata/map/world_testdata.map");

$oMap->owsdispatch($request);

$contenttype = ms_iostripstdoutbuffercontenttype();

//if ($contenttype == 'image/png')
   header('Content-type: image/png');

ms_iogetStdoutBufferBytes();

ms_ioresethandlers();

?>


Best Regards


ROBERT HOLLINGSWORTH wrote:

Hello,
I've loaded latest MS4W 2.x (therefore PHP 5.x)
 and am trying to verify Mapscript's
OwsRequestObj and $mapobj->owsdispatch()
on a fairly ordinary shp-based mapfile
that works well where mapserv.exe is
the WMS server.

The requestobj seems healthy and
owsdispatch seems successful on WMS
GetCapabilities.  On a GetMap,
owsdispatch is returning MS_SUCCESS,
but all the image output formats are
coming thru damaged or truncated in
some way.  When running GetMap
in a browser, there are corruption
messages for PNG and GIF,
while JPG displays as a very "disturbed"
image that gdalinfo indicates is currupted.

The docs suggest that owsdispatch() should
be able to dump the image to the client without
further manipulation, so I don't know what I
might be missing.

Or if my environment is somehow tainted from
older MS4Ws (on PHP 4).  I uninstalled the old
apache that I was using and installed the new
MS4W in c:\ to be as generic as possible.

Any ideas out there?

thanks,
Robert H.




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



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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] querying a WFS on property alias

2008-04-15 Thread Yewondwossen Assefa

Bart,

 We have gone through the same issue when implementing the SOS and the 
solution was to pre-parse the filter and replace the occurrences of the 
aliased by the real attribute name.


 I will move the function so that it does the same for the wfs filter 
encoding. Will let you know after I do few tests.


Best Regards,

[EMAIL PROTECTED] wrote:

Hi list,

it seems that querying a WFS on a property alias does not work in MS 5.0.2.
Is this a known issue?

Using something like:

"gml_OBJ_IDENT_alias" "Identifier"

I can't query on Identifier in the PropertyName, but it works if I use the
attribute name OBJ_IDENT as PropertyName.

This is kind of strange, since a WFS client can't even know this property
is actually called OBJ_IDENT in the datamodel behind the WFS.

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: [EMAIL PROTECTED]
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] querying a WFS on property alias

2008-04-15 Thread Yewondwossen Assefa

Bart,

 Just to follow up on this: there is a bug at 
http://trac.osgeo.org/mapserver/ticket/2580  and fix is committed in the 
trunk.  Please update the bug if there are issues.


Best Regards



Yewondwossen Assefa wrote:

Bart,

 We have gone through the same issue when implementing the SOS and the 
solution was to pre-parse the filter and replace the occurrences of the 
aliased by the real attribute name.


 I will move the function so that it does the same for the wfs filter 
encoding. Will let you know after I do few tests.


Best Regards,

[EMAIL PROTECTED] wrote:

Hi list,

it seems that querying a WFS on a property alias does not work in MS 
5.0.2.

Is this a known issue?

Using something like:

"gml_OBJ_IDENT_alias" "Identifier"

I can't query on Identifier in the PropertyName, but it works if I use 
the

attribute name OBJ_IDENT as PropertyName.

This is kind of strange, since a WFS client can't even know this property
is actually called OBJ_IDENT in the datamodel behind the WFS.

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: [EMAIL PROTECTED]
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] Large scale PDF output on Windows

2008-04-28 Thread Yewondwossen Assefa

Brent,



  If there's enough interest, I'd be willing to contribute the code 
changes he made if there's a Mapserver developer/committer willing to 
review, upgrade them to v5,and test (and it may require an RFC as there 
was a map file addition to OUTPUTFORMAT/FORMATOPTIONS, I think).




I would be willing to review/apply patches on this. I have created a bug 
on this http://trac.osgeo.org/mapserver/ticket/2596.


Best Regards


Brent Fraser

Kristian Thy wrote:

On Thu, Apr 24, Flavio Hendry wrote:

Discussed the issue a while ago with Frank Warmerdam. He had less
problems on a LINUX System running on a 64bit machine (he supposes it
could go as high as 25'000 pixels). On Windows 32 it bangs at around
10'000 to 14'000 pixels depending on content. Did not try on Windows 64.


Thanks to advice from the list, I now have huge orthophoto pdfs. But now
I have another problem - using png output, I get nice 24 bit images, but
my pdf output is dithered 8 bit. The relevant part of my map file:

IMAGETYPE png24
OUTPUTFORMAT
NAME png
MIMETYPE "image/png"
DRIVER AGG/PNG
EXTENSION png
IMAGEMODE RGB
TRANSPARENT FALSE
END #outputformat
OUTPUTFORMAT
NAME pdf
MIMETYPE "application/x-pdf"
DRIVER pdf
EXTENSION pdf
IMAGEMODE RGB
FORMATOPTION "OUTPUT_TYPE=RASTER"
TRANSPARENT FALSE
END #outputformat

Removing the FORMATOPTION makes no difference.

http://quovadis.dk/dl/ortho.png
http://quovadis.dk/dl/ortho.pdf

The commandline incantation used to produce the images:

$ shp2img -m ddo.map -o ortho.pdf -s 1654 1169 -l DDO -e 659000 
6058000 663200 6060970 -i pdf


Does the pdf driver support 24 bit at all? Can I do 24 bit pngs and
assemble the pdfs by hand?

\\kristian

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





--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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] Why isn't this SLD working?

2008-05-28 Thread Yewondwossen Assefa

Gregor,

 Could it be related to the imagepath and/or imageurl not set properly 
(please see thread at 
http://lists.osgeo.org/pipermail/mapserver-users/2008-April/055299.html 
and bug http://trac.osgeo.org/mapserver/ticket/2573)


Best Regards,

Gregor Mosheh wrote:

Hey hey. Any thoughts on this?

As far as I can tell, the SLD is proper and the URL is proper for using 
that SLD. I have verified that from "within" the server I can wget the 
gm.xml file, so I know it's in fact accessible. So why isn't the SLD 
being applied?


http://www.cambodiaatlas.com/cgi-bin/mapserv?map=/var/www/mango-v1.0.0/Track/track.map&service=WMS&version=1.1.1&request=GetMap&transparent=true&styles=&format=image/png&srs=EPSG:32648&width=500&height=500&bbox=102.06899309916874,10.13684987316996,107.89237806590529,14.907098809695391&SLD=http://www.cambodiaatlas.com/track/gm.xml&layers=dn_pol_clip 



http://www.cambodiaatlas.com/track/gm.xml




--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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] Using SLD and WMS with data comming from postgres

2008-05-30 Thread Yewondwossen Assefa

Adrien

 You should be able to use the sld with filter. Looking at your sld, 
you should end up with several classes where the expressions in each 
class should be set to something like EXPRESSION ([color] = 1), 
EXPRESSION ([color] = 2). Would these expressions be valid in your case 
(with your data)?
 As a note, you can also check 
http://trac.osgeo.org/mapserver/ticket/2573  and 
http://trac.osgeo.org/mapserver/ticket/2635 that might give you hints on 
what is going on.


Y.A.

Adrien Ducos wrote:
Hi I would like to use an SLD file linked to a wms layer comming from a 
postgres query (using postgis).


In the SLD file I have rules that puts polygon colors according to an 
attribute in my table the attribute data can be equal to 1,2,3,4,5,6,7 
or 8. and according to the value the polygon would be 1=red, 2=yellow, 
1=blue etc.


I use a mapfile to retrieve the query:

Here is the layer part of the mapfile

 LAYER
NAME "buildings"
TYPE POLYGON
STATUS OFF
CONNECTION "dbname=... user=... password=... host=..."
CONNECTIONTYPE postgis
DATA "the_geom_polygon from (select id_imm, max(the_geom_polygon) as 
the_geom_polygon, MAX(id_building_type) as color FROM imm_type group by 
id_imm) as t USING UNIQUE id_imm USING SRID = -1"

METADATA
"wms_name" "buildings"
"wms_server_version" "1.1.0"
"wms_format" "image/png"
"wms_exceptions_format" "application-vnd.ogc.se_inimage"
"wms_transparent" "false"
END
PROJECTION
"init=epsg:27582"
END
END


Then I call this layer via a webservice with the link of the sld :

http://www.mysite/wmsExportMap.php?REQUEST=GetMap&VERSION=1.1.0&SERVICE=WMS&LAYERS=fond_wms,buildings&SLD=http://www.mysite/sld/buildings.sld&bbox=600477.507312,2424357.1016,605865.696562,2426763.76972&width=450&height=260 



in wmsExportMap.php I use $request = ms_newowsrequestobj(); to get a WMS 
map via a web service.


When I do this query I get the map I want except the the SLD does not work

the sld looks like :


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

  
buildings

  Default Styler
  Default Styler
  
  1
  
testStyleName
title
abstract
Feature

generic:geometry


  color1
  title
  Abstract
  

  color
  1

  
  

  #ff0f13

  


  color2
  title
  Abstract
  

  color
  2

  
  

  #ff9900

  


...



If I set no condition parameters in my sld, however it works fine (but 
then the buildings on my map are all of the same color) so I know the 
sld file is well linked to the WMS file. in addition, then I link with 
the above sld, I can see that postgres asks for the color field which is 
the propertyName I want to use, but still the buildings don't get the 
desired color.


Does someone have some problems like this? Is it possible to do this 
kink of things via mapserver?


Thanks in advance




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



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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] Using SLD and WMS with data comming from postgres

2008-05-30 Thread Yewondwossen Assefa

Adrien Ducos wrote:
Ok I found the error, it was on the sld itself: apparently mapserver 
can't handle in the same rule a point symbolizer and a polygon 
symbolizer. So I have to make 2 sld layers: one for my points and one 
for my polygons. It is a pity since openlayers could handle this without 
any problem.




 oops, saw this e-mail after I sent the previous.
 In Mapserver, a layer can only be of one geometry type. So I think It 
makes sense that different types of symbolizers would not be applied to 
the same layer. In you case if you have a point and a polygon layer, you 
can still use one sld with 2   (which would correspond to 
your 2 layers).


(there was no problem with the temp file since I gave a chmod access to 
all users in this folder; but now I understand why I have so many temp 
files in this directory).


On Fri, May 30, 2008 at 10:29 AM, Barend Kobben <[EMAIL PROTECTED] 
> wrote:


Did you check the SLD TMP file problem (from the thread Re: "SLD
ignored /
External Graphic ignored)" see excerpt below)?

***snip***
Using SLDs is dependent on the correct setting of the two settings
 IMAGEPATH  -- where the mapserver software puts the SLD and other
temporary
files
 IMAGEURL -- where the web browser and other http services pick them up.

Setting these incorrectly, and more importantly their security setting
incorrrectly, will normally give no problems, but when using SLDs
(and also
in other cases, eg. when chaining Mapserver to external WMS and WFS
services), they will make MS malfunction, but SILENTLY (ie. No error
messages).

Eg. in our set ups of a WMS with external SLD they are set as follows:

For  a *nix setup ( MacOSX) with Mapserver CGI 'behind'  Apache:
WEB
   IMAGEPATH "/Users/kobben/Sites/ms_tmp/"
   IMAGEURL "http://localhost/~kobben/ms_tmp/
"
   ##
   METADATA
  [all your web metadata...]
   END #metadata
END #web

For a Win box with Mapserver CGI 'behind'  IIS:
 IMAGEPATH "C:/tmp/ms_tmp/"
 IMAGEURL "http://geoserver.itc.nl/ms_tmp/";

The IMAGEPATh is a directory that is reacheable by Mapserver at this
real
location (in this case expressed as Unix BSD path on my MacOSX or as
 UNC
path on Win) and that has read & write access set  for the Mapserver
process. Eg. on the Winbox it should have write access for the anonymous
system service account under which Mapserver runs (usually something
like
SERVERNAME\IWAM_SERVERNAME).

You can test this by seeing if files with names like) are being
created when
you request the WMS with external SLD. If they are the IMAGEPATH celarly
works. Then test if you can point a browser to the IMAGEURL and pick
up the
tmp file. If that worsk the IMAGEURL is also OK. Now it should work...

Hope this helps.

--
Barend Köbben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6
7500AA Enschede, The Netherlands
+31 (0)53 4874253

International Institute for Geo-Information Science and Earth
Observation (ITC)
Chamber of Commerce: 410 27 560

E-mail disclaimer
The information in this e-mail, including any attachments, is
intended for the addressee only. If you are not the intended
recipient, you are hereby notified that any disclosure, copying,
distribution or action in relation to the content of this
information is strictly prohibited. If you have received this e-mail
by mistake, please delete the message and any attachment and inform
the sender by return e-mail. ITC accepts no liability for any error
or omission in the message content or for damage of any kind that
may arise as a result of e-mail transmission.





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



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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 + SLD + transparency

2008-06-03 Thread Yewondwossen Assefa

Hi There,

Oscar Gomez wrote:

Hi all!
 
I'm having some trouble trying to use SLDs with MapServer.
 
I'm requesting maps from GoogleEarth using a NetworkLink object and a 
custom KML-WMS-KML parser.
 
If I apply "simple" symbology through a custom SLD, it works, and the 
background of the map created by MapServer is transparent, so only the 
"vectors" are shown in GoogleEarth.
 
But if I use an SLD symbology using an external picture 
( tag in SLD), then the background of the map created 
by MapServer is not transparent anymore. Then Google Earth shows a map 
with white background.
 


 ExternalGrapphic ends up being transformed into something like this in 
the map file:


 - inline symbol:

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

TYPE PIXMAP
IMAGE "f:/msapps/world_testdata/map/484599a6_1a28_1.gif"
GAP -20
TRANSPARENT 0
  END

 and a class

 CLASS
  NAME "Unknown"
  STYLE
ANGLE 360
COLOR 255 0 0
OPACITY 100
SIZE 10
SYMBOL 
"http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif";

  END


 I am not sure I see the reason why this would affect the background 
transparency.


 If possible can you add the symbol manually in the mapfile and see if 
you get the same transparency problem.


 Do we have access to the external symbol you are using?

 I am using the following external symbol in my test 
(http://www2.dmsolutions.ca/msapps/world_testdata/map/etc/target-1.gif) 
and I have tried used both agg and gd as a rendering settings and I did 
not see any effects on the background transparency.   Note that I am 
using Mapserver from svn.



Best Regards,


Has anyone experienced the same? Can this be solved?
 
Thanks in advance,
 
Oscar





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



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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] Problem with Mapserver WFS-client generated syntax

2008-06-04 Thread Yewondwossen Assefa

Robert,

 The wfs specs indicates that values for the BBOX parameter should be 
separated by commas which is what Mapserver is doing. There is no other 
setting in mapserver that would allow you to change the format of BBOX 
easily. I think the best would be for the server to respect the syntax 
described in the specs.


Best Regards,

Burgholzer,Robert wrote:

Hey folks,

I am trying to hit NOAA’s experimental point based weather forecast 
product WFS server.  I am using mapserver as a client, and I seem to be 
getting a strange incompatibility, that appears to be in a subtle 
feature of the WFS query that Mapserver is putting together.  The 
difference between the query that NOAA wants, and the one that mapserver 
produces is in the BBOX parameter.  NOAA wants a space between the two 
corners, and mapserver puts a comma, a la:


 


NOAA Wants:

BBOX=-79.6222567785354,37.8816528320313 -77.4274563562303,39.3436317443848

 


Mapserver Sends:

BBOX=-79.6222567785354,37.8816528320313,-77.4274563562303,39.3436317443848

 


Doesn’t Work (mapserver):

http://www.weather.gov/forecasts/xml/OGC_services/ndfdOWSserver.php?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=Ndfd_KmlPoint&BBOX=-79.6222567785354,37.8816528320313,-77.4274563562303,39.3436317443848 



 


Works (NOAA):

http://www.weather.gov/forecasts/xml/OGC_services/ndfdOWSserver.php?&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=Ndfd_KmlPoint&BBOX=-79.6222567785354,37.8816528320313%20-77.4274563562303,39.3436317443848 



 


Maybe I am missing some crucial configuration param?

 


Thanks in advance,

 

 


Robert W. Burgholzer

Surface Water Modeler

Office of Water Supply and Planning

Virginia Department of Environmental Quality

[EMAIL PROTECTED] 

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: [EMAIL PROTECTED]
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 thematics from MS Layers

2008-06-04 Thread Yewondwossen Assefa

Hi There,

If you are setup to use php, you can look at this project : 
http://www.itopen.it/soluzioni/kml-map-server/
 Although, It has some limitations, It works out of the box and 
generates kml files from your map fie.


Best Regards,


Sarel Coetzer wrote:


Hi

Need some advice on how to create thematic looking KML layers from 
MapServer layers that is classified in 5 thematic classes.
This is a long shot and might be the wrong forum but I haven't had 
success in the GDAL or OGR forums


Sarel





--
"http://sarelgis.blogspot.com/";




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



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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 implementation - fill-opacity

2008-06-06 Thread Yewondwossen Assefa

Hi there,

 Actually the style->opacity parameter was there for a while although 
not used until recently. The SLD (mapserver svn) already reads the 
stoke/fill-opacity and set the parameter. Note that this only the AGG 
output supports opacity at style level.
 Please report an issue through bug 2638 if opacity with AGG output is 
not working as expected.


Best Regards,

[EMAIL PROTECTED] wrote:

I am quite sure this is because back then Mapserver only supported
layer-level transparency, and not style-level transparency.

With the new addition of style-level transparency in trunk, it should
become possible to implement this now AFAICT. Maybe open up an enhancement
ticket for this?

Best regards,
Bart

On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur
<[EMAIL PROTECTED]> wrote:

Hi folks,

Does Mapserver SLD implementation supports the fill-opacity css
parameter ? As far as I can see, it doesn't. Bug ?

Thanks
--
Guillaume
___
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: [EMAIL PROTECTED]
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 implementation - fill-opacity

2008-06-06 Thread Yewondwossen Assefa

Guillaume Sueur wrote:

Hi, Assefa,

Do you mean I have to use AGG to get benefit from opacity settings in SLD ?

Thanks



 Yesy : the SLD will always parse and set the style's opacity parameter.
 But since only the AGG output uses it when rendering the map, you 
would need to set your output to AGG to see the effects.



Yewondwossen Assefa a écrit :

Hi there,

 Actually the style->opacity parameter was there for a while although 
not used until recently. The SLD (mapserver svn) already reads the 
stoke/fill-opacity and set the parameter. Note that this only the AGG 
output supports opacity at style level.
 Please report an issue through bug 2638 if opacity with AGG output is 
not working as expected.


Best Regards,

[EMAIL PROTECTED] wrote:

I am quite sure this is because back then Mapserver only supported
layer-level transparency, and not style-level transparency.

With the new addition of style-level transparency in trunk, it should
become possible to implement this now AFAICT. Maybe open up an 
enhancement

ticket for this?

Best regards,
Bart

On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur
<[EMAIL PROTECTED]> wrote:

Hi folks,

Does Mapserver SLD implementation supports the fill-opacity css
parameter ? As far as I can see, it doesn't. Bug ?

Thanks
--
Guillaume
___
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: [EMAIL PROTECTED]
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 implementation - fill-opacity

2008-06-06 Thread Yewondwossen Assefa

Guillaume,

 Yes :support in AGG for the style opacity is only available in the 
last svn trunk (http://trac.osgeo.org/mapserver/ticket/1155)


Besr Regards,

Guillaume Sueur wrote:
I still don't have a the desired rendering, even with AGG... I'm using 
5.0.1 dev version, should I upgrade to the last SVN version ?


thanks

Yewondwossen Assefa a écrit :

Guillaume Sueur wrote:

Hi, Assefa,

Do you mean I have to use AGG to get benefit from opacity settings in 
SLD ?


Thanks



 Yesy : the SLD will always parse and set the style's opacity parameter.
 But since only the AGG output uses it when rendering the map, you 
would need to set your output to AGG to see the effects.



Yewondwossen Assefa a écrit :

Hi there,

 Actually the style->opacity parameter was there for a while 
although not used until recently. The SLD (mapserver svn) already 
reads the stoke/fill-opacity and set the parameter. Note that this 
only the AGG output supports opacity at style level.
 Please report an issue through bug 2638 if opacity with AGG output 
is not working as expected.


Best Regards,

[EMAIL PROTECTED] wrote:

I am quite sure this is because back then Mapserver only supported
layer-level transparency, and not style-level transparency.

With the new addition of style-level transparency in trunk, it should
become possible to implement this now AFAICT. Maybe open up an 
enhancement

ticket for this?

Best regards,
Bart

On Fri, 06 Jun 2008 14:52:28 +0200, Guillaume Sueur
<[EMAIL PROTECTED]> wrote:

Hi folks,

Does Mapserver SLD implementation supports the fill-opacity css
parameter ? As far as I can see, it doesn't. Bug ?

Thanks
--
Guillaume
___
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: [EMAIL PROTECTED]
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] runtime variable substitution

2008-06-10 Thread Yewondwossen Assefa

Hi There,

There are a couple of examples at the end of 
http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub/


You should be able in your case to use a URL like 
&id=value_of_the_id . Have you tried this and It did not work?


Hope it helps.

Y.A.

Hans Castorp wrote:

Hi to all,

Any of you have an example about how to do a parameter substitution???

What I want is to change the FILTER statement in one of my mapfile 
layers, but I don't know how to do it.


This is my layer's data and filter definition:

DATA "the_geom FROM temp"
FILTER "id_session=%id%"

What I want is to change the id valuedepending on some circunstances in 
my application.


Thanks in advance.




Hans Castorp



Enviado desde Correo Yahoo! 


La bandeja de entrada más inteligente.




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



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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, SLD, FilterEncoding and PropertyIsLike

2008-06-27 Thread Yewondwossen Assefa

Guillaume,

 Attaches is an sld I use for testing and mapsever returns the expected 
results. If you do not mind sharing your sld, you can send it to me and 
I can have a look.


Best Regards,

Guillaume Sueur wrote:

actually it helped me going further in my analysis :
when I use PropertyIsLike, it traps all the records, even those non 
matching with the pattern.

Is that a mapserver bug on WMS-SLD handling  ?

Thanks



Oscar Gomez a écrit :

Hi Guillaume,
 
In the past it worked for me, but I had to look very carefully at the 
symbology specification from OGC.
 
Here you are my example:
 


* * 
*-*  
*-* 

* * 
*-*  
*-*  


* * *> *
* * *ORIGENAGUA*
* * *Subter**
* * 
* * 
*-*  


*-*  
*-*  


*-*  
*-*  
* * *circle*
*-*  
* * *#A87000*
* * *1.0*
* * 
* * 
* * *1*
* * 
* * 
* * 
*-*  
* * *#A87000*
* * *1*
* * *1*
* * 
* * 
* * 

 

 
I hope you find it useful. Best,
 
Oscar



On Fri, Jun 27, 2008 at 10:00 AM, Guillaume Sueur 
<[EMAIL PROTECTED] 
> wrote:


Hi

Has anyone ever had a PropertyIsLike filter working on a WMS layer ?
I have an SLD file with several rules, all of them with
PropertyIsEqualTo Filter. It works ok.
If I change one of these to PropertyIsLike (I add wildcard,
singleChar and escapeChar as well), they ALL go wrong, none of the
filters being used. All my objects are then shown with the default
representation placed at the end of the file without any filter.

Any idea about this strange behaviour ?

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


http://lists.osgeo.org/mailman/listinfo/mapserver-users




--
Oscar Gomez

Visita mi blog!! http://ogomez2.blogspot.com





--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
http://www.dmsolutions.ca/

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




WorldGen_Outline

xxx


NA3DESCA*ID3


center-line


#ff
2.0




NA3DESCEurope 
 
 center-line  
 #00 2.0  
 




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


Re: [mapserver-users] Flash (swf) - Link between buttons and Element?

2008-07-10 Thread Yewondwossen Assefa

Marie-Eve,

 One possible was of quickly achieving this is would be for the buttons 
names to reflect the layer and shape they are associated with; so for 
example a button name would look like button_layerid_shapeid (ex 
button_2_44 would represent the element 44 on layer 2).


I have filed a ticket on this 
http://trac.osgeo.org/mapserver/ticket/2691 with a patch to achieve 
this. Could you please review and comment?


Best Regards,


Marie-Eve Lévesque wrote:
I am using MapServer to generate Flash (.swf). It generally works well, 
my shapes are generated and I get my events by ElementSelected, and my 
attributes in the Element object of the generated swf.


But, there is one thing that I can't get: the ID associated to a button 
or to one of the shapes. For example, I have an object with the id "15", 
the name "Montreal" and the value "10". In "Element", I have all those 
informations, but I don't know what button is associated to id 15... (in 
my case, with tests I know that "button164" is associated to my id 15, 
but how can I know that dynamically?)


What I would like to have is, either an "buttonId" attribute in 
"Element", either an attribute "associatedId" in the button. Is there 
something like that in MapServer?


If it doesn't exists, is there an other way to have that like between my 
data in Element and the generated buttons?


Thanks,
Marie-Eve


Envoie un sourire, fais rire, amuse-toi! Employez-le maintenant! 






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



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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-dev] Re: [mapserver-users] MapServer Version 5.2.0 Source Released

2008-07-28 Thread Yewondwossen Assefa



   * SOS 1.0.0 support


Tom, Assefa?


http://trac.osgeo.org/mapserver/ticket/2246


--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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 + Database + WFS

2008-07-30 Thread Yewondwossen Assefa

Tim,

 I have used mainly Postgis with Mapserver and WFS. I am pretty sure 
some have used SDE as a back end.  Oracle spatial is also known to work 
with Mapserver for a while so I see no reason why it could not be used 
as a WFS server too.
 Are you facing particular problems? Are you concerned about 
performance issues? As for the documentation, I am assuming that you are 
taking about http://mapserver.gis.umn.edu/docs/howto/wfs_server, It has 
been a while that It has been updated but information in it is still 
correct. Maybe specific issues/comment could help improving it.


best Regards,

Nolte, Tim wrote:

Is no one out there using Oracle Spatial, or any other DB, with
MapServer and WFS? There is pretty much a huge lack of documentation for
serving WFS from MapServer. It would be nice to know if what I'm
attempting is even possible or not. Thanks if someone does actually
respond.

- Tim


Timothy J Nolte - [EMAIL PROTECTED]
Network Planning Engineer

iPCS Wireless, Inc.
4717 Broadmoor Ave, Suite G
Kentwood, MI 49512

Office: 616-656-5163
PCS:616-706-2438
Fax:616-554-6484
Web: www.ipcswirelessinc.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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] MS4W package doesn't have fribidi2 included in it yet

2008-08-13 Thread Yewondwossen Assefa

It is included in the latest ms4w 2.2.8.

(for details: http://bugzilla.maptools.org/show_bug.cgi?id=1914)

Rohalah Delpak wrote:

Hi
MS4W package doesn't have fribidi2 included in it yet.
how can i solve this issue?
 
i use MS4W 5.2 , that its not show Arabic labels correctly.
 






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



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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] Key labelcache_map_edge_buffer does not exist (While using TiF files in Raster Layer)

2008-08-27 Thread Yewondwossen Assefa
This should only happen if you have you have debug ON at the map level. 
Setting it to OFF should get rid of the message.


Best Regards,


Ritesh Ambastha wrote:

Hello,

I am using Tilecache to generate tiles by reading few raster layers from my
mapfile. I have successfully generated tiles using tilecache and mapserver
vector layers.  My raster images includes TIF files.

When I checked my logs, I got these errors/warning:


getMetaData: Hash table error. Key labelcache_map_edge_buffer does not exist
msDrawLabelCacheGD(): labelcache_map_edge_buffer = -15


I have not used labelcache_map_edge_buffer anywhere in the mapfile. I tried
to keep a negative value to this in the METADATA seciton, but it didn't
worked. 


I am using MapServer version 5.0.0.

Any help will be highly appreciated.

Thanks, 
Ritesh Ambastha



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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] howto draw amount of points features of one layer depending on scale

2008-08-27 Thread Yewondwossen Assefa

Nils,

look at this thread: it gives details of what you want to accomplish 
with an example of a working layer:


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

Best Regards,

Nils Zierath wrote:

Hi David,
your suggestion is similar to Jeff's?
How would I treat a point as lable? I haven't had any luck in displaying 
the points with "TYPE ANNOTATION".


What would the syntax in the mapfile would look like to either treat a 
point as lable or with "TYPE ANNOTATION"?


My mapfile currently looks like:

LAYER
 NAME'Field research locations'
 DATA'../vector/gps/fieldresearch_complete'
 STATUSdefault
 TYPEpoint
 #TYPEannotation
 TRANSPARENCY100
 TOLERANCE7
 TOLERANCEUNITSpixels
 UNITSkilometers

 METADATA
 ...
 END #METADATA

 PROJECTION
 ...
 END #PROJECTION

 CLASSITEM'StudyFocus'
 #LABELITEM'LableAnnot'

 CLASS
  NAME'Research locations (all)'
  #MINSCALEDENOM100

  STYLE
   SYMBOL 'ttf_pin-sm'
   SIZE 10
   COLOR 255 180 0
   ANGLE 345
  END #STYLE
 END #CLASS
END #LAYER



David Percy schrieb:
If you treated them as labels when zoomed out (maxscale 5 for 
example), then you could take advantage of the label colission 
features of mapserver to avoid overlaps.


when zoomed in further you could have another layer (minscale 5 
for example) that shows all the detail...


so you would have two layer definitions in this case...
Cheers,
Percy


Nils Zierath wrote:

Dear list,
I got a layer with gps points. On the largest scale of my map the 
symbols for points overlap and are not distinguishable from one 
another since they are too close together.


Is it possible to tell mapserver to draw only that many of the 
points/symbols that do not overlap, so that more points will be shown 
the more I zoom into the map?


Thank you,
Nils

___
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: [EMAIL PROTECTED]
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] I would like to kno w your opinion‏

2008-09-09 Thread Yewondwossen Assefa
Visual Studio 2003 or 2005 would be my recommendation. It's been working 
well for me for few years.


Best Regards,

Roberto Urrutia wrote:


Hello!

I would like to know your opinion... 

what kind of  tool or IDE do you usually use to develop code for 
mapserver  ?
For example visual studio, Dev C++,builder c++, kdevelop or only you use 
a linux console and a editor.


I
need to know it, because I would like to develop some code for
mapserver but it is very hard for me to work in linux console or an
editor,because I can not to verify and watch line by line the
variables content (breakpoints), check invalid declarations. it is not a 
friendly interface =(



What tool or IDE could you recommend me to develop code for mapserver?



Thank you..


Roberto Urrutia

Madonna, Avril Lavigne, Maroon 5 y muchos más, En Vivo, sólo por 
Prodigy/MSN en concierto. 





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



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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 LinePlacement

2008-09-22 Thread Yewondwossen Assefa

Guillaume,

 Right now the SLD does not have an equivalent parameter (in 
LinePlacement or PointPlacamant)  the could be set and translate as 
ANGLE AUTO or ANGLE FOLLOW in MapServer.
 The default setting of MapServer for the label object is to set the 
ANGLE AUTO and ANGLE FOLLOW to FALSE.
 So it is not possible right now. Maybe we could, when reading the sld 
and creating the label objects, set by default the angle to auto or 
follow. Would that make sense? If that is the case, you could open a bug 
on it discuss it further there and add the enhancement if it is agreed.


Best Regards,


Guillaume Sueur wrote:

Hi list,

Would someone know how to configure the equivalent of ANGLE AUTO for
labelling lines with an SLD file ? I've tried the LinePlacement block,
for it doesn't seem to do anything special.

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




--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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] Get bindings values with php mapscript

2008-10-08 Thread Yewondwossen Assefa

Hi there,

 There is no function to do a get binding currently. I think it is a 
useful one. I have added a enhancement bug on it 
http://trac.osgeo.org/mapserver/ticket/2789 and would commit the changes 
in the main trunk. Please cc your self in the bug so you can comment/test.


Best Regards


Davide Ticozzi wrote:

Hello,
I'm trying to extract binding values from a previously configured Style 
or Label object using PHP mapscript.
I know that there's the possibility to set binding 
($oStyle->setBinding()) and remove them ($oStyle->removeBinding()), but 
I need to get these informations... nothing about?


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




--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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 using postgis time index, problem with GetFeatureInfo

2008-10-24 Thread Yewondwossen Assefa

Maarten,


Maarten Plieger wrote:

Hi All,

I use a postgis database filled with files and their corresponding 
dates. This makes it possible to use WMS Time requests. This works very 
well, except for the GetFeatureInfo request. When I do GetFeatureInfo on 
a certain location I get this message:

"msSHPOpenFile(): Unable to acces file.
(/mapdata/RADNL25TIME)"

The data is raster data, and has nothing to do with Shapes...

This is a part of the mapfile of the layer:

{...}
TILEITEM "path" #path is a column in postgis table with varchar of the 
filepath to each image

TILEINDEX "RADNL25TIME"

METADATA
   "wms_timeextent" 
"2008-10-24T00:00:00Z/2008-10-24T12:00:00Z/PT5M"
   "wms_timeitem" "datetime" #datetime is a column in 
postgis table of type timestamp

   "wms_timedefault" "2008-10-24T00:00:00Z"
{...}
END
{...}

Is this a known bug, or am I doing something wrong?
When I use a file directly instead of the PostGIS table, GetFeature info 
returns the correct results.




Maarten,

 Your request of GetFeatureInfo ends up being equivalent of a query on 
a  tiled index raster layer. From what I can see, Mapserver seems to be 
currently limited to only be able to do queries when the tiled layer is 
a shape file.   I have raised an enhancement bug on this 
(http://trac.osgeo.org/mapserver/ticket/2796) but I am not sure how easy 
It would be to support all data types in this case. (We should at least 
be able to send a meaningful message to the user explaining the limitation).

Meanwhile, you might want to consider making your layer non queryable.

Best Regards



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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 not rendered correctly

2008-11-12 Thread Yewondwossen Assefa

Daniel,

 I could confirm that http://trac.osgeo.org/mapserver/ticket/2548 was 
still an issue in the current mapserver code. I have committed the fix 
in the trunk and updated the bug. Please give it a try and let me know. 
I will also possibility fix it in the 5.2.x branch so it will be 
available for the upcoming release.
With this fix, I was able to use your example SLD and have the expected 
result. Note that I did not so any testing with the 5.0.x release


Best Regards,

Daniel Degasperi wrote:

Hello,

the attached SLD should render a point layer with an outlinecolor (see 
stroke), unfortunately the stroke-color seems to overwrite the fill color.
Images are attached. withoutsld.png would be the expected result, 
withsld.png is the actual result.

Can anybody help me?

I'm using MapServer 5.0.3 on Centos5 and the render client is OpenLayers.

These tickets could be related:

* http://trac.osgeo.org/mapserver/ticket/1887
* http://trac.osgeo.org/mapserver/ticket/2548


Regards, Daniel

--
  Daniel Degasperi
  Software Developer
  [EMAIL PROTECTED]
  
---

  R3 GIS Srl
  Via Johann Kravogl 2
  I-39010 Merano - Sinigo (BZ)
  Tel. +39 0473 494949
  Fax. +39 0473 069902
  Web  http://www.r3-gis.com
-










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



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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 not rendered correctly

2008-11-25 Thread Yewondwossen Assefa

Thanks for testing. I closed the bug.

Assefa


Daniel Degasperi wrote:

Dear Assefa,

sorry for the delay. We tried the SVN-Version (Date 13/11/08) and the 
issue seems to be solved. Thank you very much for your quick reaction.


Regards,
Daniel

Yewondwossen Assefa schrieb:

Daniel,

 I could confirm that http://trac.osgeo.org/mapserver/ticket/2548 was 
still an issue in the current mapserver code. I have committed the fix 
in the trunk and updated the bug. Please give it a try and let me 
know. I will also possibility fix it in the 5.2.x branch so it will be 
available for the upcoming release.
With this fix, I was able to use your example SLD and have the 
expected result. Note that I did not so any testing with the 5.0.x 
release


Best Regards,

Daniel Degasperi wrote:

Hello,

the attached SLD should render a point layer with an outlinecolor 
(see stroke), unfortunately the stroke-color seems to overwrite the 
fill color.
Images are attached. withoutsld.png would be the expected result, 
withsld.png is the actual result.

Can anybody help me?

I'm using MapServer 5.0.3 on Centos5 and the render client is 
OpenLayers.


These tickets could be related:

* http://trac.osgeo.org/mapserver/ticket/1887
* http://trac.osgeo.org/mapserver/ticket/2548


Regards, Daniel

--
  Daniel Degasperi
  Software Developer
  [EMAIL PROTECTED]
  ---
  R3 GIS Srl
  Via Johann Kravogl 2
  I-39010 Merano - Sinigo (BZ)
  Tel. +39 0473 494949
  Fax. +39 0473 069902
  Web  http://www.r3-gis.com
-










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









--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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 5 - MapScript Problem setExpression

2008-12-01 Thread Yewondwossen Assefa


Can you try something like $oClass->setExpression('"3NA"')

Later,

Géo Sphère wrote:

Hello !
 
I use PHP Mapscript (MapServer 5.0.2).
 
I do $oClass->setExpression("3NA"), then i save the mapfile.

The expression saved in the mapfile is "3"
 
Any idea ?
 
Thanks





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



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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 + WFS restrictions

2008-12-09 Thread Yewondwossen Assefa

Hi There,

 I did a quick test and wfs_maxfeatures is working as expected with 
latest mapserver. How are you specifying it? something like this in the 
web metadata should work "wfs_maxfeatures" "8". Note that you do not 
need this metadata for the wfs maxfeatures parameter to work.


 wfs_extent is a metadata used at the layer level and setting it at the 
web level would not have any effect.


 Please refer to docs (http://mapserver.maptools.org/ogc/wfs_server.html)

Assefa

Francisco Arrebola Pascual wrote:

Hello,
I want to restrict at server-side level the wfs requests. This means 
that I want to configure my mapserver to restrict for example the 
extension of a request or the number of features returned. I tried it 
using wfs_maxfeatures and wfs_extent properties of the METADATA field in 
.map file, but it does not work if I put parameters bbox, and 
maxfeatures in the request.

Anybody knows what can I do?
Thanks, and sorry about my poor English :p




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



--

Assefa Yewondwossen
Software Analyst

Email: [EMAIL PROTECTED]
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 with sld´s polgons ymbolizer interpretation

2009-01-14 Thread Yewondwossen Assefa

Thilo,

 Both ways of specifying css parameters are valid according to the 
specs. Only the first way is currently supported.


 I have update mapserver bug 
http://trac.osgeo.org/mapserver/ticket/1076 to be able to support the 
Literal expression for css parameters for the upcoming 5.4 release.


Best Regards


Thilo Wehrmann wrote:

I could identify why my sld could not be interpreted but it doesn´t make
sense to me. The problem is that without the value in the ogc:Literal
context it worked like:

#FFECBF

1



instead of this one:


#FFECBF


1



And that was the reason why fonts are interpreted, too. There were no
ogc:Literal specifications used. For working purpose I can replace all the
ogc:Literal tag but I think this can be only a transitional solution.

Thilo Wehrmann


Thilo Wehrmann wrote:

hello together,
sorry for possible double submission. Currently we work at the dynamic
generation of wms service layers for our project data. For styling
issues we use slds stored in exist database. The access to the sld works
straight but we figure out some problems with line/polygonsymbolizer
interpretation of the returned slds. For the raster data everything
works fine but for all vector data the fill colours won´t be used
(standard grey is used instead. Mapserver 5.2.1 uses the sld because
changes of the font settings are recognized and correctly rendered.

[SLDs deleted...]

The compiled map file after sld interpretation says nothing about these
settings and standard colours are used for painting. I read that there
were some problems in earlier versions of mapserver concerning stroke
colours...

Does anybody know about this problem or knows a workaround? mapserver is
quite an impressive piece of software.

Thank you and best regards,
 Thilo Wehrmann
___
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] mapObj.getlayersdrawingorder

2009-01-19 Thread Yewondwossen Assefa

Hi there,

 You probably meant you did a call like this 
$oMap->getLayersDrawingOrder(), which is the correct syntax to use in php ?

Quick test using ms4w 2.3.1 environment returns expected result:

getLayersDrawingOrder());

?>

Assefa

Balázs Bámer wrote:

Hi All,

I tried to call MapObj.getlayersdrawingorder() from PHP Mapscript
(ms4w 2.3.1 with MapServer 5.2.1, PHP 5.2.6). PHP script terminates.
Same result for MapObj.getLayersDrawingOrder() (the PDF description is
ambiguous about these names).

How it is called? Is it really usable? In the appropriate .dll file
both names appear.

thanx in advance: Balázs Bámer
___
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] Mapserver WMS client without SERVICE parameter

2009-01-20 Thread Yewondwossen Assefa
One possibility would be to use the WXS sevice of Mapserver if that is 
an option for you : http://mapserver.org/ogc/mapscript.html

You can then add the  Service parameter to the request and proceed.

Best Regards

Ivan Mincik wrote:

Dear users,
We want to use Manifold GIS to connect to UMN Mapserver WMS server. Manifold request 
doesn't contain "SERVICE " parameter. (It should be a bug on the Manifold side. 
 It was already submitted. No response since now .)
If mapserver will receive  request without SERVICE parameter, it will process it as WFS request. We want WMS response. 
Is there any way how to configure mapserver to return WMS response even if SERVICE parameter is not present  ?


Thanks 
Ivan

___
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] SLD and antialiasing

2009-01-26 Thread Yewondwossen Assefa

Peter Sykora wrote:

Hi all,
I would like to create a WMS with antialiased Polygons. The "ANTIALIAS true" 
statement in the style object works fine until I use an SLD to style my polygons.

See the difference:
- Styling with mapfile
http://81.10.192.123:443/cgi/stat?LAYERS=stat&REASPECT=false&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A31255&BBOX=39500,299250,81750,341500&WIDTH=256&HEIGHT=256

- Styling with an external SLD
http://81.10.192.123:443/cgi/stat?LAYERS=stat&REASPECT=false&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&FORMAT=image%2Fpng&SRS=EPSG%3A31255&BBOX=39500,299250,81750,341500&WIDTH=256&HEIGHT=256&sld=http://www.carto.net/ps/sld/sld_stat.xml

Certainly there is no possiblity to define the antialiasing in the SLD, but I 
wonder whether there is a mechanism to keep the antialias statement somehow in 
the styling object, independently of the definition in the SLD.



Peter,

This is not possible currently. As you noted there are elements that are 
 not translated between SLD-Mapserver. As suggested agg would give 
anti-aliasing by default and could be work around.



Best Regards


Thanks in advance for any ideas
Peter





--

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] getFeatureInfo() Only Works on One Layer?

2009-01-27 Thread Yewondwossen Assefa

Bill,

You might try setting the layers in the QUERY_LAYERS parameter without 
any space: QUERY_LAYERS: "us_interstate,us_states".
If that does not work, as suggested you might give the full URL sent to 
Mapserver.  From what I can see, query on more that one layer is 
possible  (URL using the Mapserver5.2.1 : 
http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=-173.433000,36.354100,-12.969800,83.746600&SRS=EPSG:4326&WIDTH=785&HEIGHT=232&LAYERS=park%2Cpopplace&STYLES=%2C&FORMAT=image/png&TRANSPARENT=TRUE&QUERY_LAYERS=popplace,park&INFO_FORMAT=text/plain&X=302&Y=121&feature_count=1


Best Regards.


Bill Thoen wrote:
I originally asked this on the OpenLayers forum, but was told that this 
is really a Maperver question. So I'll try it here.


I've got a WMS layer that has two sub-layers in it and I'm trying to get 
attribute information from them via a getFeatureInfo request, but I can 
only get one of them to respond at a time. I've looked at the docs at  
http://trac.openlayers.org/wiki/GetFeatureInfo and noticed that you can 
specify several layers with the QUERY_LAYERS parameter, but I'm finding 
that only the one listed first is active. Also, it's not clear what 
layer you specify at the root of the request, but it looks like it's 
supposed to be different from the layers you're querying. Anyway, here's 
what I'm trying:


I open and load the combined layer like so:
base = new OpenLayers.Layer.WMS(
  "Base",
  "http://192.168.0.250/cgi-bin/mapserv?map=base.map";,
  { layers: ["us_states", "us_interstate"] }
);
map.addLayer(base);


And here's the request string I'm sending to MapServer:

var url = base.getFullRequestString({
REQUEST: "GetFeatureInfo",
EXCEPTIONS: "application/vnd.ogc.se_xml",
FORMAT: 'png',
BBOX: map.getExtent().toBBOX(),
X: event.xy.x,
Y: event.xy.y,
INFO_FORMAT: 'text/plain',
QUERY_LAYERS: "us_interstate, us_states",
FEATURE_COUNT: 1,
WIDTH: map.size.w,
HEIGHT: map.size.h},
"http://192.168.0.250/cgi-bin/mapserv?map=base.map&";);
OpenLayers.loadURL(url, '', this, setHTML);

Note the QUERY_LAYERS line. As shown here, it responds with interstate 
attributes only when I click on an interstate roadway feature, but I get 
nothing when I click on a state. If I reverse the order of these layers 
in the list, then clicking on a state returns attributes from the 
us_states table only. Even if I click on a spot where features in both 
layers coincide, it returns only the attributes for the layer listed first.


Also, setting the FEATURE_COUNT parameter to something higher than 1 just
gives me more results from the single that  is working.

So how do I use multiple layers in the QUERY_LAYERS parameter, or do I 
get only one at a time? Also, I just guessed at using the layer called 
'base' for the getFeatureInfo oject, what is supposed to be used here?


TIA,
- Bill Thoen



___
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] application\vnd.ogc.se_inimage format

2009-02-02 Thread Yewondwossen Assefa

Hi There,

 Is the IMAGETYPE parameter set in your map file? If not you might want 
to try it  by adding something like  this in your map file:

 IMAGETYPE png (or any other valid formats that you want).

Best Regards


Piebe de Vries wrote:

hi,

I configured a layer to return png only. When my application  does a 
getMap request (using format=image/png) a png picture is returned. 
Everything fine so far. However if an error occurs the same request 
(using exceptions=application\vnd.ogc.se_inimage) returns a gif picture. 
And my application is not very happy with that...(also the wms standards 
specifies that the image returned should be the one asked in the format 
parameter)


I am using mapserver 5.2.1 Can anybody confirm this behavior?

Thanks,
Piebe





--

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] application\vnd.ogc.se_inimage format

2009-02-03 Thread Yewondwossen Assefa

Hi,

 I could reproduce a GIF output for the exception image in some 
particular  cases.  I have added a bug on it 
http://trac.osgeo.org/mapserver/ticket/2874 and committed a patch. 
Please give it a try and update the bug.


Best Regards,

Piebe de Vries wrote:

imagetype is set to png
the only defined output type is png


Yewondwossen Assefa wrote:

Hi There,

 Is the IMAGETYPE parameter set in your map file? If not you might 
want to try it  by adding something like  this in your map file:

 IMAGETYPE png (or any other valid formats that you want).

Best Regards


Piebe de Vries wrote:

hi,

I configured a layer to return png only. When my application  does a 
getMap request (using format=image/png) a png picture is returned. 
Everything fine so far. However if an error occurs the same request 
(using exceptions=application\vnd.ogc.se_inimage) returns a gif 
picture. And my application is not very happy with that...(also the 
wms standards specifies that the image returned should be the one 
asked in the format parameter)


I am using mapserver 5.2.1 Can anybody confirm this behavior?

Thanks,
Piebe











--

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 Layer + C# map script

2009-02-26 Thread Yewondwossen Assefa

Hi Murty,

 MapServer does a request to the WFS server to get the GML file. This 
GML file is saved locally  and rendered by OGR as a vector layer.
 You might want to check the file you got from the server (should be 
inside web.imagepath (.tmp.gml) and see if it is valid or/if can be 
opened with ogr.


Best Regards

Murty Maganti wrote:

Hi

 

I am trying load a WFS layer and getting the following error calling 
mapObj.draw(). Is WFS layer handled by OGR or is it handled directly by 
map server. When I ran ‘orginfo –formats’, it does not show WFS as 
supported format by OGR. WFS URL in map file is correct and I can see 
the capabilities xml in browser using the url.


 


Here is the error

msDrawMap(): Image handling error. Failed to draw layer named 
‘Municipality (id=0)'.;msOGRFileOpen(): OGR error. Open failed for OGR 
connection in layer ` Municipality (id=0)'.  File not found or 
unsupported format.


 


Layer entry in the map file

 


LAYER

CONNECTION "http://vmonp03/wfsconnector/com.esri.wfs.Esrimap/ MS01?"

CONNECTIONTYPE WFS

METADATA

  "wfs_srs"  "EPSG:26917"

  "wfs_request_method" "GET"

  "wfs_typename"   "Municipality-0"

  "wfs_service"  "WFS"

  "wfs_version" "1.0.0"

END

NAME "Municipality (id=0)"

STATUS ON

TYPE POLYGON

UNITS METERS

CLASS

  NAME "Municipality (id=0)"

  STYLE

COLOR 184 155 225

OPACITY 100

OUTLINECOLOR 0 0 0

SYMBOL 0

  END

END

  END

 


Thanks

Murty




___
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] get connectiontyp via mapscript

2009-03-05 Thread Yewondwossen Assefa


http://mapserver.org/mapscript/php/index.html (check Connection Types). 
When using mapscript you should do your tests using the defined 
constants (MS_SHAPEFILE, MS_POSTGIS ...).
 Note that the php defined constants reflect what is defined in 
mapserver.h (MS_CONNECTION_TYPE enumeration)


Best Regards,


Sven Schroeter wrote:

Hi all,

I try to get the connectiontyp via mapscript, this works:

$layer = $map->getLayerByName($qlayer);
$contyp = $layer->connectiontype;

I get back a "1" for shapefiles and a "6" for Postgis-layers.

Where can I find the other types?

Thanks
Sven

___
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] use SLD to dynamic label switching

2009-03-05 Thread Yewondwossen Assefa

Balázs,

 I think what you need to do is have your 2 symbolizers inside the same 
Rule. This should display your polygons with labels.  Something like this:



http://att-it.homelinux.net:22080/cgi-bin/spatial?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=szerkesztheto,csakolv,pont&STYLES=&SRS=epsg:23700&BBOX=42,4,95,37&WIDTH=938&HEIGHT=591&FORMAT=image/png&SLD=http://www2.dmsolutions.ca/tmp/assefa/sld_polygon_with_text.xml

Best Regards,


Balázs Bámer wrote:

Hi All,

I have a WMS service

http://att-it.homelinux.net:22080/cgi-bin/spatial?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=szerkesztheto,csakolv,pont&STYLES=&SRS=epsg:23700&BBOX=42,4,95,37&WIDTH=938&HEIGHT=591&FORMAT=image/png&SLD=http://att-it.homelinux.net:22080/sld/spatialszerkeszthetoproba.xml

Mapfile is here, the layer in question is "szerkesztheto"
http://att-it.homelinux.net:22080/spatial.map

which works without the SLD request part and does what I want. I want
to use the SLD to alter rendering colors and add labels, because I
beleive that this would be more efficient than having a geometry layer
and a separate annotation one. Moreover, I want to try SLD.

So with SLD the layer in question disappears. Inspecting the
transformed layer (written in /tmp)
http://att-it.homelinux.net:22080/spatialsld3.map
the layer "szerkesztheto" is turned into annotation type which I
didn't want. But even being this type, no labels are shown.

Can this SLD trick be done, and if yes, where am I wrong?

Thank you in advance!
best regards: Balázs
___
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] use SLD to dynamic label switching

2009-03-06 Thread Yewondwossen Assefa

Forwarding to the list so others don't spend additional time helping.


Balázs Bámer wrote:

Hi Assefa,


 I think what you need to do is have your 2 symbolizers inside the same
Rule. This should display your polygons with labels.  Something like this:


This is great! Thank you very much!

Best regards: Balázs




--

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] howto draw amount of points features of one layer depending on scale

2009-03-12 Thread Yewondwossen Assefa

google links to the thread:

http://209.85.173.132/search?q=cache:I4K8vXBlJuoJ:www.mail-archive.com/mapserver-users%40lists.osgeo.org/msg00164.html+mapserver+msg00164.html&cd=2&hl=en&ct=clnk&gl=ca&client=firefox-a

Is that what tou are looking for?

Assefa

Subha Ramakrishnan wrote:

Hi All,

Can someone tell me what the solution was?
I tried using the link but it seems to be in-active now.

Please help.
Thanks a lot.

Subha

Nils Zierath wrote:

Yewondwossen,
thanks for the link. I had to switch off the "FORCE true" option of 
the sample map file and it now works perfectly.


Nils


Yewondwossen Assefa schrieb:

Nils,

look at this thread: it gives details of what you want to accomplish 
with an example of a working layer:


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



Best Regards,

Nils Zierath wrote:

Hi David,
your suggestion is similar to Jeff's?
How would I treat a point as lable? I haven't had any luck in 
displaying the points with "TYPE ANNOTATION".


What would the syntax in the mapfile would look like to either treat 
a point as lable or with "TYPE ANNOTATION"?


My mapfile currently looks like:

LAYER
 NAME'Field research locations'
 DATA'../vector/gps/fieldresearch_complete'
 STATUSdefault
 TYPEpoint
 #TYPEannotation
 TRANSPARENCY100
 TOLERANCE7
 TOLERANCEUNITSpixels
 UNITSkilometers

 METADATA
 ...
 END #METADATA

 PROJECTION
 ...
 END #PROJECTION

 CLASSITEM'StudyFocus'
 #LABELITEM'LableAnnot'

 CLASS
  NAME'Research locations (all)'
  #MINSCALEDENOM100

  STYLE
   SYMBOL 'ttf_pin-sm'
   SIZE 10
   COLOR 255 180 0
   ANGLE 345
  END #STYLE
 END #CLASS
END #LAYER



David Percy schrieb:
If you treated them as labels when zoomed out (maxscale 5 for 
example), then you could take advantage of the label colission 
features of mapserver to avoid overlaps.


when zoomed in further you could have another layer (minscale 5 
for example) that shows all the detail...


so you would have two layer definitions in this case...
Cheers,
Percy


Nils Zierath wrote:

Dear list,
I got a layer with gps points. On the largest scale of my map the 
symbols for points overlap and are not distinguishable from one 
another since they are too close together.


Is it possible to tell mapserver to draw only that many of the 
points/symbols that do not overlap, so that more points will be 
shown the more I zoom into the map?


Thank you,
Nils

___
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: 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] Two questions about WMS and outputformats

2009-03-18 Thread Yewondwossen Assefa

Hi,

There was a ticket opened for that years ago with a path to implement
it, but was never addressed:
 (http://trac.osgeo.org/mapserver/ticket/455)
It seems to be less controversial in functionality than the recent
"Hiding/Enabling/Ignoring Layers in OGC Web Services" thread, but
introduces another  new metadata and that by it self may be 
controversial.  I am willing to provide a patch for now following what 
is discussed in the bug and depending on how the OGC metadata 
organization evolves in the coming months, we would adapt that patch. 
Please add yourself in cc to this bug.


Best Regards


paalkr wrote:

Hi!

Is there a way to prevent the default outputformats to be exposed in the
capabilities document? I have a map service where I have used AGG specific
rendering capabilities, and requesting e.g a GIF image then makes a bad
looking map and does not make sense. I would like the opportunity to only
expose explicit defined formats specified with one or more OUTPUTFORMAT
blocks.

I don't want to disable the different drivers though, only control the
outputformat list in the GetCapabilities response. If the only way to
achieve this is to patch the source code, I would be glade if any of the
devs could point me in the right direction.

Regards,
Pål Kristensen



Frank Warmerdam wrote:

Rahkonen Jukka wrote:

Hi,

By default, without having any OUTPUTFORMAT sections in the mapfile,
Mapserver is advertising following imageformats in WMS GetCapabilities
document:

 
  image/gif
  image/png
  image/png; mode=24bit
  image/jpeg
  image/vnd.wap.wbmp
  image/tiff
  image/svg+xml 






--

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] Two questions about WMS and outputformats

2009-03-19 Thread Yewondwossen Assefa

paalkr wrote:

Hi

Thanks, looking forward to the patch!


ticket is updated with a possible patch.

best regarads


Regards,
Pål Kristensen


Yewondwossen Assefa wrote:

Hi,

There was a ticket opened for that years ago with a path to implement
it, but was never addressed:
  (http://trac.osgeo.org/mapserver/ticket/455)
It seems to be less controversial in functionality than the recent
"Hiding/Enabling/Ignoring Layers in OGC Web Services" thread, but
introduces another  new metadata and that by it self may be 
controversial.  I am willing to provide a patch for now following what 
is discussed in the bug and depending on how the OGC metadata 
organization evolves in the coming months, we would adapt that patch. 
Please add yourself in cc to this bug.


Best Regards


paalkr wrote:

Hi!

Is there a way to prevent the default outputformats to be exposed in the
capabilities document? I have a map service where I have used AGG
specific
rendering capabilities, and requesting e.g a GIF image then makes a bad
looking map and does not make sense. I would like the opportunity to only
expose explicit defined formats specified with one or more OUTPUTFORMAT
blocks.

I don't want to disable the different drivers though, only control the
outputformat list in the GetCapabilities response. If the only way to
achieve this is to patch the source code, I would be glade if any of the
devs could point me in the right direction.

Regards,
Pål Kristensen



Frank Warmerdam wrote:

Rahkonen Jukka wrote:

Hi,

By default, without having any OUTPUTFORMAT sections in the mapfile,
Mapserver is advertising following imageformats in WMS GetCapabilities
document:

 
  image/gif
  image/png
  image/png; mode=24bit
  image/jpeg
  image/vnd.wap.wbmp
  image/tiff
  image/svg+xml 



--

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







--

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] Two questions about WMS and outputformats

2009-03-20 Thread Yewondwossen Assefa

paalkr wrote:

Hi!

Thanks! The patch works great, just the way I expected. I guess that the
same logic has to be implemented on GetLegendGraphics as well.



Yes for the GetLegendGraphics. I will update it to use the same logic.
Thanks for testing.


Regards,
Pål Kristensen


Yewondwossen Assefa wrote:

ticket is updated with a possible patch.

best regarads
 

Yewondwossen Assefa wrote:

Hi,

There was a ticket opened for that years ago with a path to implement
it, but was never addressed:
  (http://trac.osgeo.org/mapserver/ticket/455)
It seems to be less controversial in functionality than the recent
"Hiding/Enabling/Ignoring Layers in OGC Web Services" thread, but
introduces another  new metadata and that by it self may be 
controversial.  I am willing to provide a patch for now following what 
is discussed in the bug and depending on how the OGC metadata 
organization evolves in the coming months, we would adapt that patch. 
Please add yourself in cc to this bug.


Best Regards


paalkr wrote:

Hi!

Is there a way to prevent the default outputformats to be exposed in
the
capabilities document? I have a map service where I have used AGG
specific
rendering capabilities, and requesting e.g a GIF image then makes a bad
looking map and does not make sense. I would like the opportunity to
only
expose explicit defined formats specified with one or more OUTPUTFORMAT
blocks.

I don't want to disable the different drivers though, only control the
outputformat list in the GetCapabilities response. If the only way to
achieve this is to patch the source code, I would be glade if any of
the
devs could point me in the right direction.

Regards,
Pål Kristensen



Frank Warmerdam wrote:

Rahkonen Jukka wrote:

Hi,

By default, without having any OUTPUTFORMAT sections in the mapfile,
Mapserver is advertising following imageformats in WMS
GetCapabilities
document:

 
  image/gif
  image/png
  image/png; mode=24bit
  image/jpeg
  image/vnd.wap.wbmp
  image/tiff
  image/svg+xml 


--

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




--

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







--

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] Include directive and mapscript

2009-03-24 Thread Yewondwossen Assefa

Paul,

 I could not reproduce this behavior locally. The fact that a layer 
comes from an include file or is in a map file should not make any 
difference since they all end up as part of the map object internally 
(no distinction where the layer comes from).  Not sure what to suggest 
if your include was done successfully. Maybe doing a map->save and 
making sure that all expected layers are there. If the map file seems 
fine and you still have a problem with that function, I am willing to 
test it if you provide me with the map file.


Best Regards,

Paul Moen wrote:
I have found that the method getLayersIndexByGroup(string groupname) 
does not find layers that are included from a different file.


$llist=$map->getLayersIndexByGroup("Political Boundaries");

$llist does not contain the indexes of any layers that are in the 
include file.  Once, I copied the layer into the mapfile the layer was 
listed in the array.


Is this a bug?

Thanks,

Paul

___
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] Include directive and mapscript

2009-03-24 Thread Yewondwossen Assefa

Not sure why would that happen.
Just as a note, the 2 layers you sent in this e-mail have a different 
values for the NAME parameter. Is it possible that you do not include 
the correct layer?


Paul Moen wrote:

Here is the fedlands.map that I am including.

LAYER
  PROJECTION
"init=epsg:4326"
  END
  GROUP "Political Boundaries"
  NAME "Public Land Management Agencies"
  TYPE RASTER
  STATUS ON
  CONNECTION 
"http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false"; 


  CONNECTIONTYPE WMS
  METADATA
  "wms_srs" "EPSG:4326"
  "wms_name" "SMA_ALL"
  "wms_server_version" "1.1.1"
  "wms_format" "image/gif"
  END
END

This is the section of the mapfile that the include is located.


INCLUDE 'fedlands.map'


The output of the map->save function gives the layer below, which no 
longer has the GROUP.  Somewhere along the line the GROUP directive is 
disappearing from my layer when it is included.


LAYER
CONNECTION 
"http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?reaspect=false"; 


CONNECTIONTYPE WMS
METADATA
  "wms_srs""EPSG:4326"
  "wms_name""SMA_ALL"
  "wms_format""image/gif"
  "wms_server_version""1.1.1"
END
NAME "All Public Land Management Agencies"
PROJECTION
  "init=epsg:4326"
END
STATUS ON
TYPE RASTER
UNITS METERS
  END


Any Ideas?

Paul
 






--

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] Problems in making AGG outputformat for WMS

2009-03-25 Thread Yewondwossen Assefa

Hi There,

 It is a bug. ticket related to it is 
http://trac.osgeo.org/mapserver/ticket/2957 and should be available for 
the next MapServer release.


Best Regards,


Rahkonen Jukka wrote:

Hi,
 
This MapServer version is 5.2.1 from MS4W, and it tells me for examle:
 
MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG 
 
So it should support AGG rendering.  Now I have created agg OUTPUTFORMAT 
about as adviced in

http://www.mapserver.org/output/agg.html
 
  OUTPUTFORMAT

  NAME "AGG"
  MIMETYPE "image/pngagg"
  DRIVER "AGG/PNG"
  EXTENSION "png"
  IMAGEMODE RGB
  END
 
However, this mimetype is not included in the WMS 1.1.1 GetCapabilities 
document


  image/gif
  image/png
  image/png; mode=24bit
 
If I edit OUTPUTFORMAT to have DRIVER "GD/PNG" then my own outputformat 
is included in GetCapabilies. 
 


  image/pngagg
  image/gif
  image/png
  image/png; mode=24bit
 
The problem is that AGG outputformat does not appear on the 
GetCapabilities and thus WMS clients can not show it on menu.  If I edit 
WMS getMap request manually to use &FORMAT=image/pngagg it works.  For 
me this looks like a small bug.  Is it perhaps reported already, or even 
corrected?
 
-Jukka Rahkonen-





___
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] Trnasparen WMS service.

2009-03-27 Thread Yewondwossen Assefa

David,

 You probably meant MS4W 2.3.0 (?) which contains a Mapserver version 
5.2.0. It should be possible to specify the opacity parameter on the 
style and it should honor it if you draw your map file using the AGG 
driver (this is true since MapServer 5.2.0)


Maybe giving the error message would help here? Make sure also of the 
mapserver version (mapserv.exe -v)


Best regards

David Martinez Morata wrote:

Hello
I make a WMS service for poligons, and I try to show in a Mapfish interface.

My server are a Mapserver 2.3.0 version and I read about the OPACITY 
parameter for Style, but when I define this parameter in my Stylke 
directive the server dont recognice the mlap file.









I wouyld like to show my polygons in whit a tra,nsparenci color in a WMS 
service, Can enyone Help me?

Thanks

--
Martinez Morata David
Thinking GIS




___
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] About SLD in Mapserver

2009-03-31 Thread Yewondwossen Assefa

doc with few examples can be find here:

http://mapserver.org/ogc/sld.html

fsalas wrote:

Hi,

I have a problems about use the SLD style in mapserver , I need some 
example or documentation  about this.


thanks

Francisco Salas

___
Direcci�n de Comunicaciones
Grupo Empresarial GEOCUBA
Este mensaje esta libre de virus. Revisado por Kaspersky Antivirus
--
Engine version:  4.0.1.14
Engine date:  2002/06/25
Definition count:  1796584
Definition date:  2009/03/31
MDAV version: 2.2.8



___
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] Error while getting flash output

2009-04-01 Thread Yewondwossen Assefa
The error message seems to indicate that you did not build MapServer 
with  ming support. Can you do mapserv -v on the command like and check 
if you have OUTPUT=SWF?


Subha Ramakrishnan wrote:

Hi All,

I am trying to get flash output from mapserver. I have compliled my 
mapserver 5.2.2 with flash support.

But when i request for a layer, I am getting the following error:
"loadOutputFormat(): General error message. OUTPUTFORMAT clause 
references driver SWF, but this driver isn't configured. "


This is my url:
"http://localhost/cgi-bin/mapserv?MAP=flashlayer.map&TRANSPARENT=true&LAYERS=flashlayer&FORMAT=image%2Fswf&PROJECTION=EPSG%3A4326&REPROJECT=false&; 

UNITS=m&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913& 

BBOX=4235678.089235,859902.5737739494,13628260.12324,4404134.700666138&WIDTH=1920&HEIGHT=724" 



Mapfile is as follows:(initial part with projection , extent etc truncated)

 OUTPUTFORMAT
   NAME "swf"
   MIMETYPE "application/x-shockwave-flash"
   DRIVER "swf"
   IMAGEMODE PC256
   FORMATOPTION "OUTPUT_MOVIE=MULTIPLE"
 END
 
 layer

 name flashlayer
 connectiontype postgis
 connection "user= postgres dbname=flashtable host=localhost"
 type polygon
   group world
   dump true
   METADATA
 "RESULT_FIELDS" "__ibp__id"
 "SWFDUMPATTRIBUTES" "__ibp__id"
   END
   template "template.html"
   projection
 "init=epsg:4326"
   end
   transparency 65
   status on
   data "topology from flashtest using unique id using SRID = -1"
   classitem "country"
   class
   name "INDIA"
   expression "INDIA"
   style
   color 139 242 144
   outlinecolor 000 000 000
   end
   end
end

Can some one please guide me as how to get the output in flash after 
enabling the support?


Thanks a lot for any help.

Subha

___
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] Mapscript shapeObj->toWKt() or ms_shapeObjfromWkt problem.

2009-04-01 Thread Yewondwossen Assefa
Not helping here but I have tested your script on windows with Mapserver 
 5.2.2 and 5.4 and the script runs ok. The geos version used in this 
case is geos 2.2.3. Do you know what version of geos you are using?
There was a recent fix done toward geos support in MapServer and the 
problem from what I remember was occurring with geos 3.1 (Is that 
correct Tom ?)


 (http://trac.osgeo.org/mapserver/ticket/2929

Best Regards

Moen, Paul T. wrote:
I get a segmentation fault when I run the following simple script with 
PHP MapScript on Mac OSX 10.5.6 running the latest versions from 
www.kyngchaos.com


#!/usr/local/php5cgi/bin/php -q
$newwkt = 'MULTIPOLYGON(((1207657 478875,1208230 478275,1207452 
477811,1207043 478520,1207657 478875)))';

$drawnShp = ms_shapeObjFromWkt($newwkt);
echo $drawnShp->toWKT();
?>

/Library/WebServer/CGI-Executables/mapserv -v
MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE 
SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR 
INPUT=GDAL INPUT=SHAPEFILE


The only output is;
Segmentation fault

The php version is 5.2.9 and the same thing happens with php versions 
5.2.8, 5.2.5.


*MapServer Version*MapServer version 5.2.2 OUTPUT=GIF OUTPUT=PNG 
OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG 
SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT 
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER 
SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR 
INPUT=GDAL INPUT=SHAPEFILE
*PHP MapScript Version*($Revision: 7937 $ $Date: 2008-09-30 07:37:46 
-0700 (Tue, 30 Sep 2008) $)



Anybody else run into this this error?  How do I get more debug information?


Thanks,

Paul




___
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


[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] 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


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] 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] 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] 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 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 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] 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] 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-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 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] 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] 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: 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] 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] 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] 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] 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] 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-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: 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


  1   2   >