Re: [Geoserver-users] "Disperse Markers" in geoserver/openlayers

2011-09-22 Thread Andrea Aime
2011/9/22 Håvard Wahl Kongsgård :
> Hi, I have a problem with overlapping points(identical XY). Googling I
> found that Arcgis has a useful tool "Disperse Markers" which expands
> clustered(overlapping points)
> http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=1313&pid=1306&topicname=Disperse_Markers_(Cartography)
> . Is a similar feature available in geoserver/openlayers for expanding
> point clusters on the fly? The math behind it must be very simple, so
> the alternative is to created a new geom in postigs with expanded
> clusters.

There is a little trick you can employ. Text symbolizers in GeoServer
can be associated
to a graphic, which in the original intention was the "road plate", a
background graphic
that would be moved along with the label

Now, if your label is empty space you can use label displacement to
actually move away
the points in a controlled way.
The downside if you want is that if a new position cannot be found,
not even by moving
it around within the specified distance, the point won't be painted at all.

Here is an example map with cities:
http://demo1.geo-solutions.it/playground/GeoSolutions/wms?LAYERS=GeoSolutions%3Acities&STYLES=stars&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-0.59257250976506,38.661416015626,24.887332275391,51.617299804688&WIDTH=649&HEIGHT=330

and here is the same with the trick above:
http://demo1.geo-solutions.it/playground/GeoSolutions/wms?LAYERS=GeoSolutions%3Acities&STYLES=displace&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-0.59257250976506,38.661416015626,24.887332275391,51.617299804688&WIDTH=649&HEIGHT=330

I guess you'll need to play a bit with it to get it right, but it may work.
The full style is here:
http://demo1.geo-solutions.it/playground/styles/displace.sld

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

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

---

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] "Disperse Markers" in geoserver/openlayers

2011-09-22 Thread David Winslow
OpenLayers can do clustering, I'm not sure if it's easy to expand the
cluster out into individual points.

http://openlayers.org/dev/examples/strategy-cluster.html

--
David Winslow
OpenGeo - http://opengeo.org/

2011/9/22 Håvard Wahl Kongsgård 

> Hi, I have a problem with overlapping points(identical XY). Googling I
> found that Arcgis has a useful tool "Disperse Markers" which expands
> clustered(overlapping points)
>
> http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=1313&pid=1306&topicname=Disperse_Markers_(Cartography)
> . Is a similar feature available in geoserver/openlayers for expanding
> point clusters on the fly? The math behind it must be very simple, so
> the alternative is to created a new geom in postigs with expanded
> clusters.
>
>
> --
> Håvard Wahl Kongsgård
>
>
> --
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Custom GML GetFeatureInfo response

2011-09-22 Thread David Winslow
If you are using OpenLayers I think you can switch to a GetFeature control
instead of GetFeatureInfo - this should allow you to use the WFS
"propertyName" option to specify the attributes to include in the GML in
that case.

--
David Winslow
OpenGeo - http://opengeo.org/

On Thu, Sep 22, 2011 at 8:01 AM, Andrea Aime
wrote:

> On Thu, Sep 22, 2011 at 1:46 PM, J. Parapar  wrote:
> > Hi,
> >
> > I want to avoid getting the geom in the WMS GetFeatureInfo responses
> > obtained from GeoServer.
> >
> > I have found the solution for HTML format through the use of
> > GetFeatureInfo templates. Does there exist anything similar for GML
> > format?
>
> Nope sorry, we don't have such a thing, though in theory I guess it
> could be developed. The easiest would probably be to add a configuration
> listing the attributes you want to be included in the GML
>
> 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
>
> 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
>
> ---
>
>
> --
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] "Disperse Markers" in geoserver/openlayers

2011-09-22 Thread Håvard Wahl Kongsgård
Hi, I have a problem with overlapping points(identical XY). Googling I
found that Arcgis has a useful tool "Disperse Markers" which expands
clustered(overlapping points)
http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=1313&pid=1306&topicname=Disperse_Markers_(Cartography)
. Is a similar feature available in geoserver/openlayers for expanding
point clusters on the fly? The math behind it must be very simple, so
the alternative is to created a new geom in postigs with expanded
clusters.


-- 
Håvard Wahl Kongsgård

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Custom GML GetFeatureInfo response

2011-09-22 Thread Andrea Aime
On Thu, Sep 22, 2011 at 1:46 PM, J. Parapar  wrote:
> Hi,
>
> I want to avoid getting the geom in the WMS GetFeatureInfo responses
> obtained from GeoServer.
>
> I have found the solution for HTML format through the use of
> GetFeatureInfo templates. Does there exist anything similar for GML
> format?

Nope sorry, we don't have such a thing, though in theory I guess it
could be developed. The easiest would probably be to add a configuration
listing the attributes you want to be included in the GML

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

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

---

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Custom GML GetFeatureInfo response

2011-09-22 Thread J. Parapar
Hi,

I want to avoid getting the geom in the WMS GetFeatureInfo responses
obtained from GeoServer.

I have found the solution for HTML format through the use of
GetFeatureInfo templates. Does there exist anything similar for GML
format?

Thanks in advance for any help.

--
Regards
Jorge

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Upload a SLD file to geoserver

2011-09-22 Thread Lucas Heezen - Covadis
Now i have this code:

 

$fp = fopen("d:\sld\lucas.sld",'r');

$ch =
curl_init("http://localhost/geoserver/rest/styles/Localhost_Style1";);

curl_setopt($ch, CURLOPT_PUT, true);

curl_setopt($ch, CURLOPT_INFILE, $fp);

curl_setopt($ch, CURLOPT_INFILESIZE,
filesize("d:\sld\lucas.sld"));

curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type:
application/vnd.ogc.sld+xml')); // sets the content type in the request
header

$passwordStr = "admin:geoserver"; // replace with your
username:password

curl_setopt($ch, CURLOPT_USERPWD, $passwordStr);

 

And I see that my Localhost_Style1.xml is update (file timestamp) but
the .sld is created with a default style not my style...

 

 

Met vriendelijke groet,
Lucas Heezen

 

Covadis b.v. 

t: 026 3616600 

Geograaf 12 

f: 026 3612317 

6921 EW Duiven 

e: hee...@covadis.nl  

 

 

Van: Lucas Heezen - Covadis 
Verzonden: donderdag 22 september 2011 9:35
Aan: geoserver-users@lists.sourceforge.net
Onderwerp: Upload a SLD file to geoserver

 

Hello,

 

I'm having a problem with upload a SLD file to geoserver using REST.

 

This is the code I;m having so far:

 

// URL on which we have to post data

$url = "http://localhost/geoserver/rest/styles/line";;

// Any other field you might want to catch

$post_data['name'] = "line";

// File you want to upload/post

$post_data['file'] = "@d:/sld/lucas.sld";

 

// Initialize cURL

$ch = curl_init();

// Set URL on which you want to post the Form and/or data

curl_setopt($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_USERPWD, "admin:geoserver");

curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-type:
application/vnd.ogc.sld+xml"));

// Data+Files to be posted

curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);

// Pass TRUE or 1 if you want to wait for and catch the response
against the request made

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

// For Debug mode; shows up any error encountered during the
operation

curl_setopt($ch, CURLOPT_VERBOSE, 1);

// Execute the request

$response = curl_exec($ch);



// Just for debug: to see response

echo $response;

 

But I get nog error and the file is not uploaded...any idea?

 

 

Met vriendelijke groet,
Lucas Heezen



Covadis b.v. 

t: 026 3616600 

Geograaf 12 

f: 026 3612317 

6921 EW Duiven 

e: hee...@covadis.nl  

 

 

<>--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] French translation of GeoServer user doc

2011-09-22 Thread Andrea Aime
On Thu, Sep 22, 2011 at 11:50 AM, Yves Jacolin
 wrote:
> Hello Andrea,
>
> done, I hope I don't forget something.

Just accepted you as a developer, welcome to the project.

Btw, mind the branches, the translation might be different on 2.1.x
(which is the
stable series) and trunk (which might have some more keys, and occasionally
get renamed ones).

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

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

---

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] French translation of GeoServer user doc

2011-09-22 Thread Frank Gasdorf
Yesterday started a discussion about translation support for geotools on the
geotools developer list. I'd like to point you to a crowdin geoserver
project for the trunk:

http://crowdin.net/project/geoserver

It requires only a google account or the potential translator have to
register for free. I've no idea of the current state of the uploaded
property files, maybe its worth to upload the current from trunk to get the
added merged. If completely translated its possible to export, merge into
the source tree from svn export and commit these to the SVN repo, in case of
commit access.

In the past few day I started a fork for the 2.1.x branch to get a completed
German translation ... : http://crowdin.net/project/geoserver-21x

Feel free to contact the http://crowdin.net/profile/lazareveugene for the
trunk and myself for the branch. please review the current from branch,
these are up to date (original) and the completion status is not 100% ;)

I like the idea of collaboration on translations for non developers.

Cheers, Frank


2011/9/15 Andrea Aime 

> spanish
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] French translation of GeoServer user doc

2011-09-22 Thread Yves Jacolin
Le jeudi 15 septembre 2011 16:32:50, Andrea Aime a écrit :
> On Tue, Sep 13, 2011 at 4:50 PM, Yves Jacolin
> 
> wrote:
> > Hello,
> > 
> > I began to work a few monthes ago on the translation of the GeoServer
> > user doc. You can find the first chapter I translated here :
> > http://repository.georchestra.org/svn-georchestra/trunk/website/documenta
> > tion/administrateur/geoserver/
> > 
> > Is it possible to import it into the geoserver trunk repository? Do you
> > give access to a simple user who just want translate the user doc? I
> > don't know if I will translate all the documentation but it could be
> > useful both for geOrchestra project and my trainning session so if I
> > have enough time I will work in this way. OSGeo-fr community could also
> > help me I guess.
> 
> I think this is great.
> Afaik we gave access for a spanish translation that was never complete in
> the past,
> so it should not be a problem.
> We don't have "limited commit" areas, that is, once you get commit rights
> you can
> actually commit everywhere, but before committing anywhere outside docs (if
> you
> ever need it, that is) it's better  to ask for a review of the change
> 
> In order to get commit access you need to register on
> http://xircles.codehaus.org/
> and ask to become a developer on the same site:
> http://xircles.codehaus.org/projects/geoserver/members
> 
> Cheers
> Andrea
Hello Andrea,

done, I hope I don't forget something.

Thanks,

Y.
-- 
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel (France) : +33 4 79 26 57 98
Tel (Suisse) : +41 21 619 1031
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81
Mail : yves.jaco...@camptocamp.com
http://www.camptocamp.com

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Upload a SLD file to geoserver

2011-09-22 Thread Lucas Heezen - Covadis
Hello,

 

I'm having a problem with upload a SLD file to geoserver using REST.

 

This is the code I;m having so far:

 

// URL on which we have to post data

$url = "http://localhost/geoserver/rest/styles/line";;

// Any other field you might want to catch

$post_data['name'] = "line";

// File you want to upload/post

$post_data['file'] = "@d:/sld/lucas.sld";

 

// Initialize cURL

$ch = curl_init();

// Set URL on which you want to post the Form and/or data

curl_setopt($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_USERPWD, "admin:geoserver");

curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-type:
application/vnd.ogc.sld+xml"));

// Data+Files to be posted

curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);

// Pass TRUE or 1 if you want to wait for and catch the response
against the request made

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

// For Debug mode; shows up any error encountered during the
operation

curl_setopt($ch, CURLOPT_VERBOSE, 1);

// Execute the request

$response = curl_exec($ch);



// Just for debug: to see response

echo $response;

 

But I get nog error and the file is not uploaded...any idea?

 

 

Met vriendelijke groet,
Lucas Heezen

 

Covadis b.v. 

t: 026 3616600 

Geograaf 12 

f: 026 3612317 

6921 EW Duiven 

e: hee...@covadis.nl  

 

 

<>--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users