[Geoserver-users] GeoServer and Google and Custom CoverageStores

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

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