[mapserver-users] Re: [MAPFILE] How to display Logos above Labels ?

2010-12-17 Thread Lordnecron

Ha ha ! Great ! It works ! 

POSTLABELCACHE true do exactly what I need.

Thanks a lot for your support !
Much much appreciated.

Mapserver Pow ! :)
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/MAPFILE-How-to-display-Logos-above-Labels-tp5842449p5844830.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] Re: [MAPFILE] How to display Logos above Labels ?

2010-12-17 Thread Michael Shishcu
Nice, but, also try Steves suggestion ;-)
regards, michael

On 17 December 2010 10:53, Lordnecron julien.bey...@caramail.com wrote:


 Ha ha ! Great ! It works !

 POSTLABELCACHE true do exactly what I need.

 Thanks a lot for your support !
 Much much appreciated.

 Mapserver Pow ! :)
 --
 View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/MAPFILE-How-to-display-Logos-above-Labels-tp5842449p5844830.html
 Sent from the Mapserver - User mailing list archive at Nabble.com.
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

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


[mapserver-users] Reference map depicted area extent line width

2010-12-17 Thread Manuel Aymerich
Hi,

 

When making region based queries for reference maps, is there a way to
change the line width (or style preferences in general) of the area of
interest rectangle depicted on the reference map? 

 

Thanks in advance. Regards,

 

Manuel Aymerich

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


Re: [mapserver-users] Reference map depicted area extent line width

2010-12-17 Thread Jeff McKenna

On 10-12-17 9:20 AM, Manuel Aymerich wrote:

Hi,

When making region based queries for reference maps, is there a way to
*change the line width (or style preferences in general) of the area of
interest rectangle depicted on the reference map*?



All of the available parameters for reference maps are documented at: 
http://www.mapserver.org/mapfile/reference.html


Happy holidays :)

-jeff

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


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


RE: [mapserver-users] GetFeatureInfo

2010-12-17 Thread David Hildebrand
The tolerance parameter was the trick, Jeff.  Thanks.

===
David V. Hildebrand
Agriculture Financial Services Corporation
(403) 782-8239   

www.afsc.ca http://www.afsc.ca
This communication is intended for the use of the recipient to which it
is addressed, and may contain confidential, personal and/or privileged
information. Please contact Agriculture Financial Services Corporation
immediately if you are not the intended recipient of this communication,
and do not copy, distribute, or take action relying on it. Any
communication received in error, or subsequent reply, should be deleted
or destroyed. Please consider the environment before printing this
email.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Jeff
McKenna
Sent: Thursday, December 16, 2010 1:57 PM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] GetFeatureInfo

On 10-12-16 4:41 PM, David Hildebrand wrote:
 I have several WMS layers. One is a polygon layer and the other two
are
 line and point layer. I have HTML templates for each layer which are
 very similar. All the layers are being drawn but when I run a
 REQUEST=GetFeatureInfo on a location which has features from all three
 layers I only get a return from the polygon layer. I have the
following
 debug statements in my mapfile.


Hi,

Just a quick note, that the WMS Server doc gives a working example of a 
GetFeatureInfo request on a point layer: 
http://demo.mapserver.org/cgi-bin/wms?SERVICE=WMSVERSION=1.1.1REQUEST=
GetFeatureInfoBBOX=-11.332970,24.121208,47.584718,57.965035SRS=EPSG:43
26WIDTH=1001HEIGHT=575LAYERS=citiesSTYLES=FORMAT=image/pngTRANSPAR
ENT=trueQUERY_LAYERS=citiesINFO_FORMAT=text/plainX=229Y=280

I would make sure your layers have a template set, as well as modify the

tolerance parameter possibly.

-jeff



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


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


RE: [mapserver-users] OGR data layer type - points and lines

2010-12-17 Thread Fawcett, David (MPCA)
Ian, 

I thought that there was a pretty simple answer to this, but it seems as though 
I have imagined some non-existing functionality.

Assuming that you have a Spatialite db containing a point data set, and you 
have a MapServer layer that draws this, I think that I have a solution for you. 
 (This also assumes that OGR supports reading linestrings from Spatialite).

PostGIS has the ST_MakeLine() function that allows you to create linestrings 
out of point geometries.  The current version of Spatialite doesn't have 
anything like this (although since I have mentioned it on the Spatialite list, 
it could be there soon...)

So, this SQL employs some workarounds, but may work:

SELECT LineFromText('LINESTRING(' || group_concat(X(geometry) || ' ' || 
Y(geometry), ',') || ')') FROM datapoints ORDER BY fix_date;

If performance is a problem, I would build a Spatialite line dataset and 
rebuild it every time your point dataset changes.

David.

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Thursday, December 16, 2010 10:44 AM
To: Ian Walberg
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] OGR data layer type - points and lines

On 12/16/2010 10:51 AM, Ian Walberg wrote:
 Ah, ok let us look at that.

 I do believe the data source we have has data in the format POINT
 (-118.55000305194 34.0141239).

 What is the format for line data?

I'm not sure, I have not used the OGR connection. Assuming it is 
returning WKT where points are:

POINT(-118.55000305194 34.0141239)

then lines would be:

LINESTRING(-118.55000305194 34.0141239,-118.56000305194 
34.0141239,...)

-Steve

 Thanks

 Ian

 -Original Message-
 From: mapserver-users-boun...@lists.osgeo.org
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen
 Woodbridge
 Sent: Thursday, December 16, 2010 6:57 AM
 To: mapserver-users@lists.osgeo.org
 Subject: Re: [mapserver-users] OGR data layer type - points and lines

 I do not believe that this is possible.
 If you want to draw lines you have to create a data source the returns
 lines not points.

 The problem is that mapserver draws features and each point is a
 feature. It does not have a mechanism that can read a data source and
 aggregate the point features into a single line feature.

 I have seen posts on the PostGIS list for SQL that can do this. You
 might ask on the GDAL list if there is a way to do this. Or if you can
 use PostGIS, then you can find the SQL in the archives or ask again.

 -Steve W

 On 12/16/2010 1:00 AM, Ian Walberg wrote:
 Hello list,

 Using an OGR connection to an sqlite data file we can get point and
 labels to draw successfully.

 However when we try and draw a line using the point data we do not get
 anything drawn.

 Layer details below.

 Thanks

 Ian

 LAYER

 NAME ogr_points

 STATUS DEFAULT

 TYPE point

 CONNECTIONTYPE OGR

 CONNECTION points.sqlite

 DATA DataPoints

 CLASS

 NAME From OGR

 COLOR 255 0 0

 STYLE

 SYMBOL 'City'

 SIZE 5

 COLOR 0 255 255

 END

 LABEL

 COLOR 255 255 255

 OUTLINECOLOR 0 0 0

 TYPE truetype

 FONT Unicode

 SIZE 16

 ANTIALIAS TRUE

 POSITION AUTO

 END # end of label

 END

 END

 LAYER

 NAME ogr_line

 STATUS OFF

 TYPE line

 CONNECTIONTYPE OGR

 CONNECTION points.sqlite

 DATA DataPoints

 CLASS

 STYLE

 COLOR 255 22 22

 WIDTH 2

 END

 END

 END



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

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

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


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


RE: [mapserver-users] OGR data layer type - points and lines

2010-12-17 Thread Fawcett, David (MPCA)
I guess I spoke a little too soon...

When I attempted to test this data definition, I got a mapserv.exe crash.  I am 
using a recent version of MSW4.

Also, in looking a little bit at the OGR driver page for sqlite:  
http://www.gdal.org/ogr/drv_sqlite.html, 
I am guessing that the driver can't use spatialite's native binary geometry 
storage format when it is used to build a geom on the fly.  Based on that, I 
think that creating a wkt geom may be the way to go.  Something like this 
(which still crashes mapserv.exe).

DATA select 'LINESTRING(' || group_concat(X(geometry) || ' ' || Y(geometry), 
',') || ')' AS wkt_geometry from turtle_points

This sample is also very simple in that the line vertices aren't being ordered 
and the assumption is that you want one line from all of the points in your 
dataset.

David.



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


RE: [mapserver-users] OGR data layer type - points and lines

2010-12-17 Thread Fawcett, David (MPCA)
Steve, 

I need to do some more testing before I can report a bug.  I have both OSGEO4W 
and MS4W installed on this machine and I was actually using the MapServer (5.4) 
from MS4W.  I want to get a clean install and test before reporting this as a 
bug.

I have a Spatialite point layer (turtle_points) that that draws using an OGR 
connection.  

In an attempt to simplify the problem of drawing a line layer that is generated 
on the fly, I tried to flop my point data to WKB and draw that.  

When I use this SQL for my data statement, I get a MapServer crash too.  
select AsBinary(geometry) from turtle_points

I have playing with Spatialite for some time now, but hadn't yet combined my 
interests in MapServer and Spatialite.  I will continue to play with this over 
time when I can.  

If anyone else has been experimenting with Spatialite dbs as data sources for 
MapServer, I would love to hear about it.

David.



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


[mapserver-users] OUTPUTFORMAT PDF rendering issue

2010-12-17 Thread Andrew Cowie
Hello Folks,

I was wondering whether someone may be able to help me. I'm currently trying
to set up a WMS to create a topographic base map of New Zealand using
Mapserver. So far, things are going ok, but have run into an issue when
trying to get things into a format for high quality hardcopy printing
(vector PDF).
The issue arises with 'spikey' rendering of polygons when using Mapserver to
output to PDF. When outputting as an image (PNG), the maps are drawn
correctly, but when choosing PDF, the output looks sort of generalised and
inaccurate. The data I'm testing with is a polygon version of the coastline
of NZ, at a 1:5 scale - stored in a PostGIS database.

I have played around with the mapfile settings of RESOLUTION in combination
with SIZE - when using the default RESOLUTION of 72, the output is spikey,
as described, but as I increase this number - the output gets progressively
better. When I increase this to a very large number (16000) (with a SIZE of
9600 9600) - the output I get looks to be closer to the original dataset,
devoid of spikes.

I may be missing something obvious, so apologies if I am, but is this the
correct way of getting a high quality output to PDF?
I have tried this with the latest version of Mapserver - 5.6.5 and also with
the latest SVN version built with support for using the CAIRO rendering
library.
Mapserver is built on Ubuntu 10.

Any help would be much appreciated.

Many thanks

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