[Geoserver-users] GeoServer and Google and Custom CoverageStores

Ciao Ronak,
it's not that easy to help you out without some code to run here,
anyway, I am going to try anyway ( I will be around for a few hours so
taht we can interact).
First question, does your format's accepts method get ever called from
Geoserver?
Second questions, how are you testing things? jetty? Tomcat?
Third question, how did you build your geoserver? Did you include the
relevanto geotools jars into the build process?

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Mon, Mar 9, 2009 at 9:19 PM, Patel, Ronak Avinash (US SSA)
<ronak.patel@anonymised.com> wrote:

Simone,

Another question,

When I do a WCS GetCapabilities, I don't see my plugin being called. Is this supposed to happen?

When is my plugin ever called by Geoserver? When will Geoserver try to invoke my plugin's read methods?

I'm playing trail and error and it's wasting a lot of time.

Any help you can provide would be great.

Thanks,

Ronak Patel

-----Original Message-----
From: simboss1@anonymised.com [mailto:simboss1@anonymised.com] On Behalf Of Simone Giannecchini
Sent: Friday, March 06, 2009 10:05 AM
To: Patel, Ronak Avinash (US SSA)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GeoServer and Google and Custom CoverageStores

Ciao Ronak,
a few advices:

1> to be sure that your spi actually works, be sure to
copy/paste/modify and execute one of the services tests from the
various other plugins.... If that test work then it means that the SPI
registry is seeing your coverage. (reading the email more carefully,
if your plugin shows up in the plugins list then this step might be
useless)
2> when you do the test with the string, don't swallow the
exception, that's a bad practice because if something bad happens you
don't know why. I might be that geoserver di tricking your URL before
it reaches the plugin so what works outside geoserver does not work
inside it and you are not able to see it. I guess this is probably
what's happening.

Simone.

-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Fri, Mar 6, 2009 at 3:08 AM, Patel, Ronak Avinash (US SSA)
<ronak.patel@anonymised.com> wrote:

Simone,

I have three classes:

1. One class implements the GridFormatFactorySpi interface and returns
the Format through the createFormat method.

2. I have a class that extends AbstractGridFormat and implements the
deprecated Format interface.

I overrode getDocURL() and stuck a System.out.println() there.
I overrode getName() to return the name of my plugin.
I overrode getVersion() to return "1.0"
I overrode getVendor() to return the name of my company.
I overrode the accepts method and stuck a few System.out.println()s

My implementation is:

if(obj instanceof URL) {
return true;
}

if(obj instanceof String) {
//check if it can be turned to a URL
try {
new URL(obj.toString());
return true;
} catch (final MalformedURLException e) {
return false;
}
}

return false;

in the getReader() method I have a System.out.println() and I return my
reader object.

My reader object goes ahead and contacts a SOAP Web Service to obtain a
list of Coverages.

Ronak

-----Original Message-----
From: Simone Giannecchini [mailto:simboss1@anonymised.com]
Sent: Thursday, March 05, 2009 6:01 PM
To: Patel, Ronak Avinash (US SSA)
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] GeoServer and Google and Custom
CoverageStores

Ciao Ronak,
can you be more specific about the nature of your plugin?

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Fri, Mar 6, 2009 at 2:27 AM, Patel, Ronak Avinash (US SSA)
<ronak.patel@anonymised.com> wrote:

Hello,

I was finally able to have Geoserver load my custom coverage store and

I

see it displayed in the WCS Config Screen under CoverageStores.

However, I don't see Geoserver ever making a call to my plugin. I

don't

see it ever retrieving my GridCoverageReader and iterating through it.

Can anyone shine any light on that kind of scenario?

Also, I am trying to integrate Geoserver with Google Earth and NASA
WorldWind and I am confused as to the proper URL I should be using to
access the WMS portion of Geoserver.

Thanks,

Ronak Patel

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

Open Source Business Conference (OSBC), March 24-25, 2009, San

Francisco, CA

-OSBC tackles the biggest issue in open source: Open Sourcing the

Enterprise

-Strategies to boost innovation and cut costs with open source

participation

-Receive a $600 discount off the registration fee with the source

code: SFAD

http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

A month or so ago i had been playing with similar stuff; adding google maps
as a geoserver datasource. My idea was to develop a wms plugin which works
similar to mosaic plugin. This was developed under Geoserver 1.6.4. Here are
the results:

1. My plugin shown under Coverage Plugins List:
  http://www.shrani.si/f/m/sa/3BdNYa9y/image1.jpg

2. A new coverage store:
  http://www.shrani.si/f/1E/uC/4xXlN5SE/image2.jpg

3. A new coverage:
  http://www.shrani.si/f/6/KS/2neW3jiT/image3.jpg

4. Sample call to GeoServer gives this image:

call:
http://IP:PORT/geoserver/wms?SRS=EPSG%3A4326&WIDTH=512&STYLES=&HEIGHT=512&LAYERS=topp%3Agoogle_coverage_2&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=9.6240234375,47.9443359375,20.6103515625,58.9306640625

  http://www.shrani.si/f/3E/1r/3tNOvGGK/image4.jpg

The plugin is under "paused" development, but it's showing nice results.

--
View this message in context: http://www.nabble.com/GeoServer-and-Google-and-Custom-CoverageStores-tp22364545p22432811.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Ciao Blaz,
how about sharing the toy? We might want to extend it, use it as a
template for other people, point out problems in the current
implemenetation of coverage support, or just to get in trouble with
google, but anyway, still, share it please :-).

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Tue, Mar 10, 2009 at 1:01 PM, GeoUser <blazrepnik@anonymised.com> wrote:

A month or so ago i had been playing with similar stuff; adding google maps
as a geoserver datasource. My idea was to develop a wms plugin which works
similar to mosaic plugin. This was developed under Geoserver 1.6.4. Here are
the results:

1. My plugin shown under Coverage Plugins List:
http://www.shrani.si/f/m/sa/3BdNYa9y/image1.jpg

2. A new coverage store:
http://www.shrani.si/f/1E/uC/4xXlN5SE/image2.jpg

3. A new coverage:
http://www.shrani.si/f/6/KS/2neW3jiT/image3.jpg

4. Sample call to GeoServer gives this image:

call:
http://IP:PORT/geoserver/wms?SRS=EPSG%3A4326&WIDTH=512&STYLES=&HEIGHT=512&LAYERS=topp%3Agoogle_coverage_2&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=9.6240234375,47.9443359375,20.6103515625,58.9306640625

http://www.shrani.si/f/3E/1r/3tNOvGGK/image4.jpg

The plugin is under "paused" development, but it's showing nice results.

--
View this message in context: http://www.nabble.com/GeoServer-and-Google-and-Custom-CoverageStores-tp22364545p22432811.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Simone Giannecchini ha scritto:

Ciao Blaz,
how about sharing the toy? We might want to extend it, use it as a
template for other people, point out problems in the current
implemenetation of coverage support, or just to get in trouble with
google, but anyway, still, share it please :-).

Actually I was thinking we could get it, rewrite portions of it
and make it a WMS coverage source instead (for WMS cascading)...
which would have no legal issues, and would be very useful :slight_smile:

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Sure thing :slight_smile:

I just have to cleanup the code a little and upload it somewhere.

Andrea Aime-4 wrote:

Simone Giannecchini ha scritto:

Ciao Blaz,
how about sharing the toy? We might want to extend it, use it as a
template for other people, point out problems in the current
implemenetation of coverage support, or just to get in trouble with
google, but anyway, still, share it please :-).

Actually I was thinking we could get it, rewrite portions of it
and make it a WMS coverage source instead (for WMS cascading)...
which would have no legal issues, and would be very useful :slight_smile:

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/GeoServer-and-Google-and-Custom-CoverageStores-tp22364545p22450364.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Don't be shy man,
the geotools spike directory is waiting for you.
Ask the commit rights and then start coding, more people may join the
effort and help cleaning the code up.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Wed, Mar 11, 2009 at 9:09 AM, GeoUser <blazrepnik@anonymised.com> wrote:

Sure thing :slight_smile:

I just have to cleanup the code a little and upload it somewhere.

Andrea Aime-4 wrote:

Simone Giannecchini ha scritto:

Ciao Blaz,
how about sharing the toy? We might want to extend it, use it as a
template for other people, point out problems in the current
implemenetation of coverage support, or just to get in trouble with
google, but anyway, still, share it please :-).

Actually I was thinking we could get it, rewrite portions of it
and make it a WMS coverage source instead (for WMS cascading)...
which would have no legal issues, and would be very useful :slight_smile:

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/GeoServer-and-Google-and-Custom-CoverageStores-tp22364545p22450364.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ok, so how do i get commit rights?

Simone.Giannecchini wrote:

Don't be shy man,
the geotools spike directory is waiting for you.
Ask the commit rights and then start coding, more people may join the
effort and help cleaning the code up.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Wed, Mar 11, 2009 at 9:09 AM, GeoUser <blazrepnik@anonymised.com> wrote:

Sure thing :slight_smile:

I just have to cleanup the code a little and upload it somewhere.

Andrea Aime-4 wrote:

Simone Giannecchini ha scritto:

Ciao Blaz,
how about sharing the toy? We might want to extend it, use it as a
template for other people, point out problems in the current
implemenetation of coverage support, or just to get in trouble with
google, but anyway, still, share it please :-).

Actually I was thinking we could get it, rewrite portions of it
and make it a WMS coverage source instead (for WMS cascading)...
which would have no legal issues, and would be very useful :slight_smile:

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/GeoServer-and-Google-and-Custom-CoverageStores-tp22364545p22450364.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based
development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/GeoServer-and-Google-and-Custom-CoverageStores-tp22364545p22450846.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

ask them on the gt-devel list specifying why.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Wed, Mar 11, 2009 at 9:50 AM, GeoUser <blazrepnik@anonymised.com> wrote:

Ok, so how do i get commit rights?

Simone.Giannecchini wrote:

Don't be shy man,
the geotools spike directory is waiting for you.
Ask the commit rights and then start coding, more people may join the
effort and help cleaning the code up.

Simone.
-------------------------------------------------------
Ing. Simone Giannecchini
GeoSolutions S.A.S.
Owner - Software Engineer
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax: +39 0584983027
mob: +39 333 8128928

http://www.geo-solutions.it
http://simboss.blogspot.com/
http://www.linkedin.com/in/simonegiannecchini

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

On Wed, Mar 11, 2009 at 9:09 AM, GeoUser <blazrepnik@anonymised.com> wrote:

Sure thing :slight_smile:

I just have to cleanup the code a little and upload it somewhere.

Andrea Aime-4 wrote:

Simone Giannecchini ha scritto:

Ciao Blaz,
how about sharing the toy? We might want to extend it, use it as a
template for other people, point out problems in the current
implemenetation of coverage support, or just to get in trouble with
google, but anyway, still, share it please :-).

Actually I was thinking we could get it, rewrite portions of it
and make it a WMS coverage source instead (for WMS cascading)...
which would have no legal issues, and would be very useful :slight_smile:

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context:
http://www.nabble.com/GeoServer-and-Google-and-Custom-CoverageStores-tp22364545p22450364.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based
development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/GeoServer-and-Google-and-Custom-CoverageStores-tp22364545p22450846.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users