[mapserver-users] Base map data for WMS

2012-03-07 Thread Reinoud Bokhorst

Dear list,

Until now I have been using the public Demis, Metacarta, Google Maps services as base map providers 
in my WMS clients. Since our company creates commercial services, I don't want to be dependent any 
longer on those because:

- availability is never guaranteed
- can not use those off-line
- license restrictions a la Google Maps prohibits use for closed services

So I am keen to start hosting our own base map WMS server containing a good resolution world map to 
start with. Later local maps for smaller areas can be added. The world map should be something like 
Demis with layers coastlines, borders, bathymetry, topography, place names, inland waters, main 
roads and place names.


I could buy a WMS server including world map data, e.g. Demis or ArcIMS but I don't really want 
that. We already use GeoServer and MapServer and would rather add world map data. So I could:

1. buy world map data
2. create world map myself by assembling freely available data (gshhs, etopo, 
vmap, srtm, ...).

I am afraid (2) will cost a lot of time. Regarding (1) I already found world data for sale from DM 
Solutions and ThinkGeo, are there others? Which is better?


There is surprisingly little information on the net about this issue, I guess most people are either 
using public services or using commercial packages.


My question is a general one: I wondered if anybody has encountered the same problem and what 
solution has been chosen, what data sources when creating a map yourself, other commercial data, 
what data is better than other, etc. All comments welcome!


Reinoud Bokhorst





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


RE: [mapserver-users] Base map data for WMS

2012-03-07 Thread Edward Mac Gillavry

Reinoud,

For this, I'd recommend going with OpenStreetMap data 
(http://www.openstreetmap.org/). You can either download the whole data set for 
the world yourself and start building, or you can take mapping services from 
various suppliers. Check out http://www.switch2osm.org/ for further 
information. You'll be in good company!

Kind regards,

Edward

-- 
E. Mac Gillavry (Edward) 
-- 
[t]  +31 (0)30-26 72 225 
[m] +31 (0)6-45 608 910 
-- 
[e] emacgilla...@hotmail.com 
-- 

 Date: Wed, 7 Mar 2012 09:29:18 +0100
 From: reinoud.bokho...@bmtargoss.com
 To: mapserver-users@lists.osgeo.org
 Subject: [mapserver-users] Base map data for WMS
 
 Dear list,
 
 Until now I have been using the public Demis, Metacarta, Google Maps services 
 as base map providers 
 in my WMS clients. Since our company creates commercial services, I don't 
 want to be dependent any 
 longer on those because:
 - availability is never guaranteed
 - can not use those off-line
 - license restrictions a la Google Maps prohibits use for closed services
 
 So I am keen to start hosting our own base map WMS server containing a good 
 resolution world map to 
 start with. Later local maps for smaller areas can be added. The world map 
 should be something like 
 Demis with layers coastlines, borders, bathymetry, topography, place names, 
 inland waters, main 
 roads and place names.
 
 I could buy a WMS server including world map data, e.g. Demis or ArcIMS but I 
 don't really want 
 that. We already use GeoServer and MapServer and would rather add world map 
 data. So I could:
 1. buy world map data
 2. create world map myself by assembling freely available data (gshhs, etopo, 
 vmap, srtm, ...).
 
 I am afraid (2) will cost a lot of time. Regarding (1) I already found world 
 data for sale from DM 
 Solutions and ThinkGeo, are there others? Which is better?
 
 There is surprisingly little information on the net about this issue, I guess 
 most people are either 
 using public services or using commercial packages.
 
 My question is a general one: I wondered if anybody has encountered the same 
 problem and what 
 solution has been chosen, what data sources when creating a map yourself, 
 other commercial data, 
 what data is better than other, etc. All comments welcome!
 
 Reinoud Bokhorst
 
 
 
 
 
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Base map data for WMS

2012-03-07 Thread Andrea Aime
On Wed, Mar 7, 2012 at 9:43 AM, Edward Mac Gillavry 
emacgilla...@hotmail.com wrote:

  Reinoud,

 For this, I'd recommend going with OpenStreetMap data (
 http://www.openstreetmap.org/). You can either download the whole data
 set for the world yourself and start building, or you can take mapping
 services from various suppliers. Check out http://www.switch2osm.org/ for
 further information. You'll be in good company!


I've also seen people download and use OSM data in locations where no
internet connection is available
(closed networks), they just downloaded the full OSM world file, imported
it in postgis using osm in a box,
and then used the osm in a box styles to map it with GeoServer.

If the dataset is too big and you just need to do low scale cartography the
natural earth dataset is also
quite good: http://www.naturalearthdata.com/downloads/

Cheers
Andrea

-- 
---
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:  +39 0584 962313
mob:+39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

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


Re: [mapserver-users] Base map data for WMS

2012-03-07 Thread thomas bonfort
Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you
have detailed instructions for how to setup mapserver as a wms server
for openstreetmap imagery.
As the basemap rendering isn't specially light on server ressources I
would recommend using a tile cache and not expose the wms service
directly. Mapcache can assemble the cached tiles to serve complete wms
getmap requests should some of your clients not support tiled requests
(see http://www2.terriscope.fr/geocache/demo/wms for a possible
rendering style, you can select the singletile layer for untiled
getmap requests).

--
thomas

On Wed, Mar 7, 2012 at 09:29, Reinoud Bokhorst
reinoud.bokho...@bmtargoss.com wrote:
 Dear list,

 Until now I have been using the public Demis, Metacarta, Google Maps
 services as base map providers in my WMS clients. Since our company creates
 commercial services, I don't want to be dependent any longer on those
 because:
 - availability is never guaranteed
 - can not use those off-line
 - license restrictions a la Google Maps prohibits use for closed services

 So I am keen to start hosting our own base map WMS server containing a good
 resolution world map to start with. Later local maps for smaller areas can
 be added. The world map should be something like Demis with layers
 coastlines, borders, bathymetry, topography, place names, inland waters,
 main roads and place names.

 I could buy a WMS server including world map data, e.g. Demis or ArcIMS but
 I don't really want that. We already use GeoServer and MapServer and would
 rather add world map data. So I could:
 1. buy world map data
 2. create world map myself by assembling freely available data (gshhs,
 etopo, vmap, srtm, ...).

 I am afraid (2) will cost a lot of time. Regarding (1) I already found world
 data for sale from DM Solutions and ThinkGeo, are there others? Which is
 better?

 There is surprisingly little information on the net about this issue, I
 guess most people are either using public services or using commercial
 packages.

 My question is a general one: I wondered if anybody has encountered the same
 problem and what solution has been chosen, what data sources when creating a
 map yourself, other commercial data, what data is better than other, etc.
 All comments welcome!

 Reinoud Bokhorst





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


Re: [mapserver-users] Base map data for WMS

2012-03-07 Thread Rahkonen Jukka
Hi,

A bit outdated but still super easy way for having a try on Windows
http://latuviitta.org/documents/Super_easy_WMS_server.pdf

Package is combined from MS4W and mapfiles by Thomas Bonfort. Package will be 
much better when everything is ready for updating it to contain super fast 
Spatialite support (exists already in GDAL trunk and seems to make Spatilite 
faster that PostGIS), preconfigured MapCache and georeferenced PDF output.

-Jukka Rahkonen-



 -Alkuperäinen viesti-
 Lähettäjä: mapserver-users-boun...@lists.osgeo.org 
 [mailto:mapserver-users-boun...@lists.osgeo.org] Puolesta 
 thomas bonfort
 Lähetetty: 7. maaliskuuta 2012 11:16
 Vastaanottaja: Reinoud Bokhorst
 Kopio: mapserver-users@lists.osgeo.org
 Aihe: Re: [mapserver-users] Base map data for WMS
 
 Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you
 have detailed instructions for how to setup mapserver as a wms server
 for openstreetmap imagery.
 As the basemap rendering isn't specially light on server ressources I
 would recommend using a tile cache and not expose the wms service
 directly. Mapcache can assemble the cached tiles to serve complete wms
 getmap requests should some of your clients not support tiled requests
 (see http://www2.terriscope.fr/geocache/demo/wms for a possible
 rendering style, you can select the singletile layer for untiled
 getmap requests).
 
 --
 thomas
 
 On Wed, Mar 7, 2012 at 09:29, Reinoud Bokhorst
 reinoud.bokho...@bmtargoss.com wrote:
  Dear list,
 
  Until now I have been using the public Demis, Metacarta, Google Maps
  services as base map providers in my WMS clients. Since our 
 company creates
  commercial services, I don't want to be dependent any 
 longer on those
  because:
  - availability is never guaranteed
  - can not use those off-line
  - license restrictions a la Google Maps prohibits use for 
 closed services
 
  So I am keen to start hosting our own base map WMS server 
 containing a good
  resolution world map to start with. Later local maps for 
 smaller areas can
  be added. The world map should be something like Demis with layers
  coastlines, borders, bathymetry, topography, place names, 
 inland waters,
  main roads and place names.
 
  I could buy a WMS server including world map data, e.g. 
 Demis or ArcIMS but
  I don't really want that. We already use GeoServer and 
 MapServer and would
  rather add world map data. So I could:
  1. buy world map data
  2. create world map myself by assembling freely available 
 data (gshhs,
  etopo, vmap, srtm, ...).
 
  I am afraid (2) will cost a lot of time. Regarding (1) I 
 already found world
  data for sale from DM Solutions and ThinkGeo, are there 
 others? Which is
  better?
 
  There is surprisingly little information on the net about 
 this issue, I
  guess most people are either using public services or using 
 commercial
  packages.
 
  My question is a general one: I wondered if anybody has 
 encountered the same
  problem and what solution has been chosen, what data 
 sources when creating a
  map yourself, other commercial data, what data is better 
 than other, etc.
  All comments welcome!
 
  Reinoud Bokhorst
 
 
 
 
 
  ___
  mapserver-users mailing list
  mapserver-users@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/mapserver-users
 ___
 mapserver-users mailing list
 mapserver-users@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users
 ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Base map data for WMS

2012-03-07 Thread Reinoud Bokhorst

Thank you for your answers.

@Edward: Thank you for that link, just what I needed. I have been looking at OSM before but it 
always seemed to be mainly about street maps with too many features and I never really found out how 
to use it.

In the link you provided I now also see decent topographic maps so I'll 
certainly give it a try!

@Andrea: Natural Earth indeed seems to be a good alternative to start with, 
thank you for that link.



On 03/07/2012 10:02 AM, Andrea Aime wrote:
On Wed, Mar 7, 2012 at 9:43 AM, Edward Mac Gillavry emacgilla...@hotmail.com 
mailto:emacgilla...@hotmail.com wrote:


Reinoud,

For this, I'd recommend going with OpenStreetMap data 
(http://www.openstreetmap.org/). You can
either download the whole data set for the world yourself and start 
building, or you can take
mapping services from various suppliers. Check out 
http://www.switch2osm.org/ for further
information. You'll be in good company!


I've also seen people download and use OSM data in locations where no internet 
connection is available
(closed networks), they just downloaded the full OSM world file, imported it in postgis using osm 
in a box,

and then used the osm in a box styles to map it with GeoServer.

If the dataset is too big and you just need to do low scale cartography the natural earth 
dataset is also

quite good: http://www.naturalearthdata.com/downloads/

Cheers
Andrea

--
---
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:  +39 0584 962313
mob:+39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

---



--
--
Reinoud Bokhorst
Advisor Oceanography  ICT

Tel:+31 (0)527 242 299
Fax:+31 (0)527 242 016
Website:www.bmtargoss.com

BMT ARGOSS b.v., Voorsterweg 28, 8316 PT, Marknesse, The Netherlands

(Postal address : PO Box 61, 8325 ZH, Vollenhove, The Netherlands)

Registered in The Netherlands, Registered no. 39060160.

Unless otherwise agreed by BMT ARGOSS in writing, all  work, services, goods or 
products supplied by BMT ARGOSS shall be subject to and governed by BMT 
ARGOSS’s own terms and conditions which are available for inspection from BMT 
ARGOSS on request.

E-mail confidentiality notice and disclaimer:
The contents of this e-mail and any attachments are intended for the use of the 
mail addressee(s) shown. If you are not that person, you are not allowed to 
read it, to take any action based upon it or to copy it, forward, distribute or 
disclose the contents of it and you should please delete it from your system. 
BMT ARGOSS does not accept liability for any errors or omissions in the context 
of this e-mail or its attachments which arise as a result of internet 
transmission, nor accept liability for statements which are those of the author 
and clearly not made on behalf of BMT ARGOSS.

Please consider the environmental impacts of printing this email, and only do 
so if really necessary

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


Re: [mapserver-users] Base map data for WMS

2012-03-07 Thread Reinoud Bokhorst
Thank you. Yes, I was planning to use a tile cache for this service. I am not new to MapServer but 
have never used OSM or tile caching and am not particularly experienced in styling, so I have many 
questions now. But I'll first study the documentation in the answers!


On 03/07/2012 10:16 AM, thomas bonfort wrote:

Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you
have detailed instructions for how to setup mapserver as a wms server
for openstreetmap imagery.
As the basemap rendering isn't specially light on server ressources I
would recommend using a tile cache and not expose the wms service
directly. Mapcache can assemble the cached tiles to serve complete wms
getmap requests should some of your clients not support tiled requests
(see http://www2.terriscope.fr/geocache/demo/wms for a possible
rendering style, you can select the singletile layer for untiled
getmap requests).

--
thomas

On Wed, Mar 7, 2012 at 09:29, Reinoud Bokhorst
reinoud.bokho...@bmtargoss.com  wrote:

Dear list,

Until now I have been using the public Demis, Metacarta, Google Maps
services as base map providers in my WMS clients. Since our company creates
commercial services, I don't want to be dependent any longer on those
because:
- availability is never guaranteed
- can not use those off-line
- license restrictions a la Google Maps prohibits use for closed services

So I am keen to start hosting our own base map WMS server containing a good
resolution world map to start with. Later local maps for smaller areas can
be added. The world map should be something like Demis with layers
coastlines, borders, bathymetry, topography, place names, inland waters,
main roads and place names.

I could buy a WMS server including world map data, e.g. Demis or ArcIMS but
I don't really want that. We already use GeoServer and MapServer and would
rather add world map data. So I could:
1. buy world map data
2. create world map myself by assembling freely available data (gshhs,
etopo, vmap, srtm, ...).

I am afraid (2) will cost a lot of time. Regarding (1) I already found world
data for sale from DM Solutions and ThinkGeo, are there others? Which is
better?

There is surprisingly little information on the net about this issue, I
guess most people are either using public services or using commercial
packages.

My question is a general one: I wondered if anybody has encountered the same
problem and what solution has been chosen, what data sources when creating a
map yourself, other commercial data, what data is better than other, etc.
All comments welcome!

Reinoud Bokhorst





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



--
--
Reinoud Bokhorst
Advisor Oceanography  ICT

Tel:+31 (0)527 242 299
Fax:+31 (0)527 242 016
Website:www.bmtargoss.com

BMT ARGOSS b.v., Voorsterweg 28, 8316 PT, Marknesse, The Netherlands

(Postal address : PO Box 61, 8325 ZH, Vollenhove, The Netherlands)

Registered in The Netherlands, Registered no. 39060160.

Unless otherwise agreed by BMT ARGOSS in writing, all  work, services, goods or 
products supplied by BMT ARGOSS shall be subject to and governed by BMT 
ARGOSS’s own terms and conditions which are available for inspection from BMT 
ARGOSS on request.

E-mail confidentiality notice and disclaimer:
The contents of this e-mail and any attachments are intended for the use of the 
mail addressee(s) shown. If you are not that person, you are not allowed to 
read it, to take any action based upon it or to copy it, forward, distribute or 
disclose the contents of it and you should please delete it from your system. 
BMT ARGOSS does not accept liability for any errors or omissions in the context 
of this e-mail or its attachments which arise as a result of internet 
transmission, nor accept liability for statements which are those of the author 
and clearly not made on behalf of BMT ARGOSS.

Please consider the environmental impacts of printing this email, and only do 
so if really necessary

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


Re: [mapserver-users] draw line using mysql sahpe file

2012-03-07 Thread Paolo Corti
 But I desire only one of them using eq_id column but when I make sql
 statement as follows. I mean when I add sql statement it draws nothing.
 But be sure same eq_id comes to map file correctly to draw point of
 epicenter. There is no problem for it. Also I use EXPRESSION FOR CLASS
 also it doesn't draw line on the map. Previous map draws all, following
 draws nothing. How can I pass this handicap. Please let help me.
 LAYER
     NAME fault
     TYPE line
     STATUS default
   CONNECTIONTYPE OGR
   CONNECTION 'OGRVRTDataSource
   OGRVRTLayer name=sfault
 SrcDataSourceMYSQL:testogr,user=root,password=password123,host=localhost,port=3306,tables=sfault/SrcDataSource
 SrcSQLSELECT eq_id from sfault where eq_id like  %eq_id% /SrcSQL
 /OGRVRTLayer
 /OGRVRTDataSource'


In your SrcSQL you need to include the geometry field.
You have to include the GeometryField subelement as well.
Always try to use ogrinfo to check if the dataset is returning
expected results (specially for geometry)

best regards
P

-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] draw line using mysql sahpe file

2012-03-07 Thread Murat Beyhan
Dear Paolo,

Thanks for your advice, as you said just change select * form sfault
then it works fine...
wonderful

it took 2 weeks to see these result
many thanks
murat

On Wed, 2012-03-07 at 11:36 +0100, Paolo Corti wrote:
 SrcSQLSELECT eq_id from sfault where eq_id like  %eq_id% /SrcSQL


Murat BEYHAN 

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




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

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


[mapserver-users] GetLegendGraphic legend image generated as line for polygon without color

2012-03-07 Thread Oliver Christen
dear all

Im trying to find a way to tell Mapserver to render the legend icon
for a polygon layer with no color (transparent) (only outlinecolor) as
a polygon legend (rectangle) and not as a line legend (zig-zag line)

see below for my layer definition

the currently generated legend image is:
http://dev.camptocamp.com/files/mapserver/legend.png

I have tried to specify a
COLOR -1 -1 -1
to force Mapserver to handle the legend image as a polygon (rectangle)
without success.

any idea if there is a trick to force Mapserver to render the legend
as a rectangle and not as a zig-zag line ?

thanks in advance
Oliver

 LAYER
   NAME movd_cad_tpr_prf_s
   METADATA
 wms_title SitCdParcellaireLineDDPtt2_
   END
   TYPE POLYGON
   DATA MOVD_CAD/MOVD_CAD_TPR_PRF_S
   STATUS ON

   MAXSCALE 10001

   CLASS
 NAME Prf
 STYLE
   OUTLINECOLOR 255 0 0
   WIDTH 3
 END
   END
 END
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] GetLegendGraphic legend image generated as line for polygon without color

2012-03-07 Thread thomas bonfort
c.f. http://trac.osgeo.org/mapserver/ticket/4104

here's an ugly hack that *should* work (not tested):

CLASS
  STYLE
COLOR 0 0 0
OPACITY 0
  END
  STYLE
OUTLINECOLOR 255 0 0
WIDTH 3
  END
END

On Wed, Mar 7, 2012 at 13:26, Oliver Christen
oliver.chris...@camptocamp.com wrote:
 dear all

 Im trying to find a way to tell Mapserver to render the legend icon
 for a polygon layer with no color (transparent) (only outlinecolor) as
 a polygon legend (rectangle) and not as a line legend (zig-zag line)

 see below for my layer definition

 the currently generated legend image is:
 http://dev.camptocamp.com/files/mapserver/legend.png

 I have tried to specify a
 COLOR -1 -1 -1
 to force Mapserver to handle the legend image as a polygon (rectangle)
 without success.

 any idea if there is a trick to force Mapserver to render the legend
 as a rectangle and not as a zig-zag line ?

 thanks in advance
 Oliver

  LAYER
   NAME movd_cad_tpr_prf_s
   METADATA
     wms_title SitCdParcellaireLineDDPtt2_
   END
   TYPE POLYGON
   DATA MOVD_CAD/MOVD_CAD_TPR_PRF_S
   STATUS ON

   MAXSCALE 10001

   CLASS
     NAME Prf
     STYLE
       OUTLINECOLOR 255 0 0
       WIDTH 3
     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


Re: [mapserver-users] GetLegendGraphic legend image generated as line for polygon without color

2012-03-07 Thread Oliver Christen
excellent!
this works perfectly
thank you very much

On Wed, Mar 7, 2012 at 1:35 PM, thomas bonfort thomas.bonf...@gmail.com wrote:
 c.f. http://trac.osgeo.org/mapserver/ticket/4104

 here's an ugly hack that *should* work (not tested):

 CLASS
  STYLE
    COLOR 0 0 0
    OPACITY 0
  END
  STYLE
    OUTLINECOLOR 255 0 0
    WIDTH 3
  END
 END

 On Wed, Mar 7, 2012 at 13:26, Oliver Christen
 oliver.chris...@camptocamp.com wrote:
 dear all

 Im trying to find a way to tell Mapserver to render the legend icon
 for a polygon layer with no color (transparent) (only outlinecolor) as
 a polygon legend (rectangle) and not as a line legend (zig-zag line)

 see below for my layer definition

 the currently generated legend image is:
 http://dev.camptocamp.com/files/mapserver/legend.png

 I have tried to specify a
 COLOR -1 -1 -1
 to force Mapserver to handle the legend image as a polygon (rectangle)
 without success.

 any idea if there is a trick to force Mapserver to render the legend
 as a rectangle and not as a zig-zag line ?

 thanks in advance
 Oliver

  LAYER
   NAME movd_cad_tpr_prf_s
   METADATA
     wms_title SitCdParcellaireLineDDPtt2_
   END
   TYPE POLYGON
   DATA MOVD_CAD/MOVD_CAD_TPR_PRF_S
   STATUS ON

   MAXSCALE 10001

   CLASS
     NAME Prf
     STYLE
       OUTLINECOLOR 255 0 0
       WIDTH 3
     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


Re: [mapserver-users] Base map data for WMS

2012-03-07 Thread Paolo Corti
On Wed, Mar 7, 2012 at 10:16 AM, thomas bonfort
thomas.bonf...@gmail.com wrote:
 Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you
 have detailed instructions for how to setup mapserver as a wms server
 for openstreetmap imagery.
 As the basemap rendering isn't specially light on server ressources I
 would recommend using a tile cache and not expose the wms service
 directly. Mapcache can assemble the cached tiles to serve complete wms
 getmap requests should some of your clients not support tiled requests
 (see http://www2.terriscope.fr/geocache/demo/wms for a possible
 rendering style, you can select the singletile layer for untiled
 getmap requests).

for keeping things even much easier, and without the need to create a
dedicated GIS infrastructure, I think Reinoud could just start caching
the OSM service (for example with MapProxy, MapCache, GeoWebCache,
TileCache, there is a wide choice).
This should be compatible with the OSM license AFAIK.

P

-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Base map data for WMS

2012-03-07 Thread thomas bonfort
On Wed, Mar 7, 2012 at 16:00, Paolo Corti pco...@gmail.com wrote:
 On Wed, Mar 7, 2012 at 10:16 AM, thomas bonfort
 thomas.bonf...@gmail.com wrote:
 Here http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu you
 have detailed instructions for how to setup mapserver as a wms server
 for openstreetmap imagery.
 As the basemap rendering isn't specially light on server ressources I
 would recommend using a tile cache and not expose the wms service
 directly. Mapcache can assemble the cached tiles to serve complete wms
 getmap requests should some of your clients not support tiled requests
 (see http://www2.terriscope.fr/geocache/demo/wms for a possible
 rendering style, you can select the singletile layer for untiled
 getmap requests).

 for keeping things even much easier, and without the need to create a
 dedicated GIS infrastructure, I think Reinoud could just start caching
 the OSM service (for example with MapProxy, MapCache, GeoWebCache,
 TileCache, there is a wide choice).
 This should be compatible with the OSM license AFAIK.

One of the mentioned constraints was offline usage...


 P

 --
 Paolo Corti
 Geospatial software developer
 web: http://www.paolocorti.net
 twitter: @capooti
 skype: capooti
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Base map data for WMS

2012-03-07 Thread Paolo Corti

 One of the mentioned constraints was offline usage...


yes, but it is possible to pre-generate the tiles, though not sure if
this is feasible on just one server for the whole OSM dataset, but
maybe for much simpler datasets would be the way to go
P

-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Base map data for WMS

2012-03-07 Thread Paolo Corti
 By pregenerate I suppose you mean pre-download from the osm servers?
 This in the general case is prohibited by osm's TOS :
 http://wiki.openstreetmap.org/wiki/Tile_usage_policy

Yes, I am referring to the possibility to do the seeding of the
tiles, for example, referring to MapProxy, look at the mapproxy-seed
command [1].

Looking at the link you sent, the sentence Bulk downloading is
strongly discouraged. Do not download tiles unnecessarily. seems to
prohibit this use case, so you are definitely right. Thought, this
would be seem prohibited just for zoom levels = 17:

In particular, downloading significant areas of tiles at zoom levels
17 and higher for offline or later usage is forbidden without prior
consultation with a System Administrator. These tiles are generally
not available (cached) on the server in advance, and have to be
rendered specifically for those requests, putting an unjustified
burden on the available resources.
To avoid having your access blocked, please discuss your requirement
with system administrators either via their wiki pages or on the IRC
channel prior to starting.

In any case, as supposed in my previous email, it is not feasible to
seed the whole OSM on common cases normal sized hardware (unless you
want just to display maps to low zoom levels): on the OSM own servers
they are not caching it for zoom levels = 17 and I guess they have a
very large infrastructure.
But, could still be a viable approach for smaller datasets coming from
existing WMS that do not prohibit this kind of use.

thanks for pointing this out ;)
P


[1] http://mapproxy.org/docs/1.3.0/seed.html


-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] RasterLite

2012-03-07 Thread scott159
Hi,

I would like to use rasterlite database (test.db) with mapserver. The 
rasterlite (test-WGS84.db) is generated with mapcache.
How to configure mapserver to visualize these this database ? OGR connection ? 
What are parameters to add in mapfile ?

thanks

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


Re: [mapserver-users] RasterLite

2012-03-07 Thread thomas bonfort
the sqlite database generated by mapcache is not a rasterlite
database, it's a proprietary schema that allows access to individual
tiles.

--
thomas

On Wed, Mar 7, 2012 at 20:33,  scott...@free.fr wrote:
 Hi,

 I would like to use rasterlite database (test.db) with mapserver. The 
 rasterlite (test-WGS84.db) is generated with mapcache.
 How to configure mapserver to visualize these this database ? OGR connection 
 ? What are parameters to add in mapfile ?

 thanks

 scott
 ___
 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] RasterLite

2012-03-07 Thread Stephen Woodbridge

Thomas,

That said, it might be an interesting idea to provide a mapserver layer 
provider that can consume tiles directly from this as an idea.


-Steve

It's 61F here and sunny, feels like spring, maybe I'm just a little manic :)

On 3/7/2012 2:56 PM, thomas bonfort wrote:

the sqlite database generated by mapcache is not a rasterlite
database, it's a proprietary schema that allows access to individual
tiles.

--
thomas

On Wed, Mar 7, 2012 at 20:33,scott...@free.fr  wrote:

Hi,

I would like to use rasterlite database (test.db) with mapserver. The 
rasterlite (test-WGS84.db) is generated with mapcache.
How to configure mapserver to visualize these this database ? OGR connection ? 
What are parameters to add in mapfile ?

thanks

scott
___
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