[mapserver-users] Formatting Labels

2010-02-22 Thread Stephen Davies
G'day.

I see a number of queries about this facility. Most get replies saying that it 
can be done at the PostGIS level.

Could somebody please give me an example of how to do this.

Cheers and thanks,
Stephen Davies
-- 
=
Stephen Davies Consulting P/L Voice: 08-8177 1595
Adelaide, South Australia.Fax  : 08-8177 0133
Computing & Network solutions.Mobile:040 304 0583
  VoIP:sip:1132...@sip1.bbpglobal.com

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


[mapserver-users] OtherSRS is not shown in WFS Capabilities

2010-02-22 Thread Mauricio Pazos
Hello everyone, 

I have configured the WFS  to provide many SRS as output like is shown in the 
example http://www.mapserver.org/ogc/wfs_server.html.

This is part of the mapfile


MAP
NAME "WFS"
STATUS ON
SIZE 400 300
EXTENT 53 474 61 482
UNITS METERS
IMAGECOLOR 255 255 255
WEB
METADATA
"wfs_title" "WFS"
"wfs_abstract"  "Web Feature Service Default TEST"
"wfs_onlineresource""http://192.168.2.22/cgi-bin/wfs?";
"wfs_srs"   "EPSG:23030 EPSG:25830 EPSG:4326"
END
END

PROJECTION
"init=epsg:23030"
END

LAYER
NAME "RIVER_BASIN"
METADATA
"wfs_title" "RIVER_BASIN"
"wfs_abstract"  "River Basin"
"wfs_extent""515055 474 624945 481"
"gml_featureid" "ID"
"gml_include_items" "all"
END
TYPE POLYGON
STATUS ON
CONNECTIONTYPE oraclespatial
CONNECTION "WFSNEW/ax...@orcl"
DATA "GEOM FROM VRIVER_BASIN USING UNIQUE ID SRID 23030 VERSION 10g"
PROJECTION
  "init=epsg:23030"
END
DUMP TRUE
CLASS
STYLE
OUTLINECOLOR 0 0 0
COLOR 120 120 120
END
END
END # RIVER_BASIN

As you can see there are three SRSs specified "EPSG:23030 EPSG:25830 EPSG:4326" 
as output in the web metadata section, but the capabilities operation present 
only the first (EPSG:23030) as DefaultSRS element. 

This is part of the capability response

http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";>

...




Query



 RIVER_BASIN
 RIVER_BASIN
 River Basin

 EPSG:23030


 text/xml; subtype=gml/3.1.1


...





I think it should present 
EPSG:23030
EPSG:25830
EPSG:4326

What is wrong? Any idea?

Thanks in advance. 

-- 
Mauricio Pazos
www.axios.es
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Symbol problem (trunked) using tiled OpenLayers...

2010-02-22 Thread Paul james
Hello guys...
My annotation layer :

LAYER
NAME Test
METADATA
"wms_title""Test"
"wms_feature_info_mime_type" "text/html"
END
TYPE ANNOTATION
STATUS ON
INCLUDE "Connection.map"
DATA "..."
LABELITEM 'road'
CLASS
TEMPLATE "dummy"
STYLE
SYMBOL 'RoadFed'
END
LABEL
TYPE TRUETYPE
FONT Arial
SIZE 7
COLOR 70 70 70
MINDISTANCE 100
MINFEATURESIZE 10
PARTIALS FALSE
BUFFER 10
END
END
END


Some symbol are trunked... See the image attached...
Any idea?

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


Re: [mapserver-users] Symbol problem (trunked) using tiled OpenLayers...

2010-02-22 Thread Stephen Woodbridge

Paul are you doing tiles?

-Steve W

Paul james wrote:

Hello guys...
My annotation layer :

LAYER
NAME Test
METADATA
"wms_title""Test" 
"wms_feature_info_mime_type" "text/html"

END
TYPE ANNOTATION
STATUS ON
INCLUDE "Connection.map"
DATA "..."
LABELITEM 'road'
CLASS
TEMPLATE "dummy"
STYLE
SYMBOL 'RoadFed'
END
LABEL
TYPE TRUETYPE
FONT Arial
SIZE 7
COLOR 70 70 70
MINDISTANCE 100
MINFEATURESIZE 10
PARTIALS FALSE
BUFFER 10
END
END   
END



Some symbol are trunked... See the image attached...
Any idea?

Thanks






___
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] Symbol problem (trunked) using tiled OpenLayers...

2010-02-22 Thread Paul james
Yes...
Is there any way to "fix" that ? Because openlayers without tiles is pretty
useless for me...

Thanks

On Mon, Feb 22, 2010 at 3:08 PM, Stephen Woodbridge  wrote:

> Paul are you doing tiles?
>
> -Steve W
>
> Paul james wrote:
>
>> Hello guys...
>> My annotation layer :
>>
>> LAYER
>>NAME Test
>>METADATA
>>"wms_title""Test""wms_feature_info_mime_type"
>> "text/html"
>>END
>>TYPE ANNOTATION
>>STATUS ON
>>INCLUDE "Connection.map"
>>DATA "..."
>>LABELITEM 'road'
>>CLASS
>>TEMPLATE "dummy"
>>STYLE
>>SYMBOL 'RoadFed'
>>END
>>LABEL
>>TYPE TRUETYPE
>>FONT Arial
>>SIZE 7
>>COLOR 70 70 70
>>MINDISTANCE 100
>>MINFEATURESIZE 10
>>PARTIALS FALSE
>>BUFFER 10
>>END
>>END  END
>>
>>
>> Some symbol are trunked... See the image attached...
>> Any idea?
>>
>> Thanks
>>
>> 
>>
>>
>> 
>>
>> ___
>> 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] Symbol problem (trunked) using tiled OpenLayers...

2010-02-22 Thread thomas bonfort
google for labelcache_map_edge_buffer

--
thomas

On Mon, Feb 22, 2010 at 13:29, Paul james  wrote:
> Yes...
> Is there any way to "fix" that ? Because openlayers without tiles is pretty
> useless for me...
>
> Thanks
>
> On Mon, Feb 22, 2010 at 3:08 PM, Stephen Woodbridge
>  wrote:
>>
>> Paul are you doing tiles?
>>
>> -Steve W
>>
>> Paul james wrote:
>>>
>>> Hello guys...
>>> My annotation layer :
>>>
>>> LAYER
>>>        NAME Test
>>>        METADATA
>>>            "wms_title"    "Test"            "wms_feature_info_mime_type"
>>> "text/html"
>>>        END
>>>        TYPE ANNOTATION
>>>        STATUS ON
>>>        INCLUDE "Connection.map"
>>>        DATA "..."
>>>        LABELITEM 'road'
>>>        CLASS
>>>            TEMPLATE "dummy"
>>>            STYLE
>>>                SYMBOL 'RoadFed'
>>>            END
>>>            LABEL
>>>                TYPE TRUETYPE
>>>                FONT Arial
>>>                SIZE 7
>>>                COLOR 70 70 70
>>>                MINDISTANCE 100
>>>                MINFEATURESIZE 10
>>>                PARTIALS FALSE
>>>                BUFFER 10
>>>            END
>>>        END      END
>>>
>>>
>>> Some symbol are trunked... See the image attached...
>>> Any idea?
>>>
>>> Thanks
>>>
>>> 
>>>
>>>
>>> 
>>>
>>> ___
>>> 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] small maps of alaska and hawaii

2010-02-22 Thread Julie Knoll
Hi, I am working on a site that displays thematic data for the United
States, and I would like to include small maps for Alaska and Hawaii in the
corners of the main map, rather than having to zoom so far out to see them.
Does anyone have any suggestions about the best way of going about doing
this? Thanks.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] small maps of alaska and hawaii

2010-02-22 Thread Stephen Woodbridge

Julie Knoll wrote:
Hi, I am working on a site that displays thematic data for the United 
States, and I would like to include small maps for Alaska and Hawaii in 
the corners of the main map, rather than having to zoom so far out to 
see them.  Does anyone have any suggestions about the best way of going 
about doing this? Thanks.


This is really a composition problem where you need to compose a single 
image from multiple separate images. The answer really depends on what 
media you are using like html, pdf, etc.


If you are trying to do this in a web application I would recommend an 
approach some like:


Using PHP/Mapscript, generate you three images and then use PHP GD to 
compose the three images into a single image and then return that to the 
browser. You can use a similar approach if you are using PDF depending 
on the PDF lib you are using.


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


Re: [mapserver-users] Symbol problem (trunked) using tiled OpenLayers...

2010-02-22 Thread Stephen Woodbridge

Paul james wrote:

Yes...
Is there any way to "fix" that ? Because openlayers without tiles is 
pretty useless for me...


Maybe, try adding this to you mapfile:

  WEB
METADATA
  labelcache_map_edge_buffer "-10"
END
  END

and see if that helps.

-Steve


Thanks

On Mon, Feb 22, 2010 at 3:08 PM, Stephen Woodbridge 
mailto:wood...@swoodbridge.com>> wrote:


Paul are you doing tiles?

-Steve W

Paul james wrote:

Hello guys...
My annotation layer :

LAYER
   NAME Test
   METADATA
   "wms_title""Test"  
 "wms_feature_info_mime_type" "text/html"

   END
   TYPE ANNOTATION
   STATUS ON
   INCLUDE "Connection.map"
   DATA "..."
   LABELITEM 'road'
   CLASS
   TEMPLATE "dummy"
   STYLE
   SYMBOL 'RoadFed'
   END
   LABEL
   TYPE TRUETYPE
   FONT Arial
   SIZE 7
   COLOR 70 70 70
   MINDISTANCE 100
   MINFEATURESIZE 10
   PARTIALS FALSE
   BUFFER 10
   END
   END  END


Some symbol are trunked... See the image attached...
Any idea?

Thanks






___
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] Symbol problem (trunked) using tiled OpenLayers...

2010-02-22 Thread Paul james
That worked...

Thanks all!

Paul

On Mon, Feb 22, 2010 at 4:37 PM, Stephen Woodbridge  wrote:

> Paul james wrote:
>
>> Yes...
>> Is there any way to "fix" that ? Because openlayers without tiles is
>> pretty useless for me...
>>
>
> Maybe, try adding this to you mapfile:
>
>  WEB
>METADATA
>  labelcache_map_edge_buffer "-10"
>END
>  END
>
> and see if that helps.
>
> -Steve
>
>  Thanks
>>
>>
>> On Mon, Feb 22, 2010 at 3:08 PM, Stephen Woodbridge <
>> wood...@swoodbridge.com > wrote:
>>
>>Paul are you doing tiles?
>>
>>-Steve W
>>
>>Paul james wrote:
>>
>>Hello guys...
>>My annotation layer :
>>
>>LAYER
>>   NAME Test
>>   METADATA
>>   "wms_title""Test"
>> "wms_feature_info_mime_type" "text/html"
>>   END
>>   TYPE ANNOTATION
>>   STATUS ON
>>   INCLUDE "Connection.map"
>>   DATA "..."
>>   LABELITEM 'road'
>>   CLASS
>>   TEMPLATE "dummy"
>>   STYLE
>>   SYMBOL 'RoadFed'
>>   END
>>   LABEL
>>   TYPE TRUETYPE
>>   FONT Arial
>>   SIZE 7
>>   COLOR 70 70 70
>>   MINDISTANCE 100
>>   MINFEATURESIZE 10
>>   PARTIALS FALSE
>>   BUFFER 10
>>   END
>>   END  END
>>
>>
>>Some symbol are trunked... See the image attached...
>>Any idea?
>>
>>Thanks
>>
>>
>>  
>>
>>
>>
>>  
>>
>>___
>>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: Symbol problem (trunked) using tiled OpenLayers...

2010-02-22 Thread stefanoferri

Im sill having problems  labelcache_map_edge_buffer "-10" remove the
labels close to the border... but i would like to have these icons... :(...
Why if i use wms instead of &mode=tile&tilemode=gmap&tile it works fine ?
thanks

-- 
View this message in context: 
http://n2.nabble.com/Symbol-problem-trunked-using-tiled-OpenLayers-tp4613765p4614720.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] OtherSRS is not shown in WFS Capabilities

2010-02-22 Thread Yewondwossen Assefa

Hi There,

There is a trac bug on this issue 
(http://trac.osgeo.org/mapserver/ticket/3227) and should be fixed in the 
next couple of weeks. It would be good if you can add your name to the 
bug to get an update on it and report any issues.


best regards,

Mauricio Pazos wrote:
Hello everyone, 

I have configured the WFS  to provide many SRS as output like is shown in the 
example http://www.mapserver.org/ogc/wfs_server.html.


This is part of the mapfile


MAP
NAME "WFS"
STATUS ON
SIZE 400 300
EXTENT 53 474 61 482
UNITS METERS
IMAGECOLOR 255 255 255
WEB
METADATA
"wfs_title" "WFS"
"wfs_abstract"  "Web Feature Service Default TEST"
"wfs_onlineresource""http://192.168.2.22/cgi-bin/wfs?";
"wfs_srs"   "EPSG:23030 EPSG:25830 EPSG:4326"
END
END

PROJECTION
"init=epsg:23030"
END

LAYER
NAME "RIVER_BASIN"
METADATA
"wfs_title" "RIVER_BASIN"
"wfs_abstract"  "River Basin"
"wfs_extent""515055 474 624945 481"
"gml_featureid" "ID"
"gml_include_items" "all"
END
TYPE POLYGON
STATUS ON
CONNECTIONTYPE oraclespatial
CONNECTION "WFSNEW/ax...@orcl"
DATA "GEOM FROM VRIVER_BASIN USING UNIQUE ID SRID 23030 VERSION 10g"
PROJECTION
  "init=epsg:23030"
END
DUMP TRUE
CLASS
STYLE
OUTLINECOLOR 0 0 0
COLOR 120 120 120
END
END
END # RIVER_BASIN

As you can see there are three SRSs specified "EPSG:23030 EPSG:25830 EPSG:4326" 
as output in the web metadata section, but the capabilities operation present 
only the first (EPSG:23030) as DefaultSRS element. 


This is part of the capability response

xsi:schemaLocation="http://www.opengis.net/wfs 
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";>


...




Query



 RIVER_BASIN
 RIVER_BASIN
 River Basin

 EPSG:23030


 text/xml; subtype=gml/3.1.1


...





I think it should present 
EPSG:23030

EPSG:25830
EPSG:4326

What is wrong? Any idea?

Thanks in advance. 

  



--

Assefa Yewondwossen   
Software Analyst   

Email: ass...@dmsolutions.ca
http://www.dmsolutions.ca/


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



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


Re: [mapserver-users] Re: Symbol problem (trunked) using tiled OpenLayers...

2010-02-22 Thread Stephen Woodbridge

stefanoferri wrote:

Im sill having problems  labelcache_map_edge_buffer "-10" remove the
labels close to the border... but i would like to have these icons... :(...
Why if i use wms instead of &mode=tile&tilemode=gmap&tile it works fine ?
thanks



When you use mode=tile, the software has to adjust the extents of the 
the image to fit to a tile. The image that you see in the browser is 
actually many tiles placed side by side.


Because labels are dynamically positioned based on what other stuff is 
being display, there is a possibility for labels to move and there are 
lots of parameters that control some of the position issues with labels 
like:


partial false
position auto

and there are some metadata parameters like labelcache_map_edge_buffer 
and probably some others.


Mapserver does not know what or how it drew the tiles adjacent to the 
one it is currently drawing. For example if you have a lone horizontal 
line that crosses many tiles and each tile draws it, should they all 
label it or only some of them? The way we make this look good is to use 
metatiles, these are large images made up of many tiles that are 
rendered and then chopped into tiles. this way we can draw more like a 
single image WMS and mapserver controls labels based on this large image 
and avoids labeling near the edges so labels to not get truncated 
between tiles that lie on adjacent metatiles.


Mode tile does not give you this option. It is planned to add WMS-C tile 
caching to mapserver 6.0, and in this you would get the ability to use 
metatiles.


Sorry I don't think you can do what you want with mode=tile at the 
moment, but I would defer to others that might be more knowledgeable on 
mode=tile.


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


[mapserver-users] Re: Symbol problem (trunked) using tiled OpenLayers...

2010-02-22 Thread stefanoferri

Thanks for the explanation  Stephen.=)
-- 
View this message in context: 
http://n2.nabble.com/Symbol-problem-trunked-using-tiled-OpenLayers-tp4613765p4615378.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] HTML Legends -- Need Elightment

2010-02-22 Thread Bill Thoen
I've been trying to understand HTML Legends by reading 
http://www.mapserver.org/output/html_legend.html#sample-site-using-the-html-legend, 
and I'm getting it, but I still don't understand the seemingly useless 
href calls here and there. On the last screen at the above URL there's 
this.


  [metadata name=WMS_TITLE]

This just sends a layer name to cgi-bin where it dies. Why are these references 
here? Is it just to show you can do this, or is it needed for something in the 
legend creation?

TIA, 


- Bill Thoen

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


[mapserver-users] Highlighting symbols dynamically on a point layer using C# mapscript

2010-02-22 Thread sireesha

Dear All,

I am developing an application using mapserver.

My requirement is when i select a district in dropdown list the
corresponding villages should be highlighed with a different symbol.
District is a polygon layer and villages are point layer.
I have given symbols to the point layer in mapfile.
Now how do i change the symbol of selected points(villages) in the point
layer?

I tried to create a dummy layer in map file and then add selected points to
the dummylayer  but it is not working.

Please help me.

Thank you.

Regards,
Sireesha
-- 
View this message in context: 
http://n2.nabble.com/Highlighting-symbols-dynamically-on-a-point-layer-using-C-mapscript-tp4617293p4617293.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