Re: [Geoserver-users] Calculate BBox (width/height) based on image size, scale and center of original BBox

2011-10-27 Thread zorg
None can help me or give me link about this
thank
Le 27/10/2011 10:30, zorg a écrit :
> Hi,
>
> I send to geoserver (http://my_ip:80/geoserver/wfs) this query:
>
>xmlns:wfs='http://www.opengis.net/wfs'
>   xmlns:gml='http://www.opengis.net/gml'
>   xmlns:ogc='http://www.opengis.net/ogc'>
>  typeName='Myworkspace:mylayer'>
> 
> 
> Myworkspace:idpar
> Myvalue
> 
> 
> 
> 
>
> I get the coordonnate of BBox, therefore I can determin the center of my
> bbox.
>
> (Projection : EPSG: 3945)
>
> I want to print in a pdf an image (example: size 500 pixel * 450 pixel
> and 96 dpi ) with specific scale (1/1).
>
> How do I calculate the new BBox?
>
> Thanks
>
>
>
> --
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] problem with imagecollection plugin

2011-10-27 Thread Garey Mills

Andrea -

Thanks for the info. I downloaded gdal-1.7.3 and installed it as 
suggested. I am now getting this error:


Oct 27, 2011 1:42:35 PM 
it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL
WARNING: Failed to load the GDAL native libs. This is not a problem 
unless you need to use the GDAL plugins: they won't be 
enabled.java.lang.UnsatisfiedLinkError: 
/usr/local/jdk1.6.0_23/jre/lib/i386/libgdaljni.so: 
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by 
/usr/local/jdk1.6.0_23/jre/lib/i386/libgdal.so.1)


in /usr/lib I have

libstdc++.so.6.0.8

What's the best way of getting gdal working from here?

Garey



On 10/27/2011 11:16 AM, Andrea Aime wrote:
On Thu, Oct 27, 2011 at 7:04 PM, Garey Mills 
mailto:gmi...@library.berkeley.edu>> wrote:


Robert -


Thank you. Commenting out



in server.xml worked!

Now the next thing I want to do is to make the Imagecollection
plugin work with MrSid images. Does anyone have any idea what the
steps would be to do that? In the imagecollection module, the only
mention of formats seems to be in Utils.java where the code checks
the file extension. However, though I add in '.sid', there, when I
try to publish a MrSid image, MrSid is not one of the image
formats that show up.


Hmm... do you have the support to read MrSid files to start with?
It's part of the GDAL data sources, requires the right GDAL native 
libs to be installed, distributed

along with imageio-ext itself.

Anyways, don't know if having those is sufficient.. but for sure if 
don't have a MrSid store showing
up in the store list when you try to create a new store you won't be 
able to open a .sid file


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

---
--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geowebcache.xml problems

2011-10-27 Thread GeoGEOrge
I am using geoserver 2.1.2
I was having problems while using JAVA JRE 7
After hearing from Tim Martin I switched to JAVA JRE 6 update 29 which has
been working for me
I stick to the stable versions

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Geowebcache-xml-problems-tp6933380p6937868.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geowebcache.xml problems

2011-10-27 Thread Gabriel Roldan
Oh, that's good to know. But what geoserver version were you using? if
2.1.x it should work with Java5, otherwise we have a problem. If 2.2.x
then you actually need Java6 afaik.

Cheers,
Gabriel

On Thu, Oct 27, 2011 at 10:48 AM, GeoGEOrge  wrote:
> Tim Martin came up with another part of the solution to my problem - using
> Java JDK 6
> Thank you again for your help with my geowebcache.xml
>
> --
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/Geowebcache-xml-problems-tp6933380p6936403.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> --
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



-- 
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Question about generating KML files

2011-10-27 Thread Andrea Aime
2011/10/27 António Rocha 

> Greetings
>
> I have one question tregarding how Geoserver generates KML files for
> layers: Since KML data must be in EPSG:4326 and my data is not in that
> system, what is geoserver doing to generate KML? Reprojecting data to
> EPSG:4326 and then generating KML or diretcly converting to KML
> coordinates without reprojecting?
>

Reprojecting to 4326. Since reprojection is involved, it is imperative that
your data native CRS is setup properly

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

---
--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] problem with imagecollection plugin

2011-10-27 Thread Andrea Aime
On Thu, Oct 27, 2011 at 7:04 PM, Garey Mills wrote:

>  Robert -
>
>
> Thank you. Commenting out
>
>
>
>  className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
>
>
> in server.xml worked!
>
> Now the next thing I want to do is to make the Imagecollection plugin
> work with MrSid images. Does anyone have any idea what the steps would be to
> do that? In the imagecollection module, the only mention of formats seems to
> be in Utils.java where the code checks the file extension. However, though I
> add in '.sid', there, when I try to publish a MrSid image, MrSid is not one
> of the image formats that show up.
>

Hmm... do you have the support to read MrSid files to start with?
It's part of the GDAL data sources, requires the right GDAL native libs to
be installed, distributed
along with imageio-ext itself.

Anyways, don't know if having those is sufficient.. but for sure if don't
have a MrSid store showing
up in the store list when you try to create a new store you won't be able to
open a .sid file

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

---
--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Question about generating KML files

2011-10-27 Thread António Rocha
Greetings

I have one question tregarding how Geoserver generates KML files for 
layers: Since KML data must be in EPSG:4326 and my data is not in that 
system, what is geoserver doing to generate KML? Reprojecting data to 
EPSG:4326 and then generating KML or diretcly converting to KML 
coordinates without reprojecting?
Thanks
Antonio


__ Information from ESET NOD32 Antivirus, version of virus signature 
database 6580 (20111027) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] GeoExplorer

2011-10-27 Thread Shadin

Hi

what do you think guys of using "GeoExplorer" to build my map application
instead of writing the code ?

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/GeoExplorer-tp6937368p6937368.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] problem with imagecollection plugin

2011-10-27 Thread Garey Mills

Robert -


Thank you. Commenting out



in server.xml worked!

Now the next thing I want to do is to make the Imagecollection 
plugin work with MrSid images. Does anyone have any idea what the steps 
would be to do that? In the imagecollection module, the only mention of 
formats seems to be in Utils.java where the code checks the file 
extension. However, though I add in '.sid', there, when I try to publish 
a MrSid image, MrSid is not one of the image formats that show up.


Garey Mills
--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] User permissions issue - unix install

2011-10-27 Thread christian . mueller
First, check under which user tomcat is running. For linux, this can be done
with

ps -ef | grep java

After you get the user, make

chown -R  /deploy/geoserver/tomcat_6.0.29/webapps/geoserver/data

On linux, this changes the owner of the GEOSERVER_DATA_DIR recursivly.

Remark: The user you use for administer Geoserver has nothing to do  
with the unix file permissions.

Hope this helps.
Christian




Zitat von appela :

> Hi all,
>
> We are experiencing a problem I have not faced before.
>
> Example:
> I have a user role as administrator within the admin UI
> I can create a new Store just fine.
> If I go back to make a change to the Store, say update max connections or
> something like that I get an error saying
> java.lang.IllegalArgumentException: Error saving data store:Error persisting
> DataStoreInfoImpl[gerpostal] to
> /deploy/geoserver/tomcat_6.0.29/webapps/geoserver/data/workspaces/globalpostal/gerpostal/datastore.xml
>
> The user that 'owns' the datastore.xml file is the user that manages the
> machine that geoserver is running on, while the folders created within the
> gerpostal folder belong to someone else.
>
> What dictates who owns what when geoserver generates the folders and files
> upon creation of stores, layers, etc?
>
> This is becoming troublesome since we can't edit anything we have already
> created.
>
> thanks in advance.
>
> Tony
>
> --
> View this message in context:   
> http://osgeo-org.1803224.n2.nabble.com/User-permissions-issue-unix-install-tp6936693p6936693.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> --
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>




This message was sent using IMP, the Internet Messaging Program.



--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] User permissions issue - unix install

2011-10-27 Thread appela
Hi all, 

We are experiencing a problem I have not faced before.

Example: 
I have a user role as administrator within the admin UI
I can create a new Store just fine. 
If I go back to make a change to the Store, say update max connections or
something like that I get an error saying 
java.lang.IllegalArgumentException: Error saving data store:Error persisting
DataStoreInfoImpl[gerpostal] to
/deploy/geoserver/tomcat_6.0.29/webapps/geoserver/data/workspaces/globalpostal/gerpostal/datastore.xml

The user that 'owns' the datastore.xml file is the user that manages the
machine that geoserver is running on, while the folders created within the
gerpostal folder belong to someone else.

What dictates who owns what when geoserver generates the folders and files
upon creation of stores, layers, etc?

This is becoming troublesome since we can't edit anything we have already
created.

thanks in advance.

Tony

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/User-permissions-issue-unix-install-tp6936693p6936693.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] how to create layers automatically

2011-10-27 Thread John Koehring
Markus,

There is a REST interface that supports this. You can find documentation
at http://docs.geoserver.org/stable/en/user/restconfig/index.html.

-- john

-Original Message-
From: Markus Innerebner [mailto:markus.innereb...@inf.unibz.it] 
Sent: Thursday, October 27, 2011 07:16
To: geoserver-users
Subject: [Geoserver-users] how to create layers automatically

HI all

until now I used the Geoserver Webapplication GUI to create and
configure my layers. 

Now I need to create layers automatically, since my application needs to
create for each logged in user separate layers in Geoserver, which are
created during the login and again deleted when logging out.

I assume this is done via invoking some services or Servlets of
Geoserver. Is there a way to do that or is there any documentation
available.

Many thanks for your help 

regards Markus



--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn about
Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] how to create layers automatically

2011-10-27 Thread Andrea Aime
On Thu, Oct 27, 2011 at 4:15 PM, Markus Innerebner <
markus.innereb...@inf.unibz.it> wrote:

> HI all
>
> until now I used the Geoserver Webapplication GUI to create and
> configure my layers.
>
> Now I need to create layers automatically, since my application needs to
> create for each logged in user separate layers in Geoserver, which are
> created during the login and again deleted when logging out.
>

Do you mean logging in and out of GeoServer or an external application?

If it's an external application you should look into  "rest configuration":
http://docs.geoserver.org/stable/en/user/restconfig/rest-config-api.html

If it's the GeoServer GUI instead... I don't know if it can be done at all,
but these users would be administrators and thus see everything and
the "remember me" cookies would make it hard to tell about an actual
logout.

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

---
--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] how to create layers automatically

2011-10-27 Thread Markus Innerebner
HI all

until now I used the Geoserver Webapplication GUI to create and
configure my layers. 

Now I need to create layers automatically, since my application needs to
create for each logged in user separate layers in Geoserver, which are
created during the login and again deleted when logging out.

I assume this is done via invoking some services or Servlets of
Geoserver. Is there a way to do that or is there any documentation
available.

Many thanks for your help 

regards Markus


--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geowebcache.xml problems

2011-10-27 Thread GeoGEOrge
Tim Martin came up with another part of the solution to my problem - using
Java JDK 6
Thank you again for your help with my geowebcache.xml

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Geowebcache-xml-problems-tp6933380p6936403.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geowebcache.xml problems (GeoGEOrge)

2011-10-27 Thread GeoGEOrge
Thank you very much! -I installed jre1.6.0_29 and that solved the problem.

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Re-Geowebcache-xml-problems-GeoGEOrge-tp6936224p6936393.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geowebcache in openlayers problem

2011-10-27 Thread GeoGEOrge
I am trying to do something similar, without much success.
you might see if this is related to your problem:

It is, however, very possible to create an OpenLayers application that
caches tiles; just make sure that the tileorigin aligns with the gridset.
from: http://docs.geoserver.org/latest/en/user/geowebcache/using.html

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Geowebcache-in-openlayers-problem-tp6936192p6936229.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geowebcache.xml problems (GeoGEOrge)

2011-10-27 Thread Tim Martin
Hi 

I was having identical errors in the logs yesterday

I so;lved it by using Java JDK 6

I had setup a new box and installed 7.

So there are obviously some glitches

Tim



Message: 4
Date: Thu, 27 Oct 2011 05:05:53 -0700 (PDT)
From: GeoGEOrge 
Subject: Re: [Geoserver-users] Geowebcache.xml problems
To: geoserver-users@lists.sourceforge.net
Message-ID: <1319717153662-6936083.p...@n2.nabble.com>
Content-Type: text/plain; charset=us-ascii

Thank you for your help. I have been feeling very stuck and would really
like
to be able to use geowebcache.
I added -Xmx512m -XX:MaxPermSize=256m to my
geoserver-2.1.2/bin/startup.sh
and 
I substituted the gridSet you supplied (it complained until I moved the
metersPerUnit after scaleDenominators) 

I still get what appears to me to be the same message and geoserver
doesn't
work:

2011-10-27 07:55:19,024 INFO [gwc.config] - Initializing GeoServer
specific
GWC configuration from gwc-gs.xml
2011-10-27 07:55:21,800 INFO [storage.DefaultStorageFinder] -


2011-10-27 07:55:21,801 INFO [storage.DefaultStorageFinder] - *** Found
Java
environment variable GEOSERVER_DATA_DIR set to
/opt/geoserver-2.1.2/data_dir, using it as the default prefix. ***
2011-10-27 07:55:21,801 INFO [storage.DefaultStorageFinder] -


2011-10-27 07:55:22,631 INFO [jdbc.JDBCMBWrapper] - MetaStore database
is
version 120
2011-10-27 07:55:22,727 INFO [config.XMLConfiguration] - Found
configuration
file in /opt/geoserver-2.1.2/data_dir/gwc
2011-10-27 07:55:23,186 INFO [config.XMLConfiguration] - Configuration
file
validated fine.
2011-10-27 07:55:23,246 INFO [storage.StorageBroker] - Destroying
StorageBroker
2011-10-27 07:55:24,523 INFO [geoserver.catalog] - Disposing datastore
'DataStoreInfoImpl--570ae188:124761b8d78:-7fd9'
2011-10-27 07:55:24,524 INFO [geoserver.catalog] - Disposing datastore
'DataStoreInfoImpl--570ae188:124761b8d78:-7fdc'
2011-10-27 07:55:24,527 ERROR [context.ContextLoader] - Context
initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean
with name 'GWCCapabilitiesHomePageProvider' defined in URL
[jar:file:/opt/geoserver-2.1.2/webapps/geoserver/WEB-INF/lib/web-gwc-2.1
.2.jar!/applicationContext.xml]:
Cannot resolve reference to bean 'gwcFacade' while setting constructor
argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean
with name 'gwcFacade' defined in URL
[jar:file:/opt/geoserver-2.1.2/webapps/geoserver/WEB-INF/lib/gwc-2.1.2.j
ar!/geowebcache-geoserver-context.xml]:
Cannot resolve reference to bean 'gwcTLDispatcher' while setting
constructor
argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean
with name 'gwcTLDispatcher' defined in URL
[jar:file:/opt/geoserver-2.1.2/webapps/geoserver/WEB-INF/lib/gwc-2.1.2.j
ar!/geowebcache-core-context.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not
instantiate
bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor
threw
exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean
with name 'gwcXmlConfig' defined in URL
[jar:file:/opt/geoserver-2.1.2/webapps/geoserver/WEB-INF/lib/gwc-2.1.2.j
ar!/geowebcache-core-context.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not
instantiate
bean class [org.geowebcache.config.XMLConfiguration]: Constructor threw
exception; nested exception is
com.thoughtworks.xstream.converters.ConversionException: Cannot
construct
org.geowebcache.grid.SRS as it does not have a no-args constructor :
Cannot
construct org.geowebcache.grid.SRS as it does not have a no-args
constructor
 Debugging information 
message : Cannot construct org.geowebcache.grid.SRS as it
does
not have a no-args constructor
cause-exception :
com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message   : Cannot construct org.geowebcache.grid.SRS as it
does
not have a no-args constructor
class   : org.geowebcache.config.GeoWebCacheConfiguration
required-type   : org.geowebcache.grid.SRS
---

--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Geowebcache-xml-problems-tp693338
0p6936083.html
Sent from the GeoServer - User mailing list archive at Nabble.com.



This email is only intended for the person to whom it is addressed and may 
contain confidential information. If you have received this email in error, 
please notify the sender and delete this email which must not be copied, 
distributed or disclosed to any other person.

Unless stated o

[Geoserver-users] Geowebcache in openlayers problem

2011-10-27 Thread Robert Buckley


hi,
This is a follow up of my previous attempt to understand how to use 
geowebcache(gwc) and use openlayers to visualize data.

I have been having problems with gwc and EPSG:900913 in openlayers. I want to 
serve raster data over googlemaps, but cannot get geowebcache to work together 
with openlayers in EPSG:900913

As a test, I have set up test layer called wgs84Point which is a postgis layer 
with 3 points digitized in wgs84(EPSG:4326). I have fed it into geoserver and 
have build two clients to visualize the points. One of the clients has a map 
set up in wgs84 (EPSG:4326), the other identical map with Google (EPSG:900913).

http://maps.zgb.de/eeg/wgs84.html


http://maps.zgb.de/eeg/900913.html


Both maps contain the wms version of the points layer and also the geowebcache 
version.

As can be seen, the WGS84 EPSG:4326 version lines both the wms and geowebcache 
points perfectly.

from the geowebcache demo page in geoserver I can view the layer in both 900913 
and 4326

here is one tile in EPSG:900913
http://maps.zgb.de/geoserver/gwc/service/wms?LAYERS=zgb%3Awgs84point&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=1164288.8146777,6946597.1295898,1169180.7844873,6951489.0993994&WIDTH=256&HEIGHT=256


and the same point is EPSG:4326
http://maps.zgb.de/geoserver/gwc/service/wms?LAYERS=zgb%3Awgs84point&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=10.532455444336,52.833938598633,10.533142089844,52.834625244141&WIDTH=256&HEIGHT=256



My Geoserver logs are giving me this...

2011-10-27 14:39:21,406 ERROR [geowebcache.GeoWebCacheDispatcher] - X,Y values 
for the tile index were calculated to be {1081.4697265626, 1380.0979003904074}  
which had to be rounded to {1081, 1380}  and exceeds the threshold of 10%. 
Perhaps the client is using the wrong origin ? 
http://maps.zgb.de/geoserver/gwc/service/wms


which corresponds to the firebug output for the pink tiles..400: X,Y values for 
the tile index were calculated to be {1081.4697265626, 1376.0979003905672} 
which had to be rounded to {1081, 1376} and exceeds the threshold of 10%. 
Perhaps the client is using the wrong origin ?

So I really don´t know where to look for solutions.

Any help is most welcome

yours,

Rob--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geowebcache.xml problems

2011-10-27 Thread GeoGEOrge
Thank you for your help. I have been feeling very stuck and would really like
to be able to use geowebcache.
I added -Xmx512m -XX:MaxPermSize=256m to my geoserver-2.1.2/bin/startup.sh
and 
I substituted the gridSet you supplied (it complained until I moved the
metersPerUnit after scaleDenominators) 

I still get what appears to me to be the same message and geoserver doesn't
work:

2011-10-27 07:55:19,024 INFO [gwc.config] - Initializing GeoServer specific
GWC configuration from gwc-gs.xml
2011-10-27 07:55:21,800 INFO [storage.DefaultStorageFinder] -

2011-10-27 07:55:21,801 INFO [storage.DefaultStorageFinder] - *** Found Java
environment variable GEOSERVER_DATA_DIR set to
/opt/geoserver-2.1.2/data_dir, using it as the default prefix. ***
2011-10-27 07:55:21,801 INFO [storage.DefaultStorageFinder] -

2011-10-27 07:55:22,631 INFO [jdbc.JDBCMBWrapper] - MetaStore database is
version 120
2011-10-27 07:55:22,727 INFO [config.XMLConfiguration] - Found configuration
file in /opt/geoserver-2.1.2/data_dir/gwc
2011-10-27 07:55:23,186 INFO [config.XMLConfiguration] - Configuration file
validated fine.
2011-10-27 07:55:23,246 INFO [storage.StorageBroker] - Destroying
StorageBroker
2011-10-27 07:55:24,523 INFO [geoserver.catalog] - Disposing datastore
'DataStoreInfoImpl--570ae188:124761b8d78:-7fd9'
2011-10-27 07:55:24,524 INFO [geoserver.catalog] - Disposing datastore
'DataStoreInfoImpl--570ae188:124761b8d78:-7fdc'
2011-10-27 07:55:24,527 ERROR [context.ContextLoader] - Context
initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'GWCCapabilitiesHomePageProvider' defined in URL
[jar:file:/opt/geoserver-2.1.2/webapps/geoserver/WEB-INF/lib/web-gwc-2.1.2.jar!/applicationContext.xml]:
Cannot resolve reference to bean 'gwcFacade' while setting constructor
argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'gwcFacade' defined in URL
[jar:file:/opt/geoserver-2.1.2/webapps/geoserver/WEB-INF/lib/gwc-2.1.2.jar!/geowebcache-geoserver-context.xml]:
Cannot resolve reference to bean 'gwcTLDispatcher' while setting constructor
argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'gwcTLDispatcher' defined in URL
[jar:file:/opt/geoserver-2.1.2/webapps/geoserver/WEB-INF/lib/gwc-2.1.2.jar!/geowebcache-core-context.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not instantiate
bean class [org.geowebcache.layer.TileLayerDispatcher]: Constructor threw
exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'gwcXmlConfig' defined in URL
[jar:file:/opt/geoserver-2.1.2/webapps/geoserver/WEB-INF/lib/gwc-2.1.2.jar!/geowebcache-core-context.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not instantiate
bean class [org.geowebcache.config.XMLConfiguration]: Constructor threw
exception; nested exception is
com.thoughtworks.xstream.converters.ConversionException: Cannot construct
org.geowebcache.grid.SRS as it does not have a no-args constructor : Cannot
construct org.geowebcache.grid.SRS as it does not have a no-args constructor
 Debugging information 
message : Cannot construct org.geowebcache.grid.SRS as it does
not have a no-args constructor
cause-exception :
com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message   : Cannot construct org.geowebcache.grid.SRS as it does
not have a no-args constructor
class   : org.geowebcache.config.GeoWebCacheConfiguration
required-type   : org.geowebcache.grid.SRS
---

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Geowebcache-xml-problems-tp6933380p6936083.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Memory Problems in access to reprojected image mosaics

2011-10-27 Thread DGIS Devels
Geoserver Version :  2.1

We have tried -Xms1024M -Xmx1024M -XX:PermSize=256M but the behavior is the
same.
Although -Xmx1024M is set,  the memory size is increased more than 1,8G (we
use "ps -e -orss=,args= | sort -b -k1,1n | pr-TW$COLUMNS"  to know how much
memory  every process uses ) . The remainig memory is cached by S.O but we
have clear the cache to allow JVM to use this memory.If we don't clear the
cache, messages like this appear:

"Java HotSpot(TM) 64-Bit Server VM warning: Attempt to deallocate stack
guard pages failed.
Java HotSpot(TM) 64-Bit Server VM warning: Attempt to protect stack guard
pages failed.
mmap failed for CEN and END part of zip file"

"Errores : java.io.IOException: No memory left for cache!  at
javax.imageio.stream.MemoryCache.pad(MemoryCache.java:171)"


We have found others errors like :  "java.lang.OutOfMemoryError: GC overhead
limit exceeded" . We have used -XX:-UseGCOverheadLimit to avoid GC working
too much


We have been  testing 256x256 tiles ( stress test during 18 hours , 150
concurrent users, 2.314.321 resquests  ).Total Size memory =1.3G without
OOM.Now,we are working with 850x1064 images and a lot of OOM appear.


Thanks in advance

2011/10/14 DGIS Devels 

> Hi,
>
> We are having lots of problems with the display of SRS reprojected image
> mosaics. Server runs out of memory after near 4000 requests,  trying to
> consume even the swap memory.
>
> *Tomcat's log* file :
> ..
> ..
> mmap failed for CEN and END part of zip file
> Java HotSpot(TM) 64-Bit Server VM warning: CodeCache is full. Compiler has
> been disabled.
> Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code cache
> size using -XX:ReservedCodeCacheSize=
> Java HotSpot(TM) 64-Bit Server VM warning: Attempt to allocate stack guard
> pages failed.
>
> Java HotSpot(TM) 64-Bit Server VM warning: Attempt to allocate stack guard
> pages failed.
> Java HotSpot(TM) 64-Bit Server VM warning: Attempt to allocate stack guard
> pages failed.
> Java HotSpot(TM) 64-Bit Server VM warning: Attempt to allocate stack guard
> pages failed.
> Java HotSpot(TM) 64-Bit Server VM warning: Attempt to allocate stack guard
> pages failed.
> 
> ...
> 
>
>
> After this, the JVM crash ...
>
> *Server Data*:
> - Red Hat Enterprise Linux Server release 5.5 (Tikanga) 64 bits
> - tomcat 6.0.20
> - jdk 1.6_27
> - Total Memory: 3,8 GB
> - JVM Geoserver Memory: 2GB ( -Xms2048M -Xmx2048M -XX:PermSize=512M )
>
>
> Any idea? Thanks in advance.
>
--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Calculate BBox (width/height) based on image size, scale and center of original BBox

2011-10-27 Thread zorg
Hi,

I send to geoserver (http://my_ip:80/geoserver/wfs) this query:





Myworkspace:idpar
Myvalue





I get the coordonnate of BBox, therefore I can determin the center of my 
bbox.

(Projection : EPSG: 3945)

I want to print in a pdf an image (example: size 500 pixel * 450 pixel 
and 96 dpi ) with specific scale (1/1).

How do I calculate the new BBox?

Thanks



--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] missing Demo Request Page "Change" button/link or obsolete page description

2011-10-27 Thread Andrea Aime
On Wed, Oct 26, 2011 at 10:11 PM, Frank Gasdorf  wrote:

> Hello,
>
> today I was wondering about the description on the demo request page (for
> example see
> http://demo.opengeo.org/geoserver/web/?wicket:bookmarkablePage=:org.geoserver.web.demo.DemoRequestsPage)
> where a 'Change' button or link is mentioned. Do I miss something, I guess
> I've hit every button and have chosen several requests but couldn't find it.
>

Doh, I fist looked into the docs and could not find the "change" thing, then
noticed
it's in the page itself :-p

I think it's just a mistake, don't remember ever having a change button in
that page (maybe it was
in the 1.7.x series? can't remember honestly).
What the description could say is that you can change the request url and
body, play with it, before
submitting.

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

---
--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Failed attempts at using geowebcache

2011-10-27 Thread Rahkonen Jukka
Ok, in that case the source rasters in EPSG:4326 should be OK.
When I have faced misalignment problems with GWC and OpenLayers they have 
always been because GWC and client had somehow different settings for 
scales/resolutions. But it should not happen easily for you because you are 
using the standard EPSG:4326 and Google grids.
You could do another try with a less error-prone client than OpenLayers, but it 
would mean using uDig. It has a setting to read maps from from your GWC through 
WMS-C (tiling WMS server) system.  UDig is reading the tiling schema from your 
GWC and then there should be one opportunity less for things going wrong.

-Jukka Rahkonen-


Lähettäjä: Robert Buckley [mailto:robertdbuck...@yahoo.com]
Lähetetty: 27. lokakuuta 2011 9:36
Vastaanottaja: Gabriel Roldan; geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] Failed attempts at using geowebcache

Hi,

Yes the raster file overlays correctly when served as wms.

cheers,

Rob


Von: Gabriel Roldan 
An: Robert Buckley 
Cc: "geoserver-users@lists.sourceforge.net" 

Gesendet: 22:34 Mittwoch, 26.Oktober 2011
Betreff: Re: [Geoserver-users] Failed attempts at using geowebcache

Does the raster layer overlay correctly if using geoserver WMS
directly instead of gwc?

On Wed, Oct 26, 2011 at 3:35 PM, Robert Buckley
mailto:robertdbuck...@yahoo.com>> wrote:
> Hi,
> I have an openlayers client which serves postgis data from geoserver 2.1.2
> on ubuntu 10.04
> I would like to serve some raster topography which is only available to me
> in EPSG:31467 (gauss kruger zone 3 Germany)
> As I would like to also include OSM and Google Satelite images with the data
> I need to get a better understanding of geowebcache.(the docs are apparently
> being written at the moment and so I don´t have any references)
> Anyway...my plan was this...
> 1. Transform my raster images into EPSG:4326 (wgs84) and export into
> Geotiffs
> 2. Load into an imagemosaic in geoserver
> 3. seed with geowebcache in both EPSG:4326 and EPSG:900913
> 4. visualize my layers in openlayers client with map projection of either
> 900913 or 4326
> My result is that the vector wms layers that do not get cached
> with geowebcache are displayed correctly against google maps and OSM (as
> they are transformed on the fly), but all my raster data is missaligned.
> Could anyone please explain what I have to do to actually get
> google/OSM/Geoserver WMS/ and geowebcache layers all aligned correctly? Is
> this an openlayers problem or a geowebcache problem?
>
>
> thanks for any help
> Rob
>
>
>
>
>
> --
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>



--
Gabriel Roldan
OpenGeo - http://opengeo.org
Expert service straight from the developers.


--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users