Re: [mapserver-users] Problem creating WMS

2008-03-25 Thread Gregor Mosheh

bernardo wrote:
This program cannot read feature info in type "text/html", only 
"gml"


GML is for WFS, which is for sending vector data (as opposed to raster 
pictures of data) over the net. Perhaps you're interested in WFS and not 
WMS?


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Problem creating WMS

2008-03-25 Thread bernardo
Hello all:

I'm trying to create a WMS, but i need to use it with a client named "gvSIG". 
This program cannot read feature info in type "text/html", only "gml"

   METADATA
  "wms_title"   "Layer"
  "wms_srs" "EPSG:23030"
  "wms_abstract" "Layer"
  "wms_feature_info_mime_type"  "gml"
  #"wms_feature_info_mime_type"  "text/html"
  END

That i wanna do is to show a web page or url for "feature info".

Any ideas?

Bernardo Martín García
Director Técnico 
iNCARGiS, C.I.G., S.L. ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Different data in the same layer

2008-03-25 Thread Daniel Morissette

Paul Austin wrote:

Wow, that's very subtle easy to miss!

Is there then a way to not have the layers below water show up in the 
capabilities document?




No, unfortunately there is currently no way to have them not show up. 
However there was discussion of a way to make them non-selectable in an 
email to this list this morning:

http://lists.osgeo.org/pipermail/mapserver-users/2008-March/054997.html


The ability to hide layers in OGC services (WMS, WFS, etc.) sounds 
simple and has been discussed multiple times, but we could never come up 
with a clean way that addresses all the needs, that's why that's never 
been implemented. There are a few tickets in Trac talking about that.


Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Different data in the same layer

2008-03-25 Thread Paul Austin

Wow, that's very subtle easy to miss!

Is there then a way to not have the layers below water show up in the 
capabilities document?


Paul

René F. Viancos S. wrote:
Hi, Check the GROUP parameter in the MapFile Documentation. With this 
you can merge many layers in one grouped Layer.


Regards

René Viancos

2008/3/25, Paul Austin <[EMAIL PROTECTED] 
>:


What I would like to achieve is a WMS server where when the user
selects
a layer (e.g. Water) that they see Line and Polygon water features
rendered where the lines are in the database table water_lines and the
polygons are in the table water_polys. All the line features are
rendered first with the polygon features rendered on top of those.

Is it possible with mapserver to define a layer which gets data from
multiple sources? Sort of like nested layers but where the user
doesn't
see the nested layers.

An extension of this would to be also have different tables with
data at
different scales so the 1:20k data would be in water_20k_lines and the
1:250k would be in water_250k_lines.

Throughout all of this the user just sees the Water layer.

Cheers,
Paul
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org

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




--
René Felipe Viancos. 


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


[mapserver-users] How to use CADRG raster format in mapserver?

2008-03-25 Thread Dan Bleichman
 what command line should I add to my map file inorder to display
CADRG raster format?
 my RFP file is a.toc
 Thanks,
 Dan
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Different data in the same layer

2008-03-25 Thread René F. Viancos S.
Hi, Check the GROUP parameter in the MapFile Documentation. With this you
can merge many layers in one grouped Layer.

Regards

René Viancos

2008/3/25, Paul Austin <[EMAIL PROTECTED]>:
>
> What I would like to achieve is a WMS server where when the user selects
> a layer (e.g. Water) that they see Line and Polygon water features
> rendered where the lines are in the database table water_lines and the
> polygons are in the table water_polys. All the line features are
> rendered first with the polygon features rendered on top of those.
>
> Is it possible with mapserver to define a layer which gets data from
> multiple sources? Sort of like nested layers but where the user doesn't
> see the nested layers.
>
> An extension of this would to be also have different tables with data at
> different scales so the 1:20k data would be in water_20k_lines and the
> 1:250k would be in water_250k_lines.
>
> Throughout all of this the user just sees the Water layer.
>
> Cheers,
> Paul
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



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


[mapserver-users] Different data in the same layer

2008-03-25 Thread Paul Austin
What I would like to achieve is a WMS server where when the user selects 
a layer (e.g. Water) that they see Line and Polygon water features 
rendered where the lines are in the database table water_lines and the 
polygons are in the table water_polys. All the line features are 
rendered first with the polygon features rendered on top of those.


Is it possible with mapserver to define a layer which gets data from 
multiple sources? Sort of like nested layers but where the user doesn't 
see the nested layers.


An extension of this would to be also have different tables with data at 
different scales so the 1:20k data would be in water_20k_lines and the 
1:250k would be in water_250k_lines.


Throughout all of this the user just sees the Water layer.

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


Re: [mapserver-users] Re: Hiding overviews

2008-03-25 Thread Colin Wetherbee

Gregor Mosheh wrote:

Daniel Morissette wrote:

Well, in the meantime I patched the MapServer code a
little bit and made it being an Apache module, reading and parsing the
map file only once on startup.


Are you serious, mod_mapserver? Holy cow, that would be awesome!

I would be VERY interested to hear about stability with prefork MPM, 
whether it seems production grade, etc. I'd be glad to try it out as a 
patch to some of our systems (production but willing) and provide feedback.


+1

Bring it on. :)

Colin

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


Re: [mapserver-users] Mapserver and Microsoft SQL Server 2008

2008-03-25 Thread Colin Wetherbee

[EMAIL PROTECTED] wrote:

Well, my team is taking part in the Microsoft Imagine Cup competition
this year, we won our local leg using postgre, but now for the
international stage you can understand how having a Microsoft product
over an Opensource product will help us...


Fair enough.

I had never heard of the Imagine Cup, but it looks like a interesting 
competition.  Good luck!


And, keep PostgreSQL in mind for future projects! :)

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


Re: [mapserver-users] Mapserver and Microsoft SQL Server 2008

2008-03-25 Thread Colin Wetherbee

[EMAIL PROTECTED] wrote:

I'm looking for a way to switch our current postgre setup to SQL
Server 2008. I can get the map data into SQL I just need a way to
tell mapserver (in the mapfile) to look at the SQL 2008 database.


Just out of curiosity, are you at liberty to divulge any of the details 
that led you to switch from PostgreSQL to MS SQL?


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


Re: [mapserver-users] Mapserver and Microsoft SQL Server 2008

2008-03-25 Thread perfectmind
Well, my team is taking part in the Microsoft Imagine Cup competition this
year, we won our local leg using postgre, but now for the international
stage you can understand how having a Microsoft product over an Opensource
product will help us...

> [EMAIL PROTECTED] wrote:
>> I'm looking for a way to switch our current postgre setup to SQL
>> Server 2008. I can get the map data into SQL I just need a way to
>> tell mapserver (in the mapfile) to look at the SQL 2008 database.
>
> Just out of curiosity, are you at liberty to divulge any of the details
> that led you to switch from PostgreSQL to MS SQL?
>
> Colin
>



---
South Africas premier free email service - www.webmail.co.za 
--
For super low premiums, click here http://www.webmail.co.za/dd.pwm

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


Re: [mapserver-users] Mapserver and Microsoft SQL Server 2008

2008-03-25 Thread perfectmind
I have checked MS4W, but it's not there. I have never managed to compile
the source code before so even though it's there, I can't do anything
about it atm. :/


> [EMAIL PROTECTED] wrote:
>> I'm looking for a way to switch our current postgre setup to SQL Server
>> 2008. I can get the map data into SQL I just need a way to tell
>> mapserver
>> (in the mapfile) to look at the SQL 2008 database.
>>
>> I found a post relating to a plugin in order to do this:
>>
>> PLUGIN "C:\ms4w\plugins\msplugin_mssql2008.dll"
>>
>> http://mapserver.gis.umn.edu/development/rfc/ms-rfc-38
>>
>> But i cannot find the dll anywhere, does it exist, if not when will it
>> be
>> released?
>
> Chris,
>
> the MSSQL 2008 driver's source code is available from SVN
> (http://svn.osgeo.org/mapserver/trunk/mapserver/mapmssql2008.c). As to
> the compiled DLL, I don't know. Have you checked the MS4W package?
>
> Best regards,
> --
> 
> Andreas Albarello
> Analysis & SW Development
>
> Territorium Online srl/GmbH
> Via Buozzi Str. 12
> I 39100 Bolzano/Bozen
>
> Phone:  +39 0471 068611
> Fax:+39 0471 068619
>
> email: [EMAIL PROTECTED]
> web:   http://www.territoriumonline.com
> 
>



---
South Africas premier free email service - www.webmail.co.za 
--
For super low premiums, click here http://www.webmail.co.za/dd.pwm

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


Re: [mapserver-users] Re: Hiding overviews

2008-03-25 Thread Gregor Mosheh

Daniel Morissette wrote:

Well, in the meantime I patched the MapServer code a
little bit and made it being an Apache module, reading and parsing the
map file only once on startup.


Are you serious, mod_mapserver? Holy cow, that would be awesome!

I would be VERY interested to hear about stability with prefork MPM, 
whether it seems production grade, etc. I'd be glad to try it out as a 
patch to some of our systems (production but willing) and provide feedback.


--
Gregor Mosheh / Greg Allensworth, BS, A+
System Administrator
HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
 only if you can restore." - AMANDA
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Re: Hiding overviews

2008-03-25 Thread Daniel Morissette

Eichner, Andreas - SID-NLK wrote:


[...] Well, in the meantime I patched the MapServer code a
little bit and made it being an Apache module, reading and parsing the
map file only once on startup. This is much faster than the good old CGI
and seems to work fine...



Andreas,

What was involved in setting up an Apache module? There was talk about 
doing that as an experiment a few weeks ago on the mapserver-dev list. 
If you are interested in sharing what you've done then I'm sure that 
would generate some interest. Perhaps you could file a ticket and attach 
a patch and some notes?


Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Version 4.6.2 binaries

2008-03-25 Thread Jeff McKenna
Older source and windows binaries are still available at: 
http://www.maptools.org/php_mapscript/index.phtml?page=download-archives.html


-jeff




Juan Luis Cardoso wrote:


Hi 


How can i get the binary files of the Mapserver 4.6.2 version?
I can`t find them in the site.
Thanks in advance.

Juan Luis Cardoso


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


Re: [mapserver-users] Mapserver and Microsoft SQL Server 2008

2008-03-25 Thread Andreas Albarello

[EMAIL PROTECTED] wrote:

I'm looking for a way to switch our current postgre setup to SQL Server
2008. I can get the map data into SQL I just need a way to tell mapserver
(in the mapfile) to look at the SQL 2008 database.

I found a post relating to a plugin in order to do this:

PLUGIN "C:\ms4w\plugins\msplugin_mssql2008.dll"

http://mapserver.gis.umn.edu/development/rfc/ms-rfc-38

But i cannot find the dll anywhere, does it exist, if not when will it be
released?


Chris,

the MSSQL 2008 driver's source code is available from SVN 
(http://svn.osgeo.org/mapserver/trunk/mapserver/mapmssql2008.c). As to 
the compiled DLL, I don't know. Have you checked the MS4W package?


Best regards,
--

Andreas Albarello
Analysis & SW Development

Territorium Online srl/GmbH
Via Buozzi Str. 12
I 39100 Bolzano/Bozen

Phone:  +39 0471 068611
Fax:+39 0471 068619

email: [EMAIL PROTECTED]
web:   http://www.territoriumonline.com

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


Re: [mapserver-users] Version 4.6.2 binaries

2008-03-25 Thread Sara Yurman
Yes, Olga, I'd planned to do it.  When do we need it completed?  I'm neck deep 
in the US Census, but can give it time this weekend. 

Sara
 
 Sara Yurman
 Spatial Focus, Inc.
On Tue Mar 25 13:00 , "Juan Luis Cardoso"  sent:  > > >Hi  > >How can i get 
the binary files of the Mapserver 4.6.2 version? >I can`t find them in the 
site. >Thanks in advance. > >Juan Luis Cardoso > 
>___ >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] Version 4.6.2 binaries

2008-03-25 Thread Juan Luis Cardoso


Hi 

How can i get the binary files of the Mapserver 4.6.2 version?
I can`t find them in the site.
Thanks in advance.

Juan Luis Cardoso

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


Re: AW: [MAPSERVER-USERS] Hiding overviews

2008-03-25 Thread Daniel Morissette

Daniel Morissette wrote:
I had a quick look at this thread and it seems to me at first that using 
GROUP in all layers corresponding to the same set of overviews should 
allow you to turn all of them on/off at once.




I built a small test case and it seems that the root problem is that the 
function msOWSMakeAllLayersUnique() produces an exception if any layer 
is missing a NAME. In order to allow what you want and make the layer 
name really optional we would need to get rid of that exception.


If we modify msOWSMakeAllLayersUnique() to 'continue' the loop instead 
of returning an exception when it encounters a NULL layer name as follows...


--- mapows.c(revision 7477)
+++ mapows.c(working copy)
@@ -141,10 +169,7 @@
   {
   if (GET_LAYER(map, i)->name == NULL || GET_LAYER(map, 
j)->name == NULL)

   {
-  msSetError(MS_MISCERR,
- "At least one layer is missing a name in map 
file.",

- "msOWSMakeAllLayersUnique()");
-  return MS_FAILURE;
+  continue;
   }
   if (strcasecmp(GET_LAYER(map, i)->name, GET_LAYER(map, 
j)->name) == 0 &&

   msRenameLayer((GET_LAYER(map, j)), ++count) != MS_SUCCESS)



... then the following mapfile block...

LAYER
  NAME layer1
  METADATA
"wms_title" "Layer 1"
"wms_group_title" "Group 1"
  END
  GROUP group1
  MINSCALE 0
  MAXSCALE 1
  TYPE RASTER
  STATUS ON
  DATA layer1.tif
END

LAYER
  # NAME intentionally omitted...
  METADATA
"wms_title" "Layer 2"
  END
  GROUP group1
  MINSCALE 10001
  MAXSCALE 10
  TYPE RASTER
  STATUS ON
  DATA layer2.tif
END


... produces the following output in GetCapabilities ... this whole 
group can be turned on/off at once using LAYERS=group1 in the GetMap 
request. Notice that layer 2 has no name in GetCapabilities which is 
what we wanted. Omitting the layer name for layer 1 as well would make 
it non-selectable as well:



  group1
  Group 1
  group1
  
layer1

Layer 1

  
  


Layer 2

  




We would also need to update the WARNING text to say "optional" instead 
of Mandatory.


If this is indeed what you were trying to achieve then please file a 
ticket and I'll make the required changes in MapServer 5.2.


Daniel
--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: AW: [MAPSERVER-USERS] Hiding overviews

2008-03-25 Thread Daniel Morissette
I had a quick look at this thread and it seems to me at first that using 
GROUP in all layers corresponding to the same set of overviews should 
allow you to turn all of them on/off at once.


With respect to this proposed change, I don't see why it would be needed 
since the layer.name is optional and if omitted in your layer in the 
mapfile will simply be omitted in the GetCapabilities, giving the 
behavior that you are looking for. The wms_name is a metadata used by 
CONNECTIONTYPE WMS only AFAIK, it should not be used by the WMS server 
code unless I'm mistaken.


I'll have a deeper look and try to better understand the problem and get 
back to you all.


Daniel


Pål Kristensen wrote:
Hi! 

Did you commit this change in the MapServer trunk? 


PS! Has any of you developers seen this thread, and would it be feasible to
add the patch to the trunk?




Eichner, Andreas - SID-NLK wrote:
 


Ok guys. I examined the situation and came to the conclusion that it is
a bug in MapServer.
In the source of mapserver v5.0.2, file mapwms.c, line 1071:


msOWSPrintEncodeParam(stdout, "LAYER.NAME", lp->name, OWS_WARN,
 "%s\n", NULL);

should really be


msOWSPrintEncodeMetadata(stdout, &(lp->metadata), "MO", "name",

OWS_NOERR,

"%s\n", NULL);

since the code conflicts with the comment in the code on line 1747 in
the same file which states:
  "Layer Name is optional but title is mandatory."
Which exactly agrees with the specs which states at page 25 of v1.3.0:

"7.2.4.6.2 Title
A  is mandatory for all layers; ..." and

"7.2.4.6.3 Name
If, and only if, a layer has a , then it is a map layer that can
be requested by using that Name in the LAYERS parameter of a GetMap
request. A Layer that contains a  element is referred to as a
"named layer" in this International Standard. If the layer has a Title
but no Name, then that layer is only a category title for all the layers
nested within. A server that advertises a Layer containing a Name
element shall be able to accept that Name as the value of LAYERS
argument in a GetMap request and return the corresponding map. A client
shall not attempt to request a layer that has a Title but no Name."

IMHO this means you can ommit the  but have to provide the
. And if the layer has no name it can simply not be requested in
a GetMap-Request. If I change the code like above I have to provide a
"wms_name" in the METADATA part of the MAP file to make the layer
queryable. If I ommit "wms_name" then the layer get's no  and can
therefore not be requested by the client. IMHO it's then up to the
server whether or not to render that layer which is exactly what I want.
For overviews I want multiple layers where only one is active for a
given scale but which one is up to the server. Therefore a client should
not be able to explicitly request one of them. Instead I group those
layers in a named layer by a GROUP clause.

So please check this out. May be we should file a bug report on that.
But I think someone else should confirm this...


Best regards,

Andreas Eichner
 
___

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







--
Daniel Morissette
http://www.mapgears.com/
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Font sizing problem in MS 5 (with inline feature)

2008-03-25 Thread Doyon, Jean-Francois
G'day,

Still on the path to upgrade to MS 5 and a couple of problems left ...

The one that preoccupies me right now is the fact that I have a truetype label 
that won't size properly.

The layer is defined as:

LAYER
NAME "northarrow"
STATUS OFF
TYPE ANNOTATION
LABELCACHE OFF
MINSCALE 0
MAXSCALE 500.1
TRANSFORM FALSE
GROUP north_arrow
METADATA
"checkable""0"
"legend_order""-1"
"LEGEND_GROUP" "base"
END
FEATURE
POINTS 40 40 END
TEXT "+"
END
CLASS
LABEL
COLOR 0 0 0
TYPE truetype
FONT esri_1
SIZE 65
FORCE TRUE
OUTLINECOLOR 255 255 255
  END
END
  END

This puts a north arrow in the top left corner of the map image.  The LABEL 
ANGLE is set dynamically via URL.  I don't recall exactly why we used a label 
instead of a symbol, but there must've been a good reason ...

An example in MS 4.8.1 can be viewed here:

http://atlas.nrcan.gc.ca/site/english/maps/topo/map?mapsize=428+380&scale=500.00&mapxy=1516867.58194739+-209769.54479788843&mode=zoomin&layers=north_arrow%20other_features%20million_grid%20t50k_grid%20grid_50k_3%20roads%20hydrography%20boundary%20builtup%20vegetation%20populated_places%20railway%20power_network%20manmade_features%20designated_areas%20water_features%20water_saturated_soils%20relief%20contours%20toponymy%20contour%20nodata_ntdb_50k

In MS 5, the "label" appears incredibly small (I can barely make out it's 
shape, it's a few pixels big), and playing with SIZE seems to do nothing at 
all.  I've changed the TEXT value, and the label seems to change shape but 
still no change in size.

Anyone know what's going on?  I didn't see any documented changes that look 
like they should affect this ...

Thanks,

Jean-François Doyon
Applications Development Solutions | Solutions de développement d'applications
IT Support Services | Services de support TI
Information Technology Services | Services de la technologie d'information
Shared Services Office | Bureau des services partagés
Corporate Management and Services Sector | Secteur de la gestion et des 
services intégrés
Natural Resources Canada | Ressources naturelles Canada
Ottawa, Canada K1A 0E9
[EMAIL PROTECTED]
Telephone | Téléphone 613-992-4902
Facsimile | Télécopieur 613-995-3252
Teletypewriter | Téléimprimeur 613-996-4397
Government of Canada | Gouvernement du Canada

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


Re: [mapserver-users] tile server

2008-03-25 Thread Milo van der Linden

Or (and this sounds more appealing to me)
Patch the OSM API to use TMS style tiles.

I have a local OSM server.

Christopher Schmidt schreef:

On Tue, Mar 25, 2008 at 12:08:13PM +0100, Milo van der Linden wrote:
  

Hello All,

I recovered the post where I found how remote tiles from a WMS-C cache 
are supported here:

http://wiki.openaerialmap.org/Using_With_MapServer

Now, what I want to use this structure for is to get OpenStreetMap maps 
served as layers in my mapserver. OpenStreetMap uses mapnik to serve the 
tile layers, they are accessed in the form:


http://tile.openstreetmap.org/7/63/42.png

How would an xml file be set up to serve this as a layer?



You can't. OSM uses "Google" style tile indexes, OpenAerialMap has
support for "TMS" style tile indexes. GDAL only supports the latter. So
the answer is "patch GDAL".

Regards,
  


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


Re: AW: [MAPSERVER-USERS] Hiding overviews

2008-03-25 Thread Pål Kristensen

Hi! 

Did you commit this change in the MapServer trunk? 

PS! Has any of you developers seen this thread, and would it be feasible to
add the patch to the trunk?




Eichner, Andreas - SID-NLK wrote:
> 
>  
> 
> Ok guys. I examined the situation and came to the conclusion that it is
> a bug in MapServer.
> In the source of mapserver v5.0.2, file mapwms.c, line 1071:
> 
>> msOWSPrintEncodeParam(stdout, "LAYER.NAME", lp->name, OWS_WARN,
>>  "%s\n", NULL);
> 
> should really be
> 
>> msOWSPrintEncodeMetadata(stdout, &(lp->metadata), "MO", "name",
> OWS_NOERR,
>> "%s\n", NULL);
> 
> since the code conflicts with the comment in the code on line 1747 in
> the same file which states:
>   "Layer Name is optional but title is mandatory."
> Which exactly agrees with the specs which states at page 25 of v1.3.0:
> 
> "7.2.4.6.2 Title
> A  is mandatory for all layers; ..." and
> 
> "7.2.4.6.3 Name
> If, and only if, a layer has a , then it is a map layer that can
> be requested by using that Name in the LAYERS parameter of a GetMap
> request. A Layer that contains a  element is referred to as a
> "named layer" in this International Standard. If the layer has a Title
> but no Name, then that layer is only a category title for all the layers
> nested within. A server that advertises a Layer containing a Name
> element shall be able to accept that Name as the value of LAYERS
> argument in a GetMap request and return the corresponding map. A client
> shall not attempt to request a layer that has a Title but no Name."
> 
> IMHO this means you can ommit the  but have to provide the
> . And if the layer has no name it can simply not be requested in
> a GetMap-Request. If I change the code like above I have to provide a
> "wms_name" in the METADATA part of the MAP file to make the layer
> queryable. If I ommit "wms_name" then the layer get's no  and can
> therefore not be requested by the client. IMHO it's then up to the
> server whether or not to render that layer which is exactly what I want.
> For overviews I want multiple layers where only one is active for a
> given scale but which one is up to the server. Therefore a client should
> not be able to explicitly request one of them. Instead I group those
> layers in a named layer by a GROUP clause.
> 
> So please check this out. May be we should file a bug report on that.
> But I think someone else should confirm this...
> 
> 
> Best regards,
> 
> Andreas Eichner
>  
> ___
> 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/Hiding-overviews-tp15845320p16274328.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] tile server

2008-03-25 Thread Christopher Schmidt
On Tue, Mar 25, 2008 at 12:08:13PM +0100, Milo van der Linden wrote:
> Hello All,
> 
> I recovered the post where I found how remote tiles from a WMS-C cache 
> are supported here:
> http://wiki.openaerialmap.org/Using_With_MapServer
> 
> Now, what I want to use this structure for is to get OpenStreetMap maps 
> served as layers in my mapserver. OpenStreetMap uses mapnik to serve the 
> tile layers, they are accessed in the form:
> 
> http://tile.openstreetmap.org/7/63/42.png
> 
> How would an xml file be set up to serve this as a layer?

You can't. OSM uses "Google" style tile indexes, OpenAerialMap has
support for "TMS" style tile indexes. GDAL only supports the latter. So
the answer is "patch GDAL".

Regards,
-- 
Christopher Schmidt
MetaCarta
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Mapserver and Microsoft SQL Server 2008

2008-03-25 Thread perfectmind
Hi

I'm looking for a way to switch our current postgre setup to SQL Server
2008. I can get the map data into SQL I just need a way to tell mapserver
(in the mapfile) to look at the SQL 2008 database.

I found a post relating to a plugin in order to do this:

PLUGIN "C:\ms4w\plugins\msplugin_mssql2008.dll"

http://mapserver.gis.umn.edu/development/rfc/ms-rfc-38

But i cannot find the dll anywhere, does it exist, if not when will it be
released?

Any additional help would be appreciated.
Thanks
Chris


---
South Africas premier free email service - www.webmail.co.za 
--
For super low premiums, click here http://www.webmail.co.za/dd.pwm

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


Re: [mapserver-users] tile server

2008-03-25 Thread Milo van der Linden

Hello All,

I recovered the post where I found how remote tiles from a WMS-C cache 
are supported here:

http://wiki.openaerialmap.org/Using_With_MapServer

Now, what I want to use this structure for is to get OpenStreetMap maps 
served as layers in my mapserver. OpenStreetMap uses mapnik to serve the 
tile layers, they are accessed in the form:


http://tile.openstreetmap.org/7/63/42.png

How would an xml file be set up to serve this as a layer?

Main purpose is to expand the usability of openstreetmap into the 
desktop-GIS world by using mapserver as intermediate WMS server.





Ivan Mincik schreef:

Hi Milo,
I don't know the solution, but I will be very interested  how to do it. So, if 
You find solution yourself, please, paste it to the mailinglist.


Ivan 


On Tuesday 25 March 2008 07:32, Milo van der Linden wrote:
  

Hello list,

a little while ago I read somewhere that it is possible to connect a
tileserver via a virtual layer to mapserver. The trick was to store an
xml file and create a layer definition in the mapfile that pointed to
the tile server with information about the tilesize, zoomlevels and so on.

I can't seem to find it anymore...

Can anyone point me to a succesfull tileserver connection sample?

I don't mean running mapserver as tileserver, but attaching a layer from
a tileserver.

Kind regards,

Milo
___
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] tile server

2008-03-25 Thread Ivan Mincik
Hi Milo,
I don't know the solution, but I will be very interested  how to do it. So, if 
You find solution yourself, please, paste it to the mailinglist.

Ivan 

On Tuesday 25 March 2008 07:32, Milo van der Linden wrote:
> Hello list,
>
> a little while ago I read somewhere that it is possible to connect a
> tileserver via a virtual layer to mapserver. The trick was to store an
> xml file and create a layer definition in the mapfile that pointed to
> the tile server with information about the tilesize, zoomlevels and so on.
>
> I can't seem to find it anymore...
>
> Can anyone point me to a succesfull tileserver connection sample?
>
> I don't mean running mapserver as tileserver, but attaching a layer from
> a tileserver.
>
> Kind regards,
>
> Milo
> ___
> 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] Re: Hiding overviews

2008-03-25 Thread Eichner, Andreas - SID-NLK
Hello Armin,

> If you don't mind using Python MapScript instead of the Mapserver CGI
then you 
> could try to use this Python class that uses the OWSRequest 
> functionality of Mapserver/Mapscript:

although this is a nice approach, I can't go with Python. We need a high
performance WMS and I believe that the snake can not fulfill our
expectations. Well, in the meantime I patched the MapServer code a
little bit and made it being an Apache module, reading and parsing the
map file only once on startup. This is much faster than the good old CGI
and seems to work fine...

> It modifies the map object before the output of the GetCapabilities 
> response. For a group of layers always the first one in the map file
is 
> used as the one visible to the clients for the capabilities. In 
> addition, only the layers that have a 'ows_title' metadata tag are 
> included in the response.

In an earlier mail in this thread I stated that IMHO there's a problem
with the MapServer code. I modified the stated things and now it does
the same thing: only giving a  if 'ows_title' metadata is given.

> And with an Apache rewrite rule the URL's can 
> be set to look a bit nicer. Some more details are in the README file.

Well, another annoying thing which is resolved by the module solution.
Now the Apache setup is something like:

 
   SetHandler "wms"
   WMS_Map "/srv/wms/wms.map"
 

resulting in a simple URI like
http://localhost/wms?service=WMS&request=GetCapabilities. So with little
work I solved three issues for me: speed, URI niceness and overview
layer grouping. Well, several nice ideas came to daylight but I will go
with mine.

Thanks to you and all helpers involved.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users