[Geoserver-users] ImagePyramid. Tiles sometimes drawn and sometimes missing

2013-08-29 Thread Russell Hore
I have a set of 100 tiles (UK Ordnance Survey data).

I have created an image pyramid, created a store and added a layer.

When I view it, via GeoServer preview, it all looks fine until I stat to zoom 
in. At a certain zoom level (The scale reads 1:87k) some of the tiles get drawn 
as white.
So tiles are there at 1:174k, not there at 1:87k and back again at 1:44k

When I look in the logs (catalina.out) I see the many lines with a line saying;

...
Caused by: java.lang.IllegalArgumentException: All source images must have the 
same number of bands.
…

The source images all seem to have the same number of bands (1) and I do the 
following to create the pyramid

#!/bin/bash
echo -n Working on
pwd
mkdir out
for file in `ls *tif`
do
echo -n Working on  $file
gdal_translate -of GTiff -co TILED=YES -co COMPRESS=DEFLATE -co 
BLOCKXSIZE=512 -co BLOCKYSIZE=512 -a_srs EPSG:27700 $file out/$file
done
mv out/* .
rm -fr out
for file in `ls *tif`
do
echo -n Working on $file
gdaladdo -clean $file
gdaladdo -r average $file 1 2 4 8 16 32 64 128
done

Followed by

#!/bin/bash
export thedir=`pwd`
export thedir=`basename $thedir`
echo $thedir
mkdir pyramid
ls *tif  ../tiles$thedir.txt
gdal_retile.py -v -levels 9 -ps 2048 2048 -co 'TILED=YES' -co 'BLOCKXSIZE=512' 
-co 'BLOCKYSIZE=512' -s_srs EPSG:27700 -targetDir pyramid --optfile 
../tiles$thedir.txt

I can post more of the log if required.
I am hazarding a guess it is something to do with the version of Java. Do I 
need to go back to 1.6.*

GeoServer 2.3.5
Tomcat 7.0.35
OpenSuse x64
JVM Version Oracle Corporation: 1.7.0_40 (OpenJDK 64-Bit Server VM) 
Native JAI  true
Native JAI ImageIO  true

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Clustered GeoServer on tomcat with load balance on IIS

2013-08-29 Thread Paulius Litvinas
Hello List,

 

I tried to make such GeoServer High Availability  Set as in this link:
http://goo.gl/Hd6F5

 

Everything works ok except tiled layers .

 

I tried with default sample layer topp:tasmania_cities.

 

On separate instances this tiled layer is displayed with no problems.

 

http://192.168.1.17:8080/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EPS
G:4326
http://192.168.1.17:8080/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EP
SG:4326format=image/png format=image/png

http://192.168.1.17:8081/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EPS
G:4326
http://192.168.1.17:8081/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EP
SG:4326format=image/png format=image/png 

 

But if I try to view this layer through load balanced on IIS

 

http://192.168.1.17/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EPSG:432
6
http://192.168.1.17/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EPSG:43
26format=image/png format=image/png

 

I get 

Server Error in '/' Application. 

A potentially dangerous Request.Path value was detected from the client (:).

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code. 

Exception Details: System.Web.HttpException: A potentially dangerous
Request.Path value was detected from the client (:).

Source Error: 

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace: 

[HttpException (0x80004005): A potentially dangerous Request.Path value was
detected from the client (:).]

   System.Web.HttpRequest.ValidateInputIfRequiredByConfig() +710

   System.Web.PipelineStepManager.ValidateHelper(HttpContext context) +184

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.272

 

If I try a group layer (request does not contains :) everything work fine
too.

 

I tried to put the following config to web.config of jakarta virtual
directory, but no success.

 

system.web

httpRuntime requestValidationMode=2.0
requestPathInvalidCharacters=/

 pages
validateRequest=false /

/system.web

 

Maybe I missed something?

 

Thank you for any help.

 

Sincerely,

Paulius Litvinas

GIS Projects Consultant, InfoEra JSC



Mobile: +370 656 10089

Phone: (+370 5) 278 84 56

Fax: (+370 5) 278 47 23

 mailto:paul...@infoera.com paul...@infoera.com

S. Zukausko str. 17, LT-08234, 

Vilnius, Lithuania

cid:image001.jpg@01C7E646.3BEE7150

 blocked::http://www.infoera.lt/ www.infoera.com 

 

image001.jpg--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Clustered GeoServer on tomcat with load balance on IIS

2013-08-29 Thread Simone Giannecchini
Ciao Paulius,
I honestly never saw that error myself.
I guess you'll have to fiddle with the IIS configuration and its security
settings.


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

Ing. Simone Giannecchini
@simogeo
Founder/Director

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

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

---


On Thu, Aug 29, 2013 at 9:32 AM, Paulius Litvinas paul...@infoera.comwrote:

 Hello List,

 ** **

 I tried to make such GeoServer High Availability  Set as in this link:
 http://goo.gl/Hd6F5

 ** **

 Everything works ok except tiled layers .

 ** **

 I tried with default sample layer topp:tasmania_cities.

 ** **

 On separate instances this tiled layer is displayed with no problems.

 ** **


 http://192.168.1.17:8080/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EPSG:4326format=image/png
 


 http://192.168.1.17:8081/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EPSG:4326format=image/png
 

 ** **

 But if I try to view this layer through load balanced on IIS

 ** **


 http://192.168.1.17/geoserver/gwc/demo/topp:tasmania_cities?gridSet=EPSG:4326format=image/png
 

 ** **

 I get 

 Server Error in '/' Application. 

 A potentially dangerous Request.Path value was detected from the client
 (:).

 Description: An unhandled exception occurred during the execution of the
 current web request. Please review the stack trace for more information
 about the error and where it originated in the code. 

 Exception Details: System.Web.HttpException: A potentially dangerous
 Request.Path value was detected from the client (:).

 Source Error: 

 An unhandled exception was generated during the execution of the current
 web request. Information regarding the origin and location of the exception
 can be identified using the exception stack trace below.

 Stack Trace: 

 [HttpException (0x80004005): A potentially dangerous Request.Path value
 was detected from the client (:).]

System.Web.HttpRequest.ValidateInputIfRequiredByConfig() +710

System.Web.PipelineStepManager.ValidateHelper(HttpContext context) +184
 

 Version Information: Microsoft .NET Framework Version:4.0.30319; 
 ASP.NETVersion:4.0.30319.272
 

 ** **

 If I try a group layer (request does not contains „:“) everything work
 fine too.

 ** **

 I tried to put the following config to web.config of jakarta virtual
 directory, but no success.

 ** **

 system.web

 httpRuntime requestValidationMode=2.0
 requestPathInvalidCharacters=/

  pages
 validateRequest=false /

 /system.web

 ** **

 Maybe I missed something?

 ** **

 Thank you for any help.

 ** **

 Sincerely,

 Paulius Litvinas

 GIS Projects Consultant, InfoEra JSC

 

 Mobile: +370 656 10089

 Phone: (+370 5) 278 84 56

 Fax: (+370 5) 278 47 23

 paul...@infoera.com

 S. Zukausko str. 17, LT-08234, 

 Vilnius, Lithuania

 [image: cid:image001.jpg@01C7E646.3BEE7150]

 www.infoera.com 

 ** **


 --
 Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
 Discover the easy way to master current and previous Microsoft technologies
 and advance your career. Get an incredible 1,500+ hours of step-by-step
 tutorial videos with LearnDevNow. Subscribe today and save!
 http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users


image001.jpg--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Logging

2013-08-29 Thread Andrea Aime
On Thu, Aug 29, 2013 at 11:31 AM, Roland van Laar rol...@micite.net wrote:

 On 08/28/2013 05:49 PM, Roland van Laar wrote:
  Hello,
 
 I started to look at the code for GeoServer this morning.
  I'm trying to configure Geoserver so that it will log its error to
  sentry (getsentry.com).
  There is a raven-log4j which should do this for me.
  The first step was creating a new log4j logging file.
 
  So far I am following the following:
  http://docs.geoserver.org/stable/en/user/advanced/logging.html

 So far I've found the following:
 - Configuration files should end in logging.properties, case insensitive.
 - The configuration files are picked up when put in /var/log/tomcat7/

 Probably the log files are loaded before setBaseDirectory in
 GeoServerResourceLoader is called.
 I did set the datadir in web.xml to /var/lib/tomcat6/webapps/geoserver/data


Yes, this issue has been reported in JIra too:
http://jira.codehaus.org/browse/GEOS-5989



 Any ideas what to do next to import the log files from the data/logs dir?


Eh, someone has to take some time, look into the issue, and create a patch
to
solve it

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

---
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] GeoServer and OGC Compliance

2013-08-29 Thread Jody Garnett
I can explain, you need to pay money to officially run the certification
tests, and are rewarded with a cute badge for your website.

Various sponsors have paid for GeoServer to be official, you can see the
badges on geoserver.org

[image: OGC+Compliance.png]
We *do* run the certification tests, unofficially on our own hardware,
prior to each release, and indeed as part of the nightly build:
- http://hudson.opengeo.org/hudson/view/cite/

So if you know anyone with deep pockets we would love to get a bit more
bling for the website.


Jody



On Tue, Aug 27, 2013 at 4:49 PM, Anunay Sinha anunay.sinh...@gmail.comwrote:

 Hi
 On the GeoServer site it says that GeoServer is OGC compliant, but while
 cross referencing on the OGC site, status is marked as Implementing.
 Can anyone please throw some light on this?

 Given if GeoServer is not compliant and is only implementing, then what
 are the points that one need to work on to make it compliant.

 Thanks


 --
 Introducing Performance Central, a new site from SourceForge and
 AppDynamics. Performance Central is your source for news, insights,
 analysis and resources for efficient Application Performance Management.
 Visit us today!
 http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Logging

2013-08-29 Thread Roland van Laar

Thanks

On 08/29/2013 12:25 PM, Andrea Aime wrote:
On Thu, Aug 29, 2013 at 11:31 AM, Roland van Laar rol...@micite.net 
mailto:rol...@micite.net wrote:


On 08/28/2013 05:49 PM, Roland van Laar wrote:
 Hello,

I started to look at the code for GeoServer this morning.
 I'm trying to configure Geoserver so that it will log its error to
 sentry (getsentry.com http://getsentry.com).
 There is a raven-log4j which should do this for me.
 The first step was creating a new log4j logging file.

 So far I am following the following:
 http://docs.geoserver.org/stable/en/user/advanced/logging.html

So far I've found the following:
- Configuration files should end in logging.properties, case
insensitive.
- The configuration files are picked up when put in /var/log/tomcat7/

Probably the log files are loaded before setBaseDirectory in
GeoServerResourceLoader is called.
I did set the datadir in web.xml to
/var/lib/tomcat6/webapps/geoserver/data


Yes, this issue has been reported in JIra too:
http://jira.codehaus.org/browse/GEOS-5989


Any ideas what to do next to import the log files from the
data/logs dir?


Eh, someone has to take some time, look into the issue, and create a 
patch to

solve it

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

---


--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] GeoExt tree using Geoserver

2013-08-29 Thread FNK
Hi, I'm using GeoExt version 1.1 and Geoserver version 2.2.5. I'm creating
a TreePanel for a map loading the list of layers with the
GeoExt.tree.WMSCapabilitiesLoader() method.

I would like that the tree would have more than one level, I mean,
directories with sub-directories and finally the leafs (layers) and all this
automatically. The problem is that, for example, I create in Geoserver a
Grouplayer who has four layers and this is shown in the tree as five leafs,
four leafs with the layers and one with the grouplayer.

The right behaviour for me would be a tree with one directory and four leafs
inside this directory.

Could someone help me with this? Is this possible?

Thanks,

FNK.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/GeoExt-tree-using-Geoserver-tp5075017.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Logging

2013-08-29 Thread Roland van Laar
For those wishing to use Sentry for logging, I got it working :-).
I'm using raven-java: https://github.com/kencochrane/raven-java

1) Copy the default logger 'PRODUCTION_LOGGING.properties' file to 
SENTRY_LOGGING.properties
2) Open the file in a text editor
3) Change the line that starts with log4j.rootLogger to:
log4j.rootLogger=WARN, geoserverlogfile, stdout, SentryAppender
4) Add the following to the file, change the sentry, key, host and ID :
log4j.appender.SentryAppender=net.kencochrane.raven.log4j.SentryAppender
log4j.appender.SentryAppender.dsn=http://SENTRY:KEY@HOST/ID

5) Download necessary jars:
Read: 
https://github.com/kencochrane/raven-java/tree/master/raven-log4j#manual-dependency-management
And install them to geoserver/WEB-INF/lib
6) I needed to remove my old commons-codec and log4j jars.
7) Restart tomcat
8) Select the new SENTRY_LOGGING.properties in the Global Settings menu.
9) Voila

Roland

On 08/29/2013 11:31 AM, Roland van Laar wrote:
 On 08/28/2013 05:49 PM, Roland van Laar wrote:
 Hello,

 I started to look at the code for GeoServer this morning.
 I'm trying to configure Geoserver so that it will log its error to 
 sentry (getsentry.com).
 There is a raven-log4j which should do this for me.
 The first step was creating a new log4j logging file.

 So far I am following the following:
 http://docs.geoserver.org/stable/en/user/advanced/logging.html

 So far I've found the following:
 - Configuration files should end in logging.properties, case insensitive.
 - The configuration files are picked up when put in /var/log/tomcat7/

 Probably the log files are loaded before setBaseDirectory in 
 GeoServerResourceLoader is called.
 I did set the datadir in web.xml to 
 /var/lib/tomcat6/webapps/geoserver/data

 Any ideas what to do next to import the log files from the data/logs dir?


 I deployed the latest stable geoserver (WAR) on ubuntu with tomcat 7.
 I added a GEOTOOLS_DEVELOPER_LOGGING example configuration in the file
 GEOTOOLS_TEST_LOGGING.properties.
 I added the file in the following directory 
 /var/lib/tomcat7/webapps/geoserver/data/logs.
 Next up was a tomcat7 restart.
 The file didn't show under Logging Profile on the global settings page.

 What do I need to do differently to let the new logging file show up 
 on the global settings page?

 Thnx,
 Thank you,

 Roland



--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] GeoExt tree using Geoserver

2013-08-29 Thread Simone Giannecchini
Ciao Pablo,
I would suggest to direct this question to the GeoExt mailing list.

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

Ing. Simone Giannecchini
@simogeo
Founder/Director

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

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

---


On Thu, Aug 29, 2013 at 5:12 PM, FNK pablo.fnk.fon...@gmail.com wrote:
 Hi, I'm using GeoExt version 1.1 and Geoserver version 2.2.5. I'm creating
 a TreePanel for a map loading the list of layers with the
 GeoExt.tree.WMSCapabilitiesLoader() method.

 I would like that the tree would have more than one level, I mean,
 directories with sub-directories and finally the leafs (layers) and all this
 automatically. The problem is that, for example, I create in Geoserver a
 Grouplayer who has four layers and this is shown in the tree as five leafs,
 four leafs with the layers and one with the grouplayer.

 The right behaviour for me would be a tree with one directory and four leafs
 inside this directory.

 Could someone help me with this? Is this possible?

 Thanks,

 FNK.



 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/GeoExt-tree-using-Geoserver-tp5075017.html
 Sent from the GeoServer - User mailing list archive at Nabble.com.

 --
 Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
 Discover the easy way to master current and previous Microsoft technologies
 and advance your career. Get an incredible 1,500+ hours of step-by-step
 tutorial videos with LearnDevNow. Subscribe today and save!
 http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Logging

2013-08-29 Thread Andrea Aime
On Thu, Aug 29, 2013 at 5:24 PM, Roland van Laar rol...@micite.net wrote:

 For those wishing to use Sentry for logging, I got it working :-).
 I'm using raven-java: https://github.com/kencochrane/raven-java

 1) Copy the default logger 'PRODUCTION_LOGGING.properties' file to
 SENTRY_LOGGING.properties
 2) Open the file in a text editor
 3) Change the line that starts with log4j.rootLogger to:
 log4j.rootLogger=WARN, geoserverlogfile, stdout, SentryAppender
 4) Add the following to the file, change the sentry, key, host and ID :
 log4j.appender.SentryAppender=net.kencochrane.raven.log4j.SentryAppender
 log4j.appender.SentryAppender.dsn=http://SENTRY:KEY@HOST/ID

 5) Download necessary jars:
 Read:

 https://github.com/kencochrane/raven-java/tree/master/raven-log4j#manual-dependency-management
 And install them to geoserver/WEB-INF/lib
 6) I needed to remove my old commons-codec and log4j jars.
 7) Restart tomcat
 8) Select the new SENTRY_LOGGING.properties in the Global Settings menu.
 9) Voila


Nice recipe, thanks for sharing :-)

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

---
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] getFeature within geoserver

2013-08-29 Thread Andrea Aime
On Thu, Aug 29, 2013 at 7:27 PM, Bessette-Halsema, Dominique E 
dominique.besse...@gdit.com wrote:

 I’m creating a wps and I was wondering how I get a feature by a featureid
 within geoserver..

 ** **

 I would like
 https://localhost:8443/geoserver/gis/ows?service=WFSversion=1.0.0request=GetFeaturetypeName=gis:simpleafeaturefeatureId=43601
 but using the geoserver classes.

 ** **

 *public* *static* *void* GetFeature(String name, String namespace,
 String fid){

 GeoServer geoServer = GeoServerExtensions.*bean*(GeoServer.*class*
 );

 DefaultWebFeatureService20 wfs = 
 *new*DefaultWebFeatureService20(geoServer);
 

 WFSInfo wfsinfo = wfs.getServiceInfo();

 Catalog catalog = wfs.getCatalog();

 *FeatureTypeInfo* featuretype =
 catalog.getFeatureTypeByName(namespace, name);

 ** **

 //now what

 }


You're going too much the long way. Get the Catalog bean, then do something
like
(almost pseudo code, totally untested):

FeatureTypeInfo info = catalog.getFeatureTypeByName(theLayerName);
SimpleFeatureSource fs = info.getFeatureSource();
FilterFactory ff = CommonFActoryFinder.getFilterFactory();
SimpleFeatureCollect coll = fs.getFeatures(ff.id(ff.featureId(yourId));
SimpleFeatureIterator fi = null;
SimpleFeature theFeature = null;
try {
fi = coll.features();
theFeature = fi.next();
} finally {
   fi.close();
}

Hope this helps

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

---
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] getFeature within geoserver

2013-08-29 Thread Bessette-Halsema, Dominique E
That worked thanks!

 

public static SimpleFeature GetFeature(String featurename, String namespace,
String fid){

SimpleFeature feature = null;

GeoServer geoServer = GeoServerExtensions.bean(GeoServer.class);

DefaultWebFeatureService20 wfs = new
DefaultWebFeatureService20(geoServer);

Catalog catalog = wfs.getCatalog();

FeatureTypeInfo info = catalog.getFeatureTypeByName(namespace,
featurename);

try{

SimpleFeatureSource fs = (SimpleFeatureSource)
info.getFeatureSource(null, null);

FilterFactory ff = CommonFactoryFinder.getFilterFactory();

Id id = ff.id(Collections.singleton(ff.featureId(fid)));

SimpleFeatureCollection coll = fs.getFeatures(id);

SimpleFeatureIterator fi = null;

try {

fi = coll.features();

feature = fi.next(); 

} finally {

   fi.close();

}

}

catch(Exception e){

LOGGER.info(e.getMessage());

}

 

return feature;

}

 

Dominique Bessette

Engineer, Software

General Dynamics Information Technology

Supporting Fleet Numerical Meteorology and Oceanography Center (FNMOC)

Office: 619-881-2748

 

 

From: andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] On Behalf Of
Andrea Aime
Sent: Thursday, August 29, 2013 11:07 AM
To: Bessette-Halsema, Dominique E
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] getFeature within geoserver

 

On Thu, Aug 29, 2013 at 7:27 PM, Bessette-Halsema, Dominique E
dominique.besse...@gdit.com wrote:

I'm creating a wps and I was wondering how I get a feature by a featureid
within geoserver..

 

I would like https://localhost:8443/geoserver/gis/ows?service=WFS
https://localhost:8443/geoserver/gis/ows?service=WFSversion=1.0.0request=
GetFeaturetypeName=gis:simpleafeaturefeatureId=43601
version=1.0.0request=GetFeaturetypeName=gis:simpleafeaturefeatureId=4360
1  but using the geoserver classes.

 

public static void GetFeature(String name, String namespace, String
fid){

GeoServer geoServer = GeoServerExtensions.bean(GeoServer.class);

DefaultWebFeatureService20 wfs = new
DefaultWebFeatureService20(geoServer);

WFSInfo wfsinfo = wfs.getServiceInfo();

Catalog catalog = wfs.getCatalog();

FeatureTypeInfo featuretype =
catalog.getFeatureTypeByName(namespace, name);

 

//now what

}

 

You're going too much the long way. Get the Catalog bean, then do something
like

(almost pseudo code, totally untested):

 

FeatureTypeInfo info = catalog.getFeatureTypeByName(theLayerName);

SimpleFeatureSource fs = info.getFeatureSource();

FilterFactory ff = CommonFActoryFinder.getFilterFactory();

SimpleFeatureCollect coll = fs.getFeatures(ff.id(ff.featureId(yourId));

SimpleFeatureIterator fi = null;

SimpleFeature theFeature = null;

try {

fi = coll.features();

theFeature = fi.next();

} finally {

   fi.close();

}

 

Hope this helps

 

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

 

---



smime.p7s
Description: S/MIME cryptographic signature
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] geotools gridcoverage name

2013-08-29 Thread Bessette-Halsema, Dominique E
I was wondering if there was a way to get the gridcoverage name.  

 

The coverage.getName return the International Name that is the entire path
to the .tif

 

Coverage.getName =
/gis/geoserver/external/data/dynamic/isisgridcoverage/WW3_W_AFRICA/w_africa_
nest2_appl/peak_wav_per/WW3_W_AFRICA:2013082912:w_africa_nest2_appl:peak_wav
_per:surface:::fcst_ops:0480

 

Where I need the layer name. WW3_W_PAC:w_pac_nest2_appl2.max_wav_ht.surface

 

Thanks!

 

 



smime.p7s
Description: S/MIME cryptographic signature
--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] [Geoserver-devel] Make pie chart from database query in geoserver map

2013-08-29 Thread Jody Garnett
You will want to ask on the geoserver-users email list, the geoserver-devel
list is for volunteers working to make the project better for you!


On Tue, Aug 27, 2013 at 1:14 PM, Tintu mary George 
tintumarygeo...@outlook.com wrote:

 Hi,

 I am very new to geoserver.I Have one question.
 I am using geoserver,openlayer and postGIS. I want to make pie chart on
 map based on the data from PostGIS  database. I am not able to retrieve the
 data. Can you please tell me how to get data from database and make pie
 chart accordingly on given point ?
 I have one main.html  ,while querying it should get data from database and
 display pie chart on map point..Please tell me how to do this.


 --
 Introducing Performance Central, a new site from SourceForge and
 AppDynamics. Performance Central is your source for news, insights,
 analysis and resources for efficient Application Performance Management.
 Visit us today!
 http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk
 ___
 Geoserver-devel mailing list
 geoserver-de...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-devel


--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] help with SLD

2013-08-29 Thread J.Alejandro Martinez Linares

El 28/08/13 06:58, cmaul escribió:
 Well, throw the sld:VendorOptions/ out check whether it works and put them
 back one by one until it crashes
I dont understan what do you want that i do, please explain better, i 
remove sld: of the VerdorOptions, if that what you want?
of that way neither works. here are the SLD.

regards

?xml version=1.0 encoding=UTF-8?
sld:StyledLayerDescriptor xmlns=http://www.opengis.net/sld; 
xmlns:sld=http://www.opengis.net/sld; 
xmlns:ogc=http://www.opengis.net/ogc; 
xmlns:gml=http://www.opengis.net/gml; version=1.0.0
 sld:UserLayer
 sld:LayerFeatureConstraints
 sld:FeatureTypeConstraint/
 /sld:LayerFeatureConstraints
 sld:UserStyle
 sld:NameDefault Styler/sld:Name
 sld:Title/
 sld:FeatureTypeStyle
 sld:Namesimple/sld:Name
sld:FeatureTypeNameFeature/sld:FeatureTypeName
sld:SemanticTypeIdentifiergeneric:geometry/sld:SemanticTypeIdentifier
sld:SemanticTypeIdentifiersimple/sld:SemanticTypeIdentifier
 sld:Rule
 sld:LineSymbolizer
 sld:Stroke
 sld:CssParameter 
name=stroke#D95F02/sld:CssParameter
 /sld:Stroke
 /sld:LineSymbolizer
 sld:TextSymbolizer
 sld:Label
ogc:PropertyNamenombre/ogc:PropertyName
 sld:Font
 sld:CssParameter 
name=font-familyArial/sld:CssParameter
 sld:CssParameter 
name=font-size12.0/sld:CssParameter
 sld:CssParameter 
name=font-stylenormal/sld:CssParameter
 sld:CssParameter 
name=font-weightnormal/sld:CssParameter
 /sld:Font
 /sld:Label
 sld:Halo
 sld:Radius
sld:Literal1.5/sld:Literal
 /sld:Radius
 /sld:Halo
 sld:Fill
 sld:CssParameter 
name=fill#00/sld:CssParameter
 /sld:Fill
 sld:Priority500/sld:Priority
 VendorOption name=followLinetrue/VendorOption
 VendorOption name=repeat250/VendorOption
 VendorOption name=groupyes/VendorOption
 VendorOption 
name=maxDisplacement100/VendorOption
 sld:LabelPlacement
 sld:LinePlacement /
 /sld:LabelPlacement
 /sld:TextSymbolizer
 /sld:Rule
 /sld:FeatureTypeStyle
 /sld:UserStyle
 /sld:UserLayer
/sld:StyledLayerDescriptor






 -
 

 Dr Christian Maul
 Project Manager

 Information Services Branch
 Department of Sustainability and Environment
 Level13, Marland House, 570 Bourke Street
 Melbourne 3000

 PO Box 500, East Melbourne Vic 3002


 Telephone:+61-3-8636 2325
 Telefax:  +61-3-8636 2813
 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/help-with-SLD-tp5074614p5074678.html
 Sent from the GeoServer - User mailing list archive at Nabble.com.

 --
 Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
 Discover the easy way to master current and previous Microsoft technologies
 and advance your career. Get an incredible 1,500+ hours of step-by-step
 tutorial videos with LearnDevNow. Subscribe today and save!
 http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users



--

Este mensaje le ha llegado mediante el servicio de correo electronico que 
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema 
Nacional de Salud. La persona que envia este correo asume el compromiso de usar 
el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/


--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] help with SLD

2013-08-29 Thread cmaul
Hi,

that is the SLD that works in geoserver 2.3.3. At the bottom.
But first please read what was wrong with it, as this may to help you to
help yourself next time.

The editor complained first about the VendorOption tag. Unfortunately XML
error messages in editors or geoserver are not very precise. So it pays to
look  as well at the tag before as this may be the reason:
Here it is the case: 
sld:Halo
sld:Radius
ogc:Literal1.5/ogc:Literal
/sld:Radius
sld:Fill
sld:CssParameter
name=fill#00/sld:CssParameter
/sld:Fill
/sld:Halo
The fill parameter is part of the Halo. On its own geoserver does not know
what to do with it, so the closing /Halo tag needs to be after /sld:Fill
not after the radius. So taking out the vendorOption would have resulted in
complaining about the sld:TextSymbolizer and that should have prompted you
to say: Hold on there must be something wrong before that

Next problem: It is not sld:Literal, it is ogc:Literal. Literal is a tag
from a different namespace.

Next problem, where it is again complaining about the FOLLOWING tag i.e.
sld:Font not about the offending tag.

sld:Label
ogc:PropertyNamenombre/ogc:PropertyName
/sld:Label 

The label ends after the String you are using as label. Font is a subtag of
sld:TextSymbolizer. Essentially they come in the order how, what , which
font, where, halo, Fill. All these tags are on the same level. So closing
the  /sld:Label  after the font does not work, although the XML is well
formed.

You have then three tags which do not have any content. And geoserver
complains about them as well. Rightfully I would say. Why do you have
placement tags when you do not say where.

sld:LabelPlacement
sld:LinePlacement /
/sld:LabelPlacement 

On second thoughts the complaint may actually be because of the required
order of the tags.
Line 506 - 514 from the 1.0.0 schema:
xsd:extension base=sld:SymbolizerType
xsd:sequence
xsd:element ref=sld:Geometry 
minOccurs=0/
xsd:element ref=sld:Label 
minOccurs=0/
xsd:element ref=sld:Font 
minOccurs=0/
xsd:element 
ref=sld:LabelPlacement minOccurs=0/
xsd:element ref=sld:Halo 
minOccurs=0/
xsd:element ref=sld:Fill 
minOccurs=0/
/xsd:sequence
So the schema says: this must be your order. And that is why the
vendorOptions need to come last. Please note; There is a difference between
the Fill of the entire Labeling and the fill of the halo, I didn't know what
you want and assumed the halo below.


Now the sld that works (at least on my geoserver):

?xml version=1.0 encoding=UTF-8?
sld:StyledLayerDescriptor xmlns=http://www.opengis.net/sld;
xmlns:sld=http://www.opengis.net/sld;
xmlns:ogc=http://www.opengis.net/ogc;
xmlns:gml=http://www.opengis.net/gml; version=1.0.0
 sld:UserLayer
 sld:LayerFeatureConstraints
 sld:FeatureTypeConstraint/
 /sld:LayerFeatureConstraints
 sld:UserStyle
 sld:NameDefault Styler/sld:Name
 sld:Title/
 sld:FeatureTypeStyle
 sld:Namesimple/sld:Name
sld:FeatureTypeNameFeature/sld:FeatureTypeName
sld:SemanticTypeIdentifiergeneric:geometry/sld:SemanticTypeIdentifier
sld:SemanticTypeIdentifiersimple/sld:SemanticTypeIdentifier
 sld:Rule
 sld:LineSymbolizer
 sld:Stroke
 sld:CssParameter
name=stroke#D95F02/sld:CssParameter
 /sld:Stroke
 /sld:LineSymbolizer
sld:TextSymbolizer
sld:Label
ogc:PropertyNamenombre/ogc:PropertyName
/sld:Label  
sld:Font
 sld:CssParameter
name=font-familyArial/sld:CssParameter
 sld:CssParameter
name=font-size12.0/sld:CssParameter
 sld:CssParameter
name=font-stylenormal/sld:CssParameter
 sld:CssParameter
name=font-weightnormal/sld:CssParameter
/sld:Font   
   

 sld:Halo
 sld:Radius
ogc:Literal1.5/ogc:Literal
 /sld:Radius

 sld:Fill
 sld:CssParameter
name=fill#00/sld:CssParameter
 /sld:Fill
/sld:Halo
 sld:Priority500/sld:Priority
 VendorOption name=followLinetrue/VendorOption
 VendorOption name=repeat250/VendorOption
 VendorOption name=groupyes/VendorOption
 VendorOption

[Geoserver-users] Alignment problems with ESRI software

2013-08-29 Thread cmaul
Hello,

There is the international inch (25.4 mm) and the US Survey Inch (25.4000508
mm), which one is Geoserver actually internally considering an inch?

Our current scales that work correctly with the ESRI JavaScript API are
based on the US survey inch, whereas the scales that work correctly with
ArcMap are based on the international inch.

Puzzled.

Christian




-


Dr Christian Maul
Project Manager

Information Services Branch
Department of Sustainability and Environment
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002


Telephone:+61-3-8636 2325
Telefax:  +61-3-8636 2813
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Alignment-problems-with-ESRI-software-tp5075124.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Alignment problems with ESRI software

2013-08-29 Thread Jody Garnett
You could check the JSR javadocs to see which one is in use, or the source 
code. 

Let me check: http://jscience.org/jsr-275/api/javax/measure/unit/NonSI.html#INCH

public static final Unit 
(http://jscience.org/jsr-275/api/javax/measure/unit/Unit.html)Length 
(http://jscience.org/jsr-275/api/javax/measure/quantity/Length.html) INCH
A unit of length equal to 0.0254 m (standard name in).


Still if you need to define more units you can, does the WKT or EPSG provide an 
EPSG code for the different units so we can tell them apart?

-- 
Jody Garnett


On Friday, 30 August 2013 at 1:23 PM, cmaul wrote:

 Hello,
 
 There is the international inch (25.4 mm) and the US Survey Inch (25.4000508
 mm), which one is Geoserver actually internally considering an inch?
 
 Our current scales that work correctly with the ESRI JavaScript API are
 based on the US survey inch, whereas the scales that work correctly with
 ArcMap are based on the international inch.
 
 Puzzled.
 
 Christian
 
 
 
 
 -
 
 
 Dr Christian Maul
 Project Manager
 
 Information Services Branch
 Department of Sustainability and Environment
 Level13, Marland House, 570 Bourke Street
 Melbourne 3000
 
 PO Box 500, East Melbourne Vic 3002
 
 
 Telephone: +61-3-8636 2325
 Telefax: +61-3-8636 2813
 --
 View this message in context: 
 http://osgeo-org.1560.x6.nabble.com/Alignment-problems-with-ESRI-software-tp5075124.html
 Sent from the GeoServer - User mailing list archive at Nabble.com 
 (http://Nabble.com).
 
 --
 Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
 Discover the easy way to master current and previous Microsoft technologies
 and advance your career. Get an incredible 1,500+ hours of step-by-step
 tutorial videos with LearnDevNow. Subscribe today and save!
 http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net 
 (mailto:Geoserver-users@lists.sourceforge.net)
 https://lists.sourceforge.net/lists/listinfo/geoserver-users
 
 


--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users