Re: [Geoserver-users] (no subject)

2013-11-13 Thread Andrea Aime
On Tue, Nov 12, 2013 at 7:00 PM, Hartmut Noack zettber...@linuxuse.dewrote:

 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

---
--
DreamFactory - Open Source REST  JSON Services for HTML5  Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] GEOSERVER_DATA_DIR upgrade - REST not enabled

2013-11-13 Thread Chris Morgan
Hi list,

I have a GEOSERVER_DATA_DIR that I have upgraded from V2.0
to V2.4.0. Any attempt to access http://localhost:8080/geoserver/rest
gives a 404 error.
If I remove my data dir and use the default in the WAR file,
then http://localhost:8080/geoserver/rest works OK.

This leads me to the assumption that the upgrade process is
not enabling REST correctly.
What do I need to modify in my upgraded data dir to enable REST?

Thanks,

Chris

-- 


Chris Morgan
  
Director of Information Technology
Lynx Information Systems Ltd
Tel: +44 (0)20 8780 2634
Email: ch...@lynxinfo.co.uk
Web: http://www.lynxinfo.co.uk



Lynx Information Systems Ltd
93-99 Upper Richmond Rd
London SW15 2TG
United Kingdom
Web: http://www.lynxinfo.co.uk
Email: l...@lynxinfo.co.uk
Tel: +44 (0)20 8780 2634
Fax: +44 (0)20 8780 0931

Registered in England Number 2454130
VAT Number GB 561 8979 88

Incoming and outgoing emails are checked for viruses
by Sophos AntiVirus.

This email may contain confidential information which is
intended for the named recipient(s) only. If you are
not the named recipient you should not take any action in
relation to this email, other than to notify us that you
have received it in error.


--
DreamFactory - Open Source REST  JSON Services for HTML5  Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] GEOSERVER_DATA_DIR upgrade - REST not enabled

2013-11-13 Thread Alessio Fabiani
I guess you need to update the rest.properties file inside the
GEOSERVER_DATA_DIR. This file controls the Rest access constraints.

http://docs.geoserver.org/latest/en/user/security/rest.html

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

Ing. Alessio Fabiani
@alfa7691
Founder/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  331 6233686

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

---


On Wed, Nov 13, 2013 at 1:45 PM, Chris Morgan ch...@lynxinfo.co.uk wrote:

 Hi list,

 I have a GEOSERVER_DATA_DIR that I have upgraded from V2.0
 to V2.4.0. Any attempt to access http://localhost:8080/geoserver/rest
 gives a 404 error.
 If I remove my data dir and use the default in the WAR file,
 then http://localhost:8080/geoserver/rest works OK.

 This leads me to the assumption that the upgrade process is
 not enabling REST correctly.
 What do I need to modify in my upgraded data dir to enable REST?

 Thanks,

 Chris

 --
 

 Chris Morgan

 Director of Information Technology
 Lynx Information Systems Ltd
 Tel: +44 (0)20 8780 2634
 Email: ch...@lynxinfo.co.uk
 Web: http://www.lynxinfo.co.uk
 

 
 Lynx Information Systems Ltd
 93-99 Upper Richmond Rd
 London SW15 2TG
 United Kingdom
 Web: http://www.lynxinfo.co.uk
 Email: l...@lynxinfo.co.uk
 Tel: +44 (0)20 8780 2634
 Fax: +44 (0)20 8780 0931

 Registered in England Number 2454130
 VAT Number GB 561 8979 88

 Incoming and outgoing emails are checked for viruses
 by Sophos AntiVirus.

 This email may contain confidential information which is
 intended for the named recipient(s) only. If you are
 not the named recipient you should not take any action in
 relation to this email, other than to notify us that you
 have received it in error.
 


 --
 DreamFactory - Open Source REST  JSON Services for HTML5  Native Apps
 OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
 Free app hosting. Or install the open source package on any LAMP server.
 Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
 http://pubads.g.doubleclick.net/gampad/clk?id=63469471iu=/4140/ostg.clktrk
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
DreamFactory - Open Source REST  JSON Services for HTML5  Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] GeoWebCache into Leaflet.js

2013-11-13 Thread Jonathan Moules
Hi Robert,
Comparing that to my own gridset, it's pretty much identical. The only two
differences are:
You have an extra zoom-out level (1:20million?), and your bounding box has
probably been automatically generated.
Mine is here:

 gridSets
gridSet
  nameUK_OSGB/name
  srs
number27700/number
  /srs
  extent
coords
  double0.0/double
  double0.0/double
  double70.0/double
  double130.0/double
/coords
  /extent
  alignTopLeftfalse/alignTopLeft
  resolutions
double2800.0/double
double1400.0/double
double700.0/double
double350.0/double
double175.0/double
double84.0/double
double42.0/double
double21.0/double
double11.2/double
double5.6/double
double2.8/double
double1.4/double
double0.7/double
double0.35/double
double0.14/double
double0.07/double
  /resolutions
  metersPerUnit1.0/metersPerUnit
  pixelSize2.8E-4/pixelSize
  scaleNames
stringUK_OSGB:0/string
stringUK_OSGB:1/string
stringUK_OSGB:2/string
stringUK_OSGB:3/string
stringUK_OSGB:4/string
stringUK_OSGB:5/string
stringUK_OSGB:6/string
stringUK_OSGB:7/string
stringUK_OSGB:8/string
stringUK_OSGB:9/string
stringUK_OSGB:10/string
stringUK_OSGB:11/string
stringUK_OSGB:12/string
stringUK_OSGB:13/string
stringUK_OSGB:14/string
stringUK_OSGB:15/string
  /scaleNames
  tileHeight256/tileHeight
  tileWidth256/tileWidth
  yCoordinateFirstfalse/yCoordinateFirst
/gridSet


So there's probably nothing wrong with your gridset (mine works fine at
least).

It certainly appears from your error that your application is using a
different gridset (mine was doing similar things when they weren't
identical).
My javaScript declaration (not leaflet):
resolutions:
[2800,1400,700,350,175,84,42,21,11.2,5.6,2.8,1.4,0.7,0.35,0.14,0.07],

Maybe leaflet is doing something it shouldn't be?
Regards,

Jonathan

Jonathan Moules

GIS Analyst Programmer,
Corporate GIS,
Warwickshire County Council
Tel: +44 (0)1926 412588, (Internal: 2588)



On 8 November 2013 15:20, Langford, Robert
robert.langf...@salford.gov.ukwrote:

 All,



 I’m having problems with GeoWebCache, I have a Leaflet.js web mapping site
 using Proj4Leaflet which consumes 2 WMS feeds from Geoserver (2.3.3), both
 are Layer Groups (one base mapping the other is data) and everything
 displays  fine when I’m not using GWC.



 When I enable caching on the base mapping Layer Group I get two different
 results at different zoom levels:

 1.   At zoom levels 5, 6, 8  9: I get “geowebcache-cache-result: HIT”.
 However the images are misaligned/offset to the non-cached layers

 2.   At zoom levels 7, 10, 11, 12, 13  14: I get 
 “geowebcache-cache-result:
 MISS” and “geowebcache-miss-reason: request does not align to grid(s)
 'Ordnance_Survey_National_Grid'”.  Because the cache isn’t used the
 layers align correctly



 I have created a custom Gridset for this and it is British National Grid,
 EPSG:27700 (full specification at the foot of the email).



 I’m really confused as the resolutions that I’ve defined in my web app
 exactly match the Gridset below and I can’t work out if I’ve got a problem
 with the Gridset or something in the Leaflet code.



 If anyone could shed any light on this matter or point me in the right
 direction to troubleshoot it I’d greatly appreciate it.  Please let me know
 if any further information is required.



 Kind regards,



 Rob







 gridSet

   name*Ordnance_Survey_National_Grid*/name

   srs

 number*27700*/number

   /srs

   extent

 coords

   double*1346.748175220855*/double

   double*7097.996956234318*/double

   double*671066.5126380573*/double

   double*1230202.1293903186*/double

 /coords

   /extent

   alignTopLeft*false*/alignTopLeft

   resolutions

 double*5600.0*/double

 double*2800.0*/double

 double*1400.0*/double

 double*700.0*/double

 double*350.0*/double

 double*175.0*/double

 double*84.0*/double

 double*42.0*/double

 double*21.0*/double

 double*11.2*/double

 double*5.6*/double

 double*2.8*/double

 double*1.4*/double

 double*0.7*/double

 double*0.35*/double

 double*0.14*/double

 double*0.07*/double

   /resolutions

   metersPerUnit*1.0*/metersPerUnit

   pixelSize*2.8E-4*/pixelSize

   scaleNames

 string*Ordnance Survey National Grid:0*/string

 string*Ordnance Survey National Grid:1*/string

 string*Ordnance Survey National Grid:2*/string

 string*Ordnance Survey National Grid:3*/string

 string*Ordnance Survey National Grid:4*/string

 string*Ordnance Survey National Grid:5*/string

 string*Ordnance Survey National Grid:6*/string

 

Re: [Geoserver-users] (no subject)

2013-11-13 Thread Hartmut Noack
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 zettber...@linuxuse.dewrote:
 
 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 :-)

HZN

 
 Cheers
 Andrea
 


--
DreamFactory - Open Source REST  JSON Services for HTML5  Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] SRS advertised in capabilities document (with possible funding)??

2013-11-13 Thread Rahkonen Jukka
Hi,

WMS side is handled already. By default the long SRS/CRS list is advertised but 
it can be made shorter. Try 
http://demo.opengeo.org/geoserver/wms?service=WMSversion=1.3.0request=GetCapabilities

However, you are right with WFS and Geoserver advertises only DefaultSRS 
http://demo.opengeo.org/geoserver/wms?service=WFSversion=1.1.0request=GetCapabilities

It would be useful to have a short OtherSRS if WFS clients could make a 
selection list based on that. WFS 1.0.0 standard supports only default SRS so 
there is no place for OtherSRS in GetCapabilities with that version so we must 
be talking about WFS = 1.1.0.

I believe that WFS standard mandates that what is advertised in the 
GetCapabilities must be usable. I think it is compliant that Geoserver offers a 
support for using other SrsNames in WFS 1.1.0 and also in WFS 1.0.0 even this 
possibility is not advertised in GetCapabilities. But as I said, having an 
OtherSRS list would be an improvement. Are you after a common list for the 
whole  WFS service or a per feature type setting for OtherSRS?


-Jukka Rahkonen-


Brent Wood wrote:

 This has been discussed before, but I'm not aware of any solution.

 Several WMS/WFS client applications present users with a list of available 
 SRS determined from the capabilities document - if there are no alternatives 
 listed, then only the default SRS is available.

 Geoserver does NOT provide the list of supported SRS in the capabilities doc 
 (which I think makes it non-compliant with the spec?  eg: 7.2.4.6.7 of the 
 WMS spec)

 I'm aware of earlier discussions that including some 5000 CRS's in every 
 layer creates a bloated document  I agree in principle.

 However, to solve one of the problems we have encountered in our migration 
 fom mapserver to Geoserver, is it possible to allow Geoserver to advertise 
 specified CRS's in the capabilities document? So the admin menu lets some 
 CRS's be identified  selected to be so advertised. This would not preclude 
 unadvertised CRS's being supported as well, but I think does address this 
 issue.

 If this is considered viable, I have access to some funding which could pay 
 for it to be implemented.

--
DreamFactory - Open Source REST  JSON Services for HTML5  Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users