[Geoserver-users] (no subject)

Hello geoserver-people,

I am about to implement some integration of geoserver with a
Wordpress-page and have made first progress. It is all UI-Stuff and
WP-pages shall display layers in Gmaps. Now, that the thing starts to
work, many questions arise.

I try to solve them by the good old RTFM but t be perfectly honest the
f.... ahhhmmm friendly manual reaches its limits quite fast.

So maybe you can help:

1.) I have to have some more Labels in the Webinterface. I managed it to
get a new Page using wicket and maven, it works OK, though I had to find
out a lot with trial/error, since

http://docs.geoserver.org/2.1.0/developer/programming-guide/wicket-pages/index.html

... is a bit spartan. So maybe you could help.

is there something like a reference for commands, categories and the
like for programming modules with wicket in geoserver?

for instance:

<property name="category" ref="someCategory"/>

What can "someCategory" be? I *think* it could point to the section of
the page, that shall display the label. Is there a list of valid
category-names somewhere?

2.) Is there really no way to upload a Shapefile or files in general in
the Web-Interface? I have made a small uploader myself but it seems
clumsy to upload a file and then select its adress with dozens of clicks
in the Stores-tools.

3.) I see lots of performance issues and they seem hard to debug. We run
geoserver on a Debian64 GNU/Linux with but 1Gig Ram and a 2-core CPU, is
that not enough? What would you recommend? I have told Tomcat to allow
512MB Ram for its applications, still geoserver reacts slow and
sometimes crashes altogether.
Some of these crashes where due to bugs in my module, but now, that the
module does as planned and most operations work normal, we still got
timeouts and the like.

best regards

HZN/Berlin

On Tue, Nov 12, 2013 at 7:00 PM, Hartmut Noack <zettberlin@anonymised.com>wrote:

Hello geoserver-people,

I am about to implement some integration of geoserver with a
Wordpress-page and have made first progress. It is all UI-Stuff and
WP-pages shall display layers in Gmaps. Now, that the thing starts to
work, many questions arise.

I try to solve them by the good old RTFM but t be perfectly honest the
f.... ahhhmmm friendly manual reaches its limits quite fast.

So maybe you can help:

1.) I have to have some more Labels in the Webinterface. I managed it to
get a new Page using wicket and maven, it works OK, though I had to find
out a lot with trial/error, since

http://docs.geoserver.org/2.1.0/developer/programming-guide/wicket-pages/index.html

... is a bit spartan. So maybe you could help.

The developer guide is really incomplete, it is assumed that people can
learn
from code (just like all geoserver devs did), mostly because nobody ever
wanted
to sponsor work to build a larger dev docs.

is there something like a reference for commands, categories and the
like for programming modules with wicket in geoserver?

None.

for instance:

<property name="category" ref="someCategory"/>

What can "someCategory" be? I *think* it could point to the section of
the page, that shall display the label. Is there a list of valid
category-names somewhere?

In the spring application context files, but you can add yours too.

2.) Is there really no way to upload a Shapefile or files in general in
the Web-Interface? I have made a small uploader myself but it seems
clumsy to upload a file and then select its adress with dozens of clicks
in the Stores-tools.

Nope, there is no such a thing. Mostly because it has never been sponsored,
if I had to write one I'd look into plupload (http://plupload.com/), since
containers
would deny large upload anyways (where "large" is often as small as 2MB)

3.) I see lots of performance issues and they seem hard to debug. We run
geoserver on a Debian64 GNU/Linux with but 1Gig Ram and a 2-core CPU, is
that not enough? What would you recommend? I have told Tomcat to allow
512MB Ram for its applications, still geoserver reacts slow and
sometimes crashes altogether.
Some of these crashes where due to bugs in my module, but now, that the
module does as planned and most operations work normal, we still got
timeouts and the like.

I would double the RAM, but besides that, normally the problem is with data
not being setup for web serving. See
http://www.slideshare.net/geosolutions/gs-steroids-sgiannecfoss4g20130103
for some suggestions.

That said, certainly 2GB/2core is a setup suitable only for light load.

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

First of all: sorry for omitting the subject
Thunderbird is not top-notch for lists I guess...

Am 13.11.2013 10:14, schrieb Andrea Aime:

On Tue, Nov 12, 2013 at 7:00 PM, Hartmut Noack <zettberlin@anonymised.com>wrote:

Hello geoserver-people,

I am about to implement some integration of geoserver with a
Wordpress-page and have made first progress. It is all UI-Stuff and
WP-pages shall display layers in Gmaps. Now, that the thing starts to
work, many questions arise.

I try to solve them by the good old RTFM but t be perfectly honest the
f.... ahhhmmm friendly manual reaches its limits quite fast.

So maybe you can help:

1.) I have to have some more Labels in the Webinterface. I managed it to
get a new Page using wicket and maven, it works OK, though I had to find
out a lot with trial/error, since

http://docs.geoserver.org/2.1.0/developer/programming-guide/wicket-pages/index.html

... is a bit spartan. So maybe you could help.

The developer guide is really incomplete, it is assumed that people can
learn
from code (just like all geoserver devs did), mostly because nobody ever
wanted
to sponsor work to build a larger dev docs.

Thanks for the clarification. I am about to rewrite this page. Update
and extent that is, for my own needs. Maybe I could send it to the team
so the docs could be enhanced here a bit.

is there something like a reference for commands, categories and the
like for programming modules with wicket in geoserver?

None.

for instance:

<property name="category" ref="someCategory"/>

What can "someCategory" be? I *think* it could point to the section of
the page, that shall display the label. Is there a list of valid
category-names somewhere?

In the spring application context files, but you can add yours too.

Thanks for the hint, I found some and will apply the good old trial/error

2.) Is there really no way to upload a Shapefile or files in general in
the Web-Interface? I have made a small uploader myself but it seems
clumsy to upload a file and then select its adress with dozens of clicks
in the Stores-tools.

Nope, there is no such a thing. Mostly because it has never been sponsored,
if I had to write one I'd look into plupload (http://plupload.com/), since
containers
would deny large upload anyways (where "large" is often as small as 2MB)

OK, so I stick with my own uploader....

3.) I see lots of performance issues and they seem hard to debug. We run
geoserver on a Debian64 GNU/Linux with but 1Gig Ram and a 2-core CPU, is
that not enough? What would you recommend? I have told Tomcat to allow
512MB Ram for its applications, still geoserver reacts slow and
sometimes crashes altogether.
Some of these crashes where due to bugs in my module, but now, that the
module does as planned and most operations work normal, we still got
timeouts and the like.

I would double the RAM, but besides that, normally the problem is with data
not being setup for web serving. See
http://www.slideshare.net/geosolutions/gs-steroids-sgiannecfoss4g20130103
for some suggestions.

The plan is, to present up to 6-7 relatively simple layers on one map at
a time using Google maps. For starters, that is. If all goes well, the
project could grow almost indefinitely.

Most of it shall be vector-data but we've got sattelite-pictures in the
pipeline too.

As of now we use gwc/service/gmaps to deliver Shapefiles made with
QGis(some with ESRI will be involved too).

We constantly have performance-issues especially the "Your session timed
out" - thing. In most cases stop/start using tomcat manager wont help
and I have to restart using init.d/tomcat restart to revive geoserver.
Tomcats garbage collector shows memory leaks frequently.

I simply cannot believe, that this is only due to our weakish hardware.
Especially, because I see similar problems in my local install that runs
on a CoreI5 with 8Gigs of Ram. We have 4 relatively simple Shapefiles
loaded so far....

Could it help to:

1.) delete the samples(tiger etc)
2.) disable everything but WMS

?

That said, certainly 2GB/2core is a setup suitable only for light load.

We already asked the hoster for conditions regarding upgrades...

Thanks again your help is most appreciated :slight_smile:

HZN

Cheers
Andrea