[mapserver-users] Mapscript help

2008-10-10 Thread Alexandre Busquets Triola

I need help with mapscript.

I have the next problem:

I can not run this expression
[columnacerca] = 8.5 AND [columnacerca] = 10.5)

But these expressions work correctly:
[columnacerca]  8.5
[columnacerca]  10.5

My sql sentence is:
geom FROM (  select par_vit3.geom, par_vit3.codi as mycodi, 
maduracio.grau columnacerca FROM par_vit3, parcela  LEFT JOIN 
maduracio ON parcela.7_parcela = (maduracio.parcela_id)::integer  
where par_vit3.codi = parcela.41_matri_darp  ) as consulta  using 
unique mycodi using SRID=23031







--
_
Alexandre Busquets Triola
Servei de Sistemes d'Informació Geogràfica i Teledetecció (SIGTE)
Universitat de Girona
Pl. Ferrater Mora, 1
17071 Girona
Tel. 972 41 80 39  Fax. 972 41 82 30
[EMAIL PROTECTED]
http://www.sigte.udg.es/
_ 


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


Re: [mapserver-users] why 5.0.3 on latest linux distro's

2008-10-10 Thread Christy Nieman
There is the FGS installer package (http://maptools.org/fgs/) for 
Linux.  But it's still using version 5.0.2, as far as I know.


Christy

Willy-Bas Loos wrote:

exactly.
i built my own 5.2.0 too. But i'm not a system admin really and it's a 
bit of a hassle. If i were planning to compile my software myself i 
would use a different distro (Gentoo?).
I've been posting some stuff on the ubuntu forums too, but i don't get 
too much response there.
I guess that 5.2.0 doesn't get into lenny (and so ubuntu 8.10) because 
it hasn't been tested for long enough. It is still in the 
experimental repository (thanks nico mandery for pointing this out 
to me), so not even in unstable yet.
And that will probably mean that we won't see any higher than 5.0.x in 
lenny - the stable debian versions for the next ±4 years. I know it's 
a choice for stability and security -- all about priorities, so 
nothing to make a fuss about -- but it's unconfortable nonetheless.


So lets try a different angle: if OSGeo are providing a package 
manager for windows (osgeo4w), why not provide a repository for Debian 
/ Ubuntu and another one for RedHat / Fedora ?
Easy for me to say of course, but doesn't it seem unfair that Windows 
should be favoured above open source OS's ?

(then, maybe i got it all wrong, so please correct me)

cheers,

WBL


In my experiences with Fedora, they tend to keep the same version
of MapServer that the OS version was released with (so Fedora 9
has 5.0.2, or something like that, by default).  As I want to use
the latest version, I build it for myself.  I bet that
distributions tend to stay with what they had when first released
for map compatibility reasons.  It would be something to discuss
with your distributions package maintainers.


--
Patriotism is the conviction that your country is superior to all 
others because you were born in it. - George Bernard Shaw
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] why 5.0.3 on latest linux distro's

2008-10-10 Thread Willy-Bas Loos
wait,

osgeo4w has 5.0.2 (http://trac.osgeo.org/osgeo4w/wiki/pkg-mapserver) (like
debian and ubuntu)
but ms4w has 5.2.0 (http://www.maptools.org/ms4w/index.phtml)
fedora 10 will have 5.2.0 (
http://koji.fedoraproject.org/koji/packageinfo?packageID=4354)

seems to me that the changelog shows enough reasons to use 5.2 instead of
5.0, although major and minor things get mixed up in all this text.
it would be nice to be able to see what the major improvements are, maybe
add a little overview of the major stuff at the top?
(
http://trac.osgeo.org/mapserver/browser/tags/rel-5-2-0/mapserver/HISTORY.TXT
)

Anyways, i still don't understand what is keeping people from using the
latest version.
Is there some dependency in the way?

cheers,

WBL


Why do debian lenny and ubuntu 8.10 only have mapserver 5.0.3 in their
 package lists?
 MS4W has 5.2.0, this is feeling all wrong!




-- 
Patriotism is the conviction that your country is superior to all others
because you were born in it. - George Bernard Shaw
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] buffer function

2008-10-10 Thread Fawcett, David
Jeppe, 
 
If you are always working with rectangles, you could simply get the
coordinates of the original feature, and then calculate four new
coordinates by adding or subtracting a fixed distance from each coord.
The result would be a simple rectangle of the size that you want.  
 
David.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeppe Lund
Andersen
Sent: Friday, October 10, 2008 7:28 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] buffer function



hello all 

I want to shrink or increase a shape, and for that I use the
buffer 
but if I look at the WKT streng I get a lot of points 
and its because it make a curve around the corner 

is it possible to set how many segment it shall make ? 
so if I have a WKT with 4 corners 
I would like a new WKT with 4 corners if I make the shape bigger


here is the wkt I have and the WKT it returns 

Org WKT 
POLYGON((482728.617354642 6285505.17359964, 482710.831068496
6285449.33496543, 482774.225119444 6285437.03746855, 482789.364489571
6285486.76734618, 482728.617354642 6285505.17359964))

New WKT after using Buffer

POLYGON ((482728.90733360 6285506.130632654800,
482789.654468551220 6285487.724379194900,
482789.704199549510 6285487.707876418700,
482789.752997869450 6285487.688791404500,
482789.800729534470 6285487.667176549300,
482789.847263496660 6285487.643091198100,
482789.892471996430 6285487.616601476400,
482789.936230913100 6285487.587780112400,
482789.978420106050 6285487.556706235700,
482790.018923744210 6285487.523465160300,
482790.057630624330 6285487.48814815,
482790.094434476170 6285487.450852167800,
482790.129234254130 6285487.411679610600,
482790.161934415050 6285487.370738026700,
482790.192445180090 6285487.328139822000,
482790.220682781660 6285487.284001951100,
482790.246569692910 6285487.238445594900,
482790.270034841030 6285487.191595828200,
482790.291013802050 6285487.143581278600,
482790.309448978110 6285487.094533770300,
482790.325289755010 6285487.044587963300,
482790.338492641750 6285486.993880986200,
482790.349021389610 6285486.942552053400,
482790.356847091810 6285486.890742091500,
482790.361948262730 6285486.838593344200,
482790.364310897010 6285486.786248986600,
482790.363928508070 6285486.733852731100,
482790.360802145730 6285486.681548432400,
482790.354940393470 6285486.629479692300,
482790.346359344780 6285486.577789467800,
482790.335082559090 6285486.526619672800,
482790.321140997050 6285486.476110795500,
482775.181770870050 6285436.746233165300,
482775.165207903080 6285436.696537927700,
482775.146065381820 6285436.647778186000,
482775.124395832300 6285436.600087734900,
482775.100258714690 6285436.553597433500,
482775.073720259940 6285436.508434850700,
482775.044853288270 6285436.464723908300,
482775.013737009080 6285436.422584547700,
482774.980456803930 6285436.382132397000,
482774.945103991950 6285436.343478456100,
482774.907775579430 6285436.306728786800,
482774.868573993620 6285436.271984230700,
482774.827606801580 6285436.239340123700,
482774.784986415350 6285436.208886040400,
482774.740829782910 6285436.180705545500,
482774.695258067860 6285436.154875963000,
482774.648396316620 6285436.131468169400,
482774.600373115450 6285436.110546394300,
482774.551320237460 6285436.092168046200,
482774.501372281350 6285436.076383553400,
482774.450666301650 6285436.063236229100,
482774.399341433020 6285436.052762148000,
482774.347538508180 6285436.044990049700,
482774.295399671710 6285436.039941262500,
482774.243067989940 6285436.037629637900,
482774.190687058320 6285436.038061520100,
482774.138400607330 6285436.041235723500,
482774.086352108400 6285436.047143539400,
482774.034684379880 6285436.055768755300,
482710.640633431850 6285448.353265635700,
482710.589151007590 6285448.364668604900,
482710.538341227050 6285448.378769453600,
482710.488345365270 6285448.395528974000,
482710.439302434100 6285448.414900566500,
482710.391348795790 6285448.436830370700,
482710.344617783910 6285448.461257410200,
482710.299239332500 6285448.488113766500,
482710.255339614990 6285448.517324766100,
482710.213040692960 6285448.548809189300,
482710.172460177390 6285448.582479494600,
482710.133710900900 6285448.618242063600,

Re: [MAPSERVER-USERS] SLD benefits

2008-10-10 Thread BrainDrain

What about usability? I suppose editing xml is not convenient/unerring way
for everyone.

Milo van der Linden wrote:
 
 BrainDrain wrote:
 Could someone clarify for me what benefits has SLD's which supported in
 MS
 irrespective of WMS?
 Does some handy tools for editing SLD's extists? (desktop apps/web UI's)
 -
 to create theirs separately (by 'publishers') and then applying to
 mapfile
 
 - SLD's are becoming a standard.
 - Content of the SLD's can be validated against the 
 StyledLayerDescriptor.xsd
 - You could more easily exchange datasets WITH STYLING between geoserver 
 / mapserver (and others?) when using SLD
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 

-- 
View this message in context: 
http://www.nabble.com/SLD-benefits-tp19898313p19915632.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


RE: [MAPSERVER-USERS] ms sql 2008 spatial - still problems???

2008-10-10 Thread BrainDrain

sometimes access violation on mapObj construction ...
only iisreset helps
-- 
View this message in context: 
http://www.nabble.com/ms-sql-2008-spatial---still-problemstp19454300p19916793.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

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


Re: [mapserver-users] why 5.0.3 on latest linux distro's

2008-10-10 Thread Willy-Bas Loos
oh they've got a package for linux too, that's great!
hm, they even included some sort of package manager.
i'll go check it out. This looks like it could be a great help - it's not
nice to have to compile all that from code.

thanks!

On Fri, Oct 10, 2008 at 4:27 PM, Christy Nieman [EMAIL PROTECTED]wrote:

  There is the FGS installer package (http://maptools.org/fgs/) for Linux.
 But it's still using version 5.0.2, as far as I know.

 Christy

 Willy-Bas Loos wrote:

 exactly.
 i built my own 5.2.0 too. But i'm not a system admin really and it's a bit
 of a hassle. If i were planning to compile my software myself i would use a
 different distro (Gentoo?).
 I've been posting some stuff on the ubuntu forums too, but i don't get too
 much response there.
 I guess that 5.2.0 doesn't get into lenny (and so ubuntu 8.10) because it
 hasn't been tested for long enough. It is still in the experimental
 repository (thanks nico mandery for pointing this out to me), so not even
 in unstable yet.
 And that will probably mean that we won't see any higher than 5.0.x in
 lenny - the stable debian versions for the next ±4 years. I know it's a
 choice for stability and security -- all about priorities, so nothing to
 make a fuss about -- but it's unconfortable nonetheless.

 So lets try a different angle: if OSGeo are providing a package manager for
 windows (osgeo4w), why not provide a repository for Debian / Ubuntu and
 another one for RedHat / Fedora ?
 Easy for me to say of course, but doesn't it seem unfair that Windows
 should be favoured above open source OS's ?
 (then, maybe i got it all wrong, so please correct me)

 cheers,

 WBL


  In my experiences with Fedora, they tend to keep the same version of
 MapServer that the OS version was released with (so Fedora 9 has 5.0.2, or
 something like that, by default).  As I want to use the latest version, I
 build it for myself.  I bet that distributions tend to stay with what they
 had when first released for map compatibility reasons.  It would be
 something to discuss with your distributions package maintainers.


 --
 Patriotism is the conviction that your country is superior to all others
 because you were born in it. - George Bernard Shaw




-- 
Patriotism is the conviction that your country is superior to all others
because you were born in it. - George Bernard Shaw
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Problem with V.5.2

2008-10-10 Thread David Martinez Morata
Hello.

I was create a WMS service with previous version (5.0.2) for Raster data,
and I can conect with the service via ArcGIS.

Now I install a new version of MS4W (with Mapserver 5.2) and I try to deserv
the WMS in this server, but I found a problem with ArcGIS client (and the
web test to)

With the old WMS service I put the link in FireFox and I have the map image
(Apache log GET
/cgi-bin/mapserv.exe?map=/ms4w/apps/Test/WMS.mapVERSION=1.1.1REQUEST=GetMapSRS=EPSG:27582BBOX=2019.17152212097,1496228.67391604,1618166.46125871,2779880.23119418WIDTH=1186HEIGHT=942LAYERS=RGV2_L2e_05kFR_Contenu,RGV2_L2e_50kFR_France,R500_L2E_01CFR_France,R500_L2E_25CFR_France,R120_L2E_05CFR_France,R120_L2E_01MFR_France,R120_L2E_04MFR_FranceSTYLES=EXCEPTIONS=application/vnd.ogc.se_xmlFORMAT=image/pngBGCOLOR=0xFFTRANSPARENT=TRUE
HTTP/1.1 200 212004)

But with the new if I try this i don't have the image.(Apache log GETGET
/cgi-bin/mapserv.exe?map=/ms4w/apps/Fond_Carto_WMS/maps/Fond_Carto_WMS.mapVERSION=1.1.1REQUEST=GetMapSRS=EPSG:27582BBOX=-190444.488346285,1497501.60549992,1390444.48834629,2753148.66793196WIDTH=1186HEIGHT=942LAYERS=RGV2_L2e_05kFR_Contenu,RGV2_L2e_50kFR_France,R500_L2E_01CFR_France,R500_L2E_25CFR_France,R120_L2E_05CFR_France,R120_L2E_01MFR_France,R120_L2E_04MFR_FranceSTYLES=EXCEPTIONS=application/vnd.ogc.se_xmlFORMAT=image/pngBGCOLOR=0xFFTRANSPARENT=TRUE
HTTP/1.1 200 552)

And if I put the SERVICE=WMS parameter I have the image with new.

My question is if this is a change in Mapserver and how I can pase this
parametre in ArcGIS Request? I can define this in wms metadata in the map
file?

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


Re: [mapserver-users] why 5.0.3 on latest linux distro's

2008-10-10 Thread Christy Nieman
In my experiences with Fedora, they tend to keep the same version of 
MapServer that the OS version was released with (so Fedora 9 has 5.0.2, 
or something like that, by default).  As I want to use the latest 
version, I build it for myself.  I bet that distributions tend to stay 
with what they had when first released for map compatibility reasons.  
It would be something to discuss with your distributions package 
maintainers.


Christy

Willy-Bas Loos wrote:

wait,

osgeo4w has 5.0.2 (http://trac.osgeo.org/osgeo4w/wiki/pkg-mapserver) 
(like debian and ubuntu)

but ms4w has 5.2.0 (http://www.maptools.org/ms4w/index.phtml)
fedora 10 will have 5.2.0 
(http://koji.fedoraproject.org/koji/packageinfo?packageID=4354)


seems to me that the changelog shows enough reasons to use 5.2 instead 
of 5.0, although major and minor things get mixed up in all this text.
it would be nice to be able to see what the major improvements are, 
maybe add a little overview of the major stuff at the top?

(http://trac.osgeo.org/mapserver/browser/tags/rel-5-2-0/mapserver/HISTORY.TXT)

Anyways, i still don't understand what is keeping people from using 
the latest version.

Is there some dependency in the way?

cheers,

WBL


Why do debian lenny and ubuntu 8.10 only have mapserver 5.0.3 in
their package lists?
MS4W has 5.2.0, this is feeling all wrong!




--
Patriotism is the conviction that your country is superior to all 
others because you were born in it. - George Bernard Shaw



___
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] Problem with WMS in 5.2

2008-10-10 Thread David Martinez Morata
Hello.

I'm creating a WMs service with Mapserver V.5.2. And I fonud
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] gedit (Ubuntu text editor) syntax highlighting

2008-10-10 Thread Steve Lime
Cool, looks great! I published the resource on the website too.

Steve

 On 10/9/2008 at 11:46 PM, in message
[EMAIL PROTECTED], Eduin Carrillo
[EMAIL PROTECTED] wrote:
 Hi,
 
 I just released the mapserver.lang file to highlight mapfiles syntax
in 
 gedit, the text editor of Ubuntu. I would like to get your
suggestions or 
 comments to improve this file.
 
 Download, readme and screenshot: 
 http://code.google.com/p/postexperiments/#Mapserver_gedit 
 
 Issues:
 http://code.google.com/p/postexperiments/issues/list 
 
 SVN:
 http://postexperiments.googlecode.com/svn/trunk/mapserver/gedit/ 
 
 I also added a link to the website and is waiting approval.
  
 
 --- 
 Eduin Yesid Carrillo Vega
 Ingeniero Civil, Universidad Industrial de Santander UIS
 Laboratorio de Biogeografía y Análisis Espacial
 Instituto de Investigación de Recursos Biológicos Alexander von
Humboldt
 [EMAIL PROTECTED] 
 Cr.13 28-01 P.7
 Tel. (+57 1) 3506064 ext 122
 Bogotá D.C., Colombia
 
 
 
   

_
 ___
 Premios MTV 2008¡En exclusiva! Fotos, nominados, videos, y mucho más!
Mira 
 aquí http://mtvla.yahoo.com/ 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org 
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Need Step by Step tutorial for Dbox

2008-10-10 Thread Dan Little
(shameless plug)

If you're looking for something that's more setup out of the box than 
OpenLayers then I invite you to try GeoMOOSE.

We even have a mailing list (as advertised on our website 
http://www.geomoose.org/moose )

-Duck



- Original Message 
 From: Steve Lime [EMAIL PROTECTED]
 To: mapserver-users@lists.osgeo.org; [EMAIL PROTECTED]
 Sent: Friday, October 10, 2008 9:00:40 AM
 Subject: Re: [mapserver-users] Need Step by Step tutorial for Dbox
 
 Bernard: I wrote much of dBox but can't really recommend it as a tool 
 anymore. 
 OpenLayers is vastly superior and anything new I've done uses it instead. 
 I've 
 still used bits and pieces of the dBox code base (toolbar, legend) with 
 OpenLayers but I expect those fade away too. dBox works, I'm not running to 
 replace stuff I've built with it but I can't send new users down thatpath 
 with a better alternative out there. Have you looked at OL at all? With a 
 MapServer untiled layer and fractional zooms you can do what dBox does.
 
 Steve
 
  ntiamoah bernard 10/09/08 5:19 PM 
 I Just want to run this demo 
 http://maps.dnr.state.mn.us/tools/dbox/example/example.html
 on my localhost. Can somebody help me?
 
 Bernard
 Indiana
 
 
   
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users



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


RE: [mapserver-users] Trouble with IIS/WMS service in ArcGIS

2008-10-10 Thread Bistrais, Bob
Problem resolved!  We checked the directories where the map images
should have been, but nothing there.  There were a few things we
checked, including paths to the directories.  One important thing found,
the log file showed an error referring to a bad WFS request.  We have no
WFS requests in the map files.  With a Google search we found this error
is caused by a bug in the latest MapServer software.  So we switched
back to the next recent version of MS4W, and the service works fine now.



-Original Message-
From: Milo van der Linden [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 09, 2008 5:27 PM
To: Bistrais, Bob
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Trouble with IIS/WMS service in ArcGIS

Make sure that the directory where the temporary map images /ms_tmp/ are

stored is accessible by your server's IIS_XXUSER otherwise no images 
will be served.

Don't trust IIS to arrange this for you, you have to set it yourself at 
system level.

Bistrais, Bob wrote:
 I suppose this is more of an ArcGIS question, so I apologize if it's
not
 appropriate here, but perhaps somebody has a suggestion.  We have a
 MapServer WMS service.  It is running on a server which uses IIS
instead
 of Apache.  We are trying to consume it through ArcGIS.  I can make
the
 connection in ArcCatalog, and the properties look correct.  But the
data
 (which is imagery) cannot be seen in ArcGIS, only a white space.  The
 spatial extent looks correct.
 
 We had the same imagery in a WMS service, on an Apache server, and it
 works fine with ArcGIS.  Does anyone have any suggestions?
 
 Thanks,
 Bob
 
 
 


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


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


Re: [MAPSERVER-USERS] ms sql 2008 spatial - still problems???

2008-10-10 Thread Tamas Szekeres
Can you execute the same SQL statement in the SQL Sever 2008 Management Studio?
Could you post a sample code to reproduce the problem?

Best regards,

Tamas

2008/10/10 BrainDrain [EMAIL PROTECTED]:

 With new (from ms4w 2.3) plugin:
 mapserv.exe draws map but in mapscript c#:
 Access violation while map.draw() (sometimes, when panning, not every time)
 or for ex. error message:
 msDrawMap(): Image handling error. Failed to draw layer named
 'construct1'.;msMSSQL2008LayerGetShape(): Query error. Error executing
 MSSQL2008 SQL statement: SELECT GEOM.STAsBinary(),convert(varchar(20), id)
 from dbo.Construct WHERE
 GEOM.STIntersects(Geometry::STGeomFromText('POLYGON((...coords...))',0)) = 1
 -3

 
 Access violation on any layer query (spatial/attribute) operation
 or for ex. (query bu point)
 Query error. Error executing MSSQL2008 SQL statement:
 SELECT GEOM.STAsBinary(),convert(varchar(20), id) from dbo.Construct WHERE
 GEOM.STIntersects(Geometry::STGeomFromText('POLYGON((...coords...))',0)) = 1
 -3

 How should I work with it?

 --
 View this message in context: 
 http://www.nabble.com/ms-sql-2008-spatial---still-problemstp19454300p19916057.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.

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

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


Re: [MAPSERVER-USERS] SLD benefits

2008-10-10 Thread Milo van der Linden
Usability is also an issue with the mapfile for which no easy clients 
have been developed either. But I feel editing SLD with for instance 
Eclipse (Set syntax highlighting to xml) is more easy and user friendly 
already.


I have heard rumors from the FOSS4G that SLD editting software is being 
developed for geoserver, perhaps this will also be usable for mapserver 
(assuming both systems are strict OGC compliant to the SLD schema)


So I think the best thing is to be patient (give developing teams a 
change) be supportive or help projects develop usable tools for this.


Kind regards,

Milo van der Linden

BrainDrain wrote:

What about usability? I suppose editing xml is not convenient/unerring way
for everyone.

Milo van der Linden wrote:

BrainDrain wrote:

Could someone clarify for me what benefits has SLD's which supported in
MS
irrespective of WMS?
Does some handy tools for editing SLD's extists? (desktop apps/web UI's)
-
to create theirs separately (by 'publishers') and then applying to
mapfile

- SLD's are becoming a standard.
- Content of the SLD's can be validated against the 
StyledLayerDescriptor.xsd
- You could more easily exchange datasets WITH STYLING between geoserver 
/ mapserver (and others?) when using SLD

___
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] Disappearing point in a map

2008-10-10 Thread Chip Taylor
I have a map where I pass in the information about a point via the URL. I am
using mapserver version 5.2 on a Windows Server 2000.  In some cases the
point just does not appear.  For example, the map extents of
-78.9043321338311+35.0222546417047+-78.8914558661689+35.0367113582953 will
not show a point at -78.897894, 35.029483 and yet a map extents of
-78.9041121338311+35.0222546417047+-78.8912358661689+35.0367113582953 will
show the point of -78.897674, 35.029483, less than 300 linear feet away.

Here is the URL passing in the first example:

https://devmap/bin/mapserv.exe?mode=mapmap=map_files/US.mapmapsize=580
475map_MyPoint_feature=newmap.layer[MyPoint]=feature+points+-78.897894+35.
029483+END+TEXT+%27Secondary%20Building%27ENDlayers=roadsmapext=-78.904332
1338311+35.0222546417047+-78.8914558661689+35.0367113582953program=%2Fbin%2
Fmapserv.exe

And here is the mapfile:


MAP
  NAME US
  STATUS ON
  UNITS DD
EXTENT -127.00 43.00 -115.00 50.00
SIZE 500 400
IMAGECOLOR 156 188 217
IMAGETYPE png
  SYMBOLSET ../etc/NAVsymbols.sym
  SHAPEPATH ../Shape_Files/navteq_data/
  FONTSET ../etc/fonts.txt
  Include InlineSyms.map

# 
# Symbol for drawing Star
#
Symbol
NAME 'Star'
TYPE VECTOR
FILLED true
   POINTS
0 0.375
0.35  0.375
0.5   0
0.65  0.375
1 0.375
0.75  0.625
0.875 1
0.5   0.75
0.125 1
0.25  0.625
   END
END

# 
  # ==
  # Web Interface Definition
  # ==
  WEB
# the following preset_scales metadata is a list of specific scales
that
# the mapfile is configured for.  These values are not used, but can be
# placed in other applications such as ka-Map
(http://ka-map.maptools.org/)
METADATA
  preset_scales
2500,7500,12000,17500,35000,75000,125000,20,40,75,200,4
00,750,1500,3000,6000
END
MINSCALE 1  # necessary for CGI point query

 TEMPLATE ../HTML_Files/sitemap.html
 IMAGEPATH 'd:/wwwroot/tmp/'
 IMAGEURL /tmp/
 LOG d:/MapLogs/mapserver.log
 #ERROR ../maperror.htm

  END

  # ==
  # Projection Definition
  # ==
  PROJECTION
init=epsg:4269
  END

 # 
# MyPoint
#
LAYER
NAME MyPoint
TYPE Annotation
STATUS DEFAULT
 METADATA
   wms_titleMyPoint  ##required
  END
 CLASS
  COLOR -1 0 0
   STYLE
COLOR 255 0 0
OUTLINECOLOR 255 255 0 
SYMBOL 'star' 
SIZE 20 
   END

  LABEL
FONT Arial
TYPE TRUETYPE
ANTIALIAS TRUE
COLOR 0 0 0
BACKGROUNDCOLOR 220 220 220
OFFSET 10 0
SIZE 10
POSITION lr
  END
 END
END
END #mapfile

Any help would be greatly appreciated.

Chip Taylor
Prepared Response, inc



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


Re: [mapserver-users] Disappearing point in a map

2008-10-10 Thread Guillaume Sueur
can't it comes from the offset of 10 pixels you're applying on the point
symbol ?

regards,

guillaume

Chip Taylor a écrit :
 I have a map where I pass in the information about a point via the URL. I am
 using mapserver version 5.2 on a Windows Server 2000.  In some cases the
 point just does not appear.  For example, the map extents of
 -78.9043321338311+35.0222546417047+-78.8914558661689+35.0367113582953 will
 not show a point at -78.897894, 35.029483 and yet a map extents of
 -78.9041121338311+35.0222546417047+-78.8912358661689+35.0367113582953 will
 show the point of -78.897674, 35.029483, less than 300 linear feet away.
 
 Here is the URL passing in the first example:
 
 https://devmap/bin/mapserv.exe?mode=mapmap=map_files/US.mapmapsize=580
 475map_MyPoint_feature=newmap.layer[MyPoint]=feature+points+-78.897894+35.
 029483+END+TEXT+%27Secondary%20Building%27ENDlayers=roadsmapext=-78.904332
 1338311+35.0222546417047+-78.8914558661689+35.0367113582953program=%2Fbin%2
 Fmapserv.exe
 
 And here is the mapfile:
 
 
 MAP
   NAME US
   STATUS ON
   UNITS DD
 EXTENT -127.00 43.00 -115.00 50.00
 SIZE 500 400
 IMAGECOLOR 156 188 217
 IMAGETYPE png
   SYMBOLSET ../etc/NAVsymbols.sym
   SHAPEPATH ../Shape_Files/navteq_data/
   FONTSET ../etc/fonts.txt
   Include InlineSyms.map
 
 # 
 # Symbol for drawing Star
 #
 Symbol
 NAME 'Star'
 TYPE VECTOR
 FILLED true
POINTS
   0 0.375
   0.35  0.375
   0.5   0
   0.65  0.375
   1 0.375
   0.75  0.625
   0.875 1
   0.5   0.75
   0.125 1
   0.25  0.625
END
 END
 
 # 
   # ==
   # Web Interface Definition
   # ==
   WEB
 # the following preset_scales metadata is a list of specific scales
 that
 # the mapfile is configured for.  These values are not used, but can be
 # placed in other applications such as ka-Map
 (http://ka-map.maptools.org/)
 METADATA
   preset_scales
 2500,7500,12000,17500,35000,75000,125000,20,40,75,200,4
 00,750,1500,3000,6000
 END
 MINSCALE 1  # necessary for CGI point query
 
  TEMPLATE ../HTML_Files/sitemap.html
  IMAGEPATH 'd:/wwwroot/tmp/'
  IMAGEURL /tmp/
  LOG d:/MapLogs/mapserver.log
  #ERROR ../maperror.htm
 
   END
 
   # ==
   # Projection Definition
   # ==
   PROJECTION
 init=epsg:4269
   END
 
  # 
 # MyPoint
 #
 LAYER
 NAME MyPoint
 TYPE Annotation
 STATUS DEFAULT
  METADATA
wms_titleMyPoint  ##required
   END
  CLASS
   COLOR -1 0 0
STYLE
   COLOR 255 0 0
   OUTLINECOLOR 255 255 0 
   SYMBOL 'star' 
   SIZE 20 
END
 
   LABEL
 FONT Arial
 TYPE TRUETYPE
 ANTIALIAS TRUE
 COLOR 0 0 0
 BACKGROUNDCOLOR 220 220 220
 OFFSET 10 0
 SIZE 10
 POSITION lr
   END
  END
 END
 END #mapfile
 
 Any help would be greatly appreciated.
 
 Chip Taylor
 Prepared Response, inc
 
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 
 
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Fractional line widths?

2008-10-10 Thread Dane Springmeyer

Hi All,

So, as of r7923 MapServer can now render some super thin lines using  
the subpixel rendering of AGG. The change allows you to enter values  
for the WIDTH parameter as doubles/fractions which can give the result  
I've been looking for.


I think is really cool, and if anyone is interested in the different  
results you can check out the image comparisons I've posted on this  
ticket:


http://trac.osgeo.org/mapserver/ticket/2745#comment:6

Thanks dmorrissette, sdlime, and tbonfort for making this happen!

Dane



On Sep 4, 2008, at 7:10 PM, Dane Springmeyer wrote:


Thomas,

Thanks for the tip, but I think I don't quite understand the right  
syntax.


First of all, I'm running the mac binary from kyngchaos, version 5.2.0

I've tried to add two style blocks like:

  LAYER
NAME world_opacity
DATA world_borders.shp
STATUS  ON
TYPE  POLYGON
CLASS
  NAME   World
  STYLE
COLOR 242 239 249
OUTLINECOLOR-1 -1 -1
  END
  STYLE
COLOR -1 -1 -1
OUTLINECOLOR   127 127 127
OPACITY 50
WIDTH 1
  END
END # class
  END # layer

to create this full mapfile: 
http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/world.map

But that does not produce a result more akin to WIDTH 0.5, from what  
I can tell. It simply lightens the color of the outline, and in this  
case make it 'seem' even thicker. It is as if the opacity is not  
working as a true alpha opacity.


Here is the example output with OPACITY 50:

http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/map/hello_world_with_mapserver_mapfile_opacity.png

Is this the expected behavior or have I made an error in my mapfile  
syntax (highly likely). Perhaps I am not correctly turning off the  
outline for the first style?


The issue may also be with my OUTPUTFORMAT, which is not using the  
RGBA:


  OUTPUTFORMAT
   NAME 'AGG'
   DRIVER AGG/PNG
   IMAGEMODE RGB
   MIMETYPE image/png
  END

I also tried with:

  OUTPUTFORMAT
   NAME 'AGGA'
   DRIVER AGG/PNG
   IMAGEMODE RGBA
   MIMETYPE image/png
  END

but I get an error when I add the 'AGGA' (based on reading http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics) 
:


msPostMapParseOutputFormatSetup(): General error message. Unable to  
select IMAGETYPE `AGG'.



Any thoughts?

Thanks,

Dane



On Aug 31, 2008, at 2:50 PM, thomas bonfort wrote:


hi.
yes, you need two style blocks inside your class
cheers,
thomas

On Sun, Aug 31, 2008 at 9:43 PM, Dane Springmeyer  
[EMAIL PROTECTED] wrote:

Hi Thomas,

Thanks for the followup.

The OPACITY keyword seems to apply to both the polyon fill (COLOR)  
and the

outline (OUTLINECOLOR).

What is the trick to apply it to only the outline? I tried  
OUTLINEOPACITY,

which of course does not exist.

Do I need to pull out a style class for just the outline?

Here is the mapfile I am working from:

http://mapnik-utils.googlecode.com/svn/trunk/tutorials/hello_world/mapserver_comparison/mapfile_config/world.map

Thanks,

Dane


On Aug 30, 2008, at 12:22 AM, thomas bonfort wrote:


Sorry for not hopping into the thread earlier, blame holidays :)

For the time being, you can achieve similar output with mapserver  
5.2,

by using the OPACITY keyword at the style level

STYLE
COLOR r g b
OPACITY 50  # essentially the same as WIDTH 0.5
WIDTH 1
END

cheers,
thomas


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


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


Re: [mapserver-users] gedit (Ubuntu text editor) syntax highlighting

2008-10-10 Thread Eduin Carrillo
Thank you.

 -- 
Eduin 




- Mensaje original 
De: Steve Lime [EMAIL PROTECTED]
Para: mapserver-users@lists.osgeo.org; Eduin Carrillo [EMAIL PROTECTED]
Enviado: viernes, 10 de octubre, 2008 11:00:08
Asunto: Re: [mapserver-users] gedit (Ubuntu text editor) syntax highlighting

Cool, looks great! I published the resource on the website too.

Steve


 Hi,
 
 I just released the mapserver.lang file to highlight mapfiles syntax
in 
 gedit, the text editor of Ubuntu. I would like to get your
suggestions or 
 comments to improve this file.
 
 Download, readme and screenshot: 
 http://code.google.com/p/postexperiments/#Mapserver_gedit 
 
 Issues:
 http://code.google.com/p/postexperiments/issues/list 
 
 SVN:
 http://postexperiments.googlecode.com/svn/trunk/mapserver/gedit/ 
 
 I also added a link to the website and is waiting approval.
  


  

Premios MTV 2008¡En exclusiva! Fotos, nominados, videos, y mucho más! Mira aquí 
http://mtvla.yahoo.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users