Re: [mapserver-users] How split single polygon into multiple polygons

2010-10-07 Thread Wim Vanbelle
I think the main question here, is what you are trying to achieve?

Do you just want to split them randomly? Evenly into pieces of certain
sizes? Based on other geometries that may or may not overlap?

Best regards,
Wim

On 7 October 2010 14:51, venkat  wrote:

> Dear All,
>
>  I need to split single polygon into multiple polygons using C#.Any one can
> guide me.I am waiting for your great response.
>
> Thanks and Regards,
>
> Ven
>
> ___
> 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: mapserver and i18n

2010-10-07 Thread teeschke

> I think that what needs to be passed to mapserver is something like
> lang=en_US and that is then used to select the appropriate alias. And if
> that does not exist then there are appropriate rules for how to handle
> it or error out.
> 
> -Steve 

I'm also not a friend of the idea to have multiple copys of our ~50 mapfiles
(~each with 1.000- 5.000 lines of configuration) and modify just all
language effected parts - this is a huge rat tail.

processing the lang-parameter is a nice idea

DATA "geom from data where lang='%lang%'" # this could be a solution, but
doesn't looks good when no 

lang parameter is defined
LABELITEM "%LANG%HIGHWAY"  # this could be a solution

---

"gml_ID_alias" "%GML_ID_NO%" would bring to much informations into the
client and the requests are not ogc confirm anymore. furthermore this could
bring trouble with WFS-GetFeature-Requests.

this is much better:

"ows_title" "highways" # default layer title
"ows_title_fr" "..." # france layer title

"ows_group_title" "Infrastructure" # default group name
"ows_group_title_fr" "..." # france group name

"gml_ID_alias" "Number" # default alias
"gml_NAME_alias_fr" '... # france alias

NAME 'good'  # default class name
NAME_fr 'good'  # france class name (oups, not looking good)

Thanks a lot and regards,
Daniel
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5611955.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: mapserver and i18n

2010-10-07 Thread Stephen Woodbridge

On 10/7/2010 9:24 AM, Smith, Michael ERDC-CRREL-NH wrote:

Would it be better to make then available for variable substitution?

"gml_ID_alias" "%GML_ID_NO%" # must be i18n
"gml_NAME_alias" "%GML_NAME_ALIAS%" # must be i18n


I think that what needs to be passed to mapserver is something like 
lang=en_US and that is then used to select the appropriate alias. And if 
that does not exist then there are appropriate rules for how to handle 
it or error out.


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


Re: [mapserver-users] Re: mapserver and i18n

2010-10-07 Thread Smith, Michael ERDC-CRREL-NH
Would it be better to make then available for variable substitution?

"gml_ID_alias" "%GML_ID_NO%" # must be i18n
"gml_NAME_alias" "%GML_NAME_ALIAS%" # must be i18n


Mike


-- 
Michael Smith
US Army Corps of Engineers
Remote Sensing/GIS Center
Hanover, NH 




On 10/7/10 9:14 AM, "Stephen Woodbridge"  wrote:

> I'm not sure that there is any reason that this:
>   could not be coded like:
> 
>   "gml_ID_alias" "Number" # must be i18n
>   "gml_NAME_alias" "Name" # must be i18n
> 
> could not be coded like:
> 
>   "gml_ID_alias_en_US" "Number" # must be i18n
>   "gml_NAME_alias_en_US" "Name" # must be i18n
>   "gml_ID_alias_fr" "" # must be i18n
>   "gml_NAME_alias_fr" "" # must be i18n
>   "gml_ID_alias_es" "" # must be i18n
>   "gml_NAME_alias_es" "" # must be i18n
> 
> if someone wanted to make a change to mapserver to support it. I hate
> the idea of having multiple mapfiles for the same map. It is a huge cost
> to build and maintain and test them if you have to make changes or
> update them.
> 
> -Steve W
> 
> On 10/7/2010 4:06 AM, teeschke wrote:
>> 
>> Hi Michael,
>> 
>> thats a realy good idea for the attributes of the geodata. But what about
>> 
>> LAYER
>> NAME 'my_highway_layer'
>> TYPE LINE
>> DATA "geom from data where lang='%lang%'"
>> METADATA
>>  "ows_title" "highways" # must be i18n
>>  "ows_group_title" "Infrastructure" # must be i18n
>>  "wms_feature_info_mime_type" "text/html"
>>  "wms_server_version" "1.1.1"
>>  "wms_format" "image/png"
>>  "wms_exceptions_format" "application/vnd.ogc.se_xml"
>>  "gml_featureid" "ID"
>>  "gml_include_items" "ID,NAME"
>>  "gml_ID_alias" "Number" # must be i18n
>>  "gml_NAME_alias" "Name" # must be i18n
>>END #METADATA
>>CLASS
>>   NAME 'good'  # must be i18n
>>   COLOR 0 255 0
>> END  # CLASS
>>CLASS
>>  NAME 'bad'  # must be i18n
>>  COLOR 255 0 0
>>END #CLASS
>> END # LAYER
>> 
>> I think the only solution is to provide one mapfile for each language.
>> 
>> Thanks a lot and regards,
>> Daniel
> 
> ___
> 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] Re: mapserver and i18n

2010-10-07 Thread Stephen Woodbridge

On 10/7/2010 2:30 AM, Bart van den Eijnden wrote:

Hi Steve,

I did not (mean to) say the client does not send the correct language
parameter to the server. The client (browser) is in control and will
request the language needed.

Your e-mail said the client needed to do the actual translation of
e.g. layer names, and that's where I disagreed.


Bart,

Thanks for clarifying that, now it make more sense in my mind, and I can 
agree with that.


I struggled with an experience in Turkey with a public access PC that I 
could not for the life of me get the thing to switch over to English. 
When I went to google.com it got redirected to a Turkish version of 
google. I'm a big believer that sites should have links on them that 
make it easy for a non-native reader to find and change the language.


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


Re: [mapserver-users] Re: mapserver and i18n

2010-10-07 Thread Stephen Woodbridge

I'm not sure that there is any reason that this:
 could not be coded like:

 "gml_ID_alias" "Number" # must be i18n
 "gml_NAME_alias" "Name" # must be i18n

could not be coded like:

 "gml_ID_alias_en_US" "Number" # must be i18n
 "gml_NAME_alias_en_US" "Name" # must be i18n
 "gml_ID_alias_fr" "" # must be i18n
 "gml_NAME_alias_fr" "" # must be i18n
 "gml_ID_alias_es" "" # must be i18n
 "gml_NAME_alias_es" "" # must be i18n

if someone wanted to make a change to mapserver to support it. I hate 
the idea of having multiple mapfiles for the same map. It is a huge cost 
to build and maintain and test them if you have to make changes or 
update them.


-Steve W

On 10/7/2010 4:06 AM, teeschke wrote:


Hi Michael,

thats a realy good idea for the attributes of the geodata. But what about

LAYER
NAME 'my_highway_layer'
TYPE LINE
DATA "geom from data where lang='%lang%'"
METADATA
 "ows_title" "highways" # must be i18n
 "ows_group_title" "Infrastructure" # must be i18n
 "wms_feature_info_mime_type" "text/html"
 "wms_server_version" "1.1.1"
 "wms_format" "image/png"
 "wms_exceptions_format" "application/vnd.ogc.se_xml"
 "gml_featureid" "ID"
 "gml_include_items" "ID,NAME"
 "gml_ID_alias" "Number" # must be i18n
 "gml_NAME_alias" "Name" # must be i18n
   END #METADATA
   CLASS
  NAME 'good'  # must be i18n
  COLOR 0 255 0
END  # CLASS
   CLASS
 NAME 'bad'  # must be i18n
 COLOR 255 0 0
   END #CLASS
END # LAYER

I think the only solution is to provide one mapfile for each language.

Thanks a lot and regards,
Daniel


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


[mapserver-users] How split single polygon into multiple polygons

2010-10-07 Thread venkat
Dear All,

 I need to split single polygon into multiple polygons using C#.Any one can
guide me.I am waiting for your great response.

Thanks and Regards,

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


Re: [mapserver-users] How to display Labels from 1 table?

2010-10-07 Thread elisabeth theresia
Horray Mr. Michael and Mr. Lime thanks it works. really appreciate your 
kindness 
:)

best regards,

-Theresia






From: "Lime, Steve D (DNR)" 
To: elisabeth theresia ; mapserv forumlist 

Sent: Wed, October 6, 2010 4:07:27 PM
Subject: RE: [mapserver-users] How to display Labels from 1 table?

Michael's post was right on, study his example closely. You TEXT parameter is 
in 
the wrong place. There's no need to use a FEATURE object...

Steve

From: mapserver-users-boun...@lists.osgeo.org 
[mapserver-users-boun...@lists.osgeo.org] On Behalf Of elisabeth theresia 
[dbee_ka...@yahoo.com]
Sent: Wednesday, October 06, 2010 10:48 AM
To: mapserv forumlist
Subject: Re: [mapserver-users] How to display Labels from 1 table?

Hi Mr. Michael,

Thanks for replying, i already did what you suggested to me and i delete my 
layer about LABELITEMS (my coding in the bottom), but there's no labels appear 
in my map yet, why?

then when i write like this: (coding) there was an error message : getString(): 
Symbol definition error. Parsing error near ([name_region]|[value_1]-[value_2])

here the coding:
LAYER
NAME "Annotation of Region"
TYPE ANNOTATION
STATUS DEFAULT
FEATURE
TEXT ([name_region]|[value_1]-[value_2])
END #FEATURE
CLASS
LABEL
COLOR 0 0 0
TYPE Truetype
FONT Arial
SIZE 11
MINSIZE 8
ANGLE Auto
POSITION UC
ANTIALIAS True
WRAP "|"
END #LABEL
END #CLASS
END #LAYER


Thanks for the attention :)
-Theresia


rFrom: Michael Schulz 
To: elisabeth theresia 
Cc: mapserv forumlist 
Sent: Wed, October 6, 2010 6:45:30 AM
Subject: Re: [mapserver-users] How to display Labels from 1 table?

Hi Theresia,

you can do it via the TEXT keyword in the CLASS section of a layer:
http://www.mapserver.org/mapfile/class.html

e.g. like this:

  CLASS
LABEL
  COLOR 0 0 0
  TYPE Truetype
 FONT Arial
 SIZE 11
  MINSIZE 8
  ANGLE Auto
  POSITION UC
  ANTIALIAS True
  WRAP "|"
END # LABEL
TEXT ([name_region]|[values_1] - [values_2])
END #CLASS

This will label the features with the values of the tree fields in this form:

name_region
values_1 - values_2

You can request the line break with the WRAP keyword. In recent
mapbender versions there are also keywords to control label alignment.

Cheers, Michael


2010/10/6 elisabeth theresia 
mailto:dbee_ka...@yahoo.com>>:
> Hello Mapserver experts,
>
> I have question in my mind, How to display Labels from 1 table in my
> database (Postgre + Postgis)?
> in this table there are fields of : name_region, values_1, values_2, How to
> appear them? Could Mapserver make it?
> I ask this question, because I want to show the difference values_1 between
> values_2 in my Bar Chart :)
>
> if i do this (code in the bottom) then just appear values_2 in the map :) ?
>
> LAYER
> STATUS DEFAULT
> TYPE ANNOTATION
> CONNECTIONTYPE POSTGIS
> CONNECTION "user=x password=x dbname=mydb host=host port=5432"
> DATA "the_geom FROM tb_region USING UNIQUE code_region"
>
> LABELITEM "name_region"
> CLASS
> LABEL
> COLOR 0 0 0
> TYPE Truetype
> FONT Arial
> SIZE 11
> MINSIZE 8
> ANGLE Auto
> POSITION UC
> ANTIALIAS True
> END # LABEL
> END #CLASS
>
> LABELITEM "values_1"
> CLASS
> LABEL
> COLOR 255 255 255
> TYPE Truetype
> FONT Arial
> SIZE 9
> MINSIZE 8
> ANGLE Auto
> POSITION UC
> ANTIALIAS True
> END # LABEL
> END #CLASS
>
> LABELITEM "values_2"
> CLASS
> LABEL
> COLOR 255 255 255
> TYPE Truetype
> FONT Arial
> SIZE 9
> MINSIZE 8
> ANGLE Auto
> POSITION UC
> ANTIALIAS True
> END # LABEL
> END #CLASS
> END #LAYER
>
> Thanks really appreciate yours,
>
> -Theresia :)
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>



--
~
Treffen Sie uns auf der INTERGEO
05.10. - 07.10.2010
in Köln Halle: 11.2
Stand-Nr: 2C.121
~

---
Michael Schulz
msch...@webgis.de

in medias res
Gesellschaft für Informationstechnologie mbH

Schwimmbadstraße 2
D-79100  Freiburg i. Br.

Tel:  +49 (0)761 705798-102
Tel:  +49 (0)761 705798-0
Fax: +49 (0)761 705798-09

http://www.webgis.de / http://www.zopecms.de
--
Geschäftsführer: Stefan Giese, Dr. Christ

Re: [mapserver-users] doubt about mapserver URL: coordinate system

2010-10-07 Thread Michael Smith
Sebastian,

You can use either mapserver  or wms syntax with openlayers.

The coordinates you see are in the Google Mercator or Spherical Mercator
projection. The google coordinates are the tile references (z=19) and the x
and y should match the center point of your mapext/imgext.

To use mapserver with google mercator you¹d use the projection block at the
mapfile level of

PROJECTION
 "proj=merc lon_0=0 k=1 x_0=0 y_0=0 a=6378137 b=6378137
towgs84=0,0,0,0,0,0,0 units=m no_defs"
END

Mike


-- 
Michael Smith
US Army Corps of Engineers
Remote Sensing/GIS Center
Hanover, NH 




On 10/7/10 7:42 AM, "Sebastian E. Ovide"  wrote:

> you are right. Thanks
> 
> On Wed, Oct 6, 2010 at 6:15 PM, Rahkonen Jukka 
> wrote:
>> Hi,
>> 
>> It looks like your application is calling Mapserver with native CGI requests
>> and I believe you have defined some special Mapserver layer in your
>> application. Try to change it to standard WMS layer.
>> 
>> 
>> -Jukka Rahkonen-
>> 
>> 
>> Sebastian E. Ovide wrote:
>> 
>> Lähetetty: ke 6.10.2010 18:06
>> Vastaanottaja: mapserver-users@lists.osgeo.org
>> Aihe: [mapserver-users] doubt about mapserver URL: coordinate system
>> 
>> Hi List
>> 
>> I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls
>> MapServer with ULRs like this:
>> 
>> http://mapserver/mapserver?layers=NAFRA_2008_final
>> map=/home/gis/conf/mapserver/uk.map
>> mode=map
>> map_imagetype=png
>> mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
>> imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
>> map_size=256+256
>> imgx=128
>> imgy=128
>> imgxy=256+256
>> 
>> Just trying to understand the coordinate system used by mapext and imgext. (
>> it is different from than that used to call Google servers:
>> http://mt0.google.com/vt/lyr...@133&hl=en&src=api&x=257246&y=166679&z=19&s=G
>> )
>> 
>> Is it possible to use a different coordinate system ? say for example the
>> same coordinate system specified in the LAYER (in my case epsg:27700)
>> 
>> thanks
>> 
>> --
>> Sebastian E. Ovide
>> 
> 
> 

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


Re: [mapserver-users] doubt about mapserver URL: coordinate system

2010-10-07 Thread Sebastian E. Ovide
you are right. Thanks

On Wed, Oct 6, 2010 at 6:15 PM, Rahkonen Jukka wrote:

> Hi,
>
> It looks like your application is calling Mapserver with native CGI
> requests and I believe you have defined some special Mapserver layer in your
> application. Try to change it to standard WMS layer.
>
>
> -Jukka Rahkonen-
>
>
> Sebastian E. Ovide wrote:
>
> Lähetetty: ke 6.10.2010 18:06
> Vastaanottaja: mapserver-users@lists.osgeo.org
> Aihe: [mapserver-users] doubt about mapserver URL: coordinate system
>
> Hi List
>
> I'm using OpenLayers + MapServer. With Firebug I see that OpenLayers calls
> MapServer with ULRs like this:
>
> http://mapserver/mapserver?layers=NAFRA_2008_final
> map=/home/gis/conf/mapserver/uk.map
> mode=map
> map_imagetype=png
> mapext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
> imgext=-374388.56527373+7296678.7179959+-374312.12824546+7296755.1550241
> map_size=256+256
> imgx=128
> imgy=128
> imgxy=256+256
>
> Just trying to understand the coordinate system used by mapext and imgext.
> (
> it is different from than that used to call Google servers:
>
> http://mt0.google.com/vt/lyr...@133&hl=en&src=api&x=257246&y=166679&z=19&s=G
> )
>
> Is it possible to use a different coordinate system ? say for example the
> same coordinate system specified in the LAYER (in my case epsg:27700)
>
> thanks
>
> --
> Sebastian E. Ovide
>
>


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


[mapserver-users] Re: mapserver and i18n

2010-10-07 Thread teeschke

Hi Michael,

thats a realy good idea for the attributes of the geodata. But what about

LAYER
   NAME 'my_highway_layer'
   TYPE LINE
   DATA "geom from data where lang='%lang%'" 
   METADATA
"ows_title" "highways" # must be i18n
"ows_group_title" "Infrastructure" # must be i18n
"wms_feature_info_mime_type" "text/html"
"wms_server_version" "1.1.1"
"wms_format" "image/png"
"wms_exceptions_format" "application/vnd.ogc.se_xml"
"gml_featureid" "ID" 
"gml_include_items" "ID,NAME"
"gml_ID_alias" "Number" # must be i18n
"gml_NAME_alias" "Name" # must be i18n
  END #METADATA
  CLASS
 NAME 'good'  # must be i18n
 COLOR 0 255 0
   END  # CLASS
  CLASS
NAME 'bad'  # must be i18n
COLOR 255 0 0
  END #CLASS
END # LAYER

I think the only solution is to provide one mapfile for each language.

Thanks a lot and regards, 
Daniel
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/mapserver-and-i18n-tp5607348p5610385.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