[Geotools-gt2-users] Using Rasters in Geotools

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[Geotools-gt2-users] Using Rasters in Geotools

jeremy.deroyer

Hello,

It seems difficult to use raster with geotools but I hope someone will help me making them workproperly.

Does anybody has any solution with :
- geotools alone
- geotools + geoserver

I've tried to make geoserver work (1.3.0 RC2 WCS). Geoserver does read the file and, with the following url, :
http://127.0.0.1:8080/geoserver/wms/getmap?request=getmap&version=1.1.3&srs=EPSG:27582&layers=navteq5k:navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=normal

I get :

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM "http://127.0.0.1:8080/geoserver/data/capabilities//wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">
<ServiceException code="">java.util.NoSuchElementException: Could not locate CoverageConfig &apos;navteq5k_Coverage&apos;</ServiceException>  </ServiceExceptionReport>

Any ideas ?

Jérémy DE ROYER

P.S. :
It's hard because we succed in making everything working using geotools, geoserver and postgis except rasters (and geographic polygon fetching but it's another story and it works without).
Reply | Threaded
Open this post in threaded view
|

Re: Using Rasters in Geotools

alexander-petkov
> I get :
>
> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
> <!DOCTYPE ServiceExceptionReport SYSTEM
> "http://127.0.0.1:8080/geoserver/data/capabilities//wms/1.1.1/WMS_exception_1_1_1.dtd">
> <ServiceExceptionReport version="1.1.1">
> <ServiceException code="">java.util.NoSuchElementException:
> Could not locate CoverageConfig
> &apos;navteq5k_Coverage&apos;</ServiceException>
> </ServiceExceptionReport>
>
> Any ideas ?
>
> Jérémy DE ROYER
Hello Jeremy:
It seems that the configuration for that coverage is missing.

Check that the coverage indeed exists in the catalog:
 http://127.0.0.1:8080/geoserver/wms?request=GetCapabilities&service=WMS

If not, you  probably need to hit the "Apply", "Save" and "Load"
buttons (upper left) after you configure the coverage via the web
interface. This will save changes to the catalog and reload it.

Alex
N�HY޵隊X���'���u���[�������
ަ�k��!���W�~�鮆�zk��C� 塧m����@^ǚ��^��z�Z�f�z�j�!�x2�������ɫ,��� a{� �,�H��4�m���i�(��ܢo�v'��jYhr'ׯ:�rX��g����z��z�&j)b� b�ў�ǫ�����+-��.�ǟ����a��l��b��,���y�+��޷�b��?�+-�w������z��z�
Reply | Threaded
Open this post in threaded view
|

Re: Using Rasters in Geotools

jeremy.deroyer

Ok ! Is there any documentation how to use it because I get a blank image and I don't want to get antoher RTFM (;-).

My url is (the boudaries are the one listed in the configuration)

http://127.0.0.1:8080/geoserver/wms/getmap?request=getmap&version=1.1.3&srs=EPSG:27582&layers=navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=normal

Jérémy



Alexander Petkov <[hidden email]>

05/01/2006 16:23

A
"[hidden email]" <[hidden email]>
cc
[hidden email]
Objet
Re: [Geoserver-users] Using Rasters in Geotools





> I get :
>
> <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
> <!DOCTYPE ServiceExceptionReport SYSTEM
> "http://127.0.0.1:8080/geoserver/data/capabilities//wms/1.1.1/WMS_exception_1_1_1.dtd">
> <ServiceExceptionReport version="1.1.1">
> <ServiceException code="">java.util.NoSuchElementException:
> Could not locate CoverageConfig
> &apos;navteq5k_Coverage&apos;</ServiceException>
> </ServiceExceptionReport>
>
> Any ideas ?
>
> Jérémy DE ROYER
Hello Jeremy:
It seems that the configuration for that coverage is missing.

Check that the coverage indeed exists in the catalog:
http://127.0.0.1:8080/geoserver/wms?request=GetCapabilities&service=WMS

If not, you  probably need to hit the "Apply", "Save" and "Load"
buttons (upper left) after you configure the coverage via the web
interface. This will save changes to the catalog and reload it.

Alex

Reply | Threaded
Open this post in threaded view
|

Re: Using Rasters in Geotools

alexander-petkov


On 1/5/06, [hidden email] <[hidden email]> wrote:

Ok ! Is there any documentation how to use it because I get a blank image and I don't want to get antoher RTFM (;-).
My url is (the boudaries are the one listed in the configuration)

<a href="http://127.0.0.1:8080/geoserver/wms/getmap?request=getmap&amp;version=1.1.3&amp;srs=EPSG:27582&amp;layers=navteq5k_Coverage&amp;width=500&amp;height=500&amp;bbox=580990,2423887,585994,2428891&amp;format=image/png&amp;styles=normal" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://127.0.0.1:8080/geoserver/wms/getmap?request=getmap&version=1.1.3&srs=EPSG:27582&layers=navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=normal

Jérémy

Jeremy:
As twisted as it may sound, I believe that you getting the blank image is a good sign.

There seems to be a bug that results in blank images, if you specify anything other than EPSG:4326 for your srs.
Keep the coordinates the same, but use "srs=EPSG:4326". It is a workaround for now and I've been meaning to report it as a jira issue.

Oh, and use the raster style:
"styles=raster"

Alex

Reply | Threaded
Open this post in threaded view
|

Re: Using Rasters in Geotools

jeremy.deroyer

I still have a blank image with the following url :

http://127.0.0.1:8080/geoserver/wms/getmap?request=getmap&version=1.1.3&srs=EPSG:4326&layers=navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=raster

Is there any solution to get the whole raster without telling hime the boundaries that may be in the wrong SRS ?

Jérémy

P.S. : if it may help ?

4275 [FIN] org.vfny.geoserver.servlets.AbstractService - reading request: request=getmap&version=1.1.3&srs=EPSG:4326&layers=navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=raster
 24295 [FIN] org.vfny.geoserver.global.Data - getting type navteq5k_Coverage
 24295 [FIN] org.vfny.geoserver.global.Data - getting coverage navteq5k_Coverage

 24295 [INFO] org.vfny.geoserver.servlets.AbstractService - handling request: org.vfny.geoserver.wms.requests.GetMapRequest@8845dfb9
 24295 [FIN] org.vfny.geoserver.servlets.AbstractService - strategy is: org.vfny.geoserver.servlets.SpeedStrategy@1906df
 24365 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'CoordinateOperationFactory' implementations:
  Register org.geotools.referencing.operation.DefaultCoordinateOperationFactory
  Register org.geotools.referencing.operation.AuthorityBackedFactory
 24365 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'CoordinateOperationAuthorityFactory' implementations:
  Register org.geotools.referencing.factory.epsg.DefaultFactory
 24625 [CONFIG] org.vfny.geoserver.wms.responses.helpers.JAISupport - Supported JAIMapResponse's MIME Types: [image/jpeg]
 24636 [FIN] org.vfny.geoserver.wms.responses.GetMapResponse - setting up map
 25557 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'CSAuthorityFactory' implementations:
  Register org.geotools.referencing.factory.epsg.DefaultFactory
 25557 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'DatumAuthorityFactory' implementations:
  Register org.geotools.referencing.factory.epsg.DefaultFactory
 27630 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'GridCoverageFactory' implementations:
  Register org.geotools.coverage.grid.GridCoverageFactory
 27770 [FIN] org.vfny.geoserver.wms.responses.DefaultRasterMapProducer - settingup 500x500 image
 27800 [FIN] org.geotools.renderer.lite.LiteRenderer - Affine Transform is AffineTransform[[0.099920063948841, 0.0, -58052.557953637086], [0.0, -0.099920063948841, 242694.94404476415]]
 27830 [FIN] org.geotools.styling.StyleImpl - number of fts set 1
 27830 [FIN] org.geotools.renderer.lite.LiteRenderer - added attribute grid
 27900 [FIN] org.geotools.styling.StyleImpl - number of fts set 1
 27900 [FIN] org.geotools.renderer.lite.LiteRenderer - processing 1 stylers fornavteq5k_Coverage
 27900 [FIN] org.geotools.renderer.lite.LiteRenderer - processing style 0
 27900 [FIN] org.geotools.renderer.lite.LiteRenderer - processing rule 0
 27900 [FIN] org.geotools.renderer.lite.LiteRenderer - Style cache hit ratio: NaN , hits 0, requests 0
 29362 [FIN] org.vfny.geoserver.servlets.AbstractService - mime type is: image/png
 29402 [INFO] org.vfny.geoserver.servlets.AbstractService - Service handled



Alexander Petkov <[hidden email]>

05/01/2006 16:58

A
"[hidden email]" <[hidden email]>
cc
[hidden email]
Objet
Re: [Geoserver-users] Using Rasters in Geotools







On 1/5/06, jeremy.deroyer@... <jeremy.deroyer@... > wrote:

Ok ! Is there any documentation how to use it because I get a blank image and I don't want to get antoher RTFM (;-).

My url is (the boudaries are the one listed in the configuration)

http://127.0.0.1:8080/geoserver/wms/getmap?request=getmap&version=1.1.3&srs=EPSG:27582&layers=navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=normal

Jérémy


Jeremy:
As twisted as it may sound, I believe that you getting the blank image is a good sign.


There seems to be a bug that results in blank images, if you specify anything other than EPSG:4326 for your srs.
Keep the coordinates the same, but use "srs=EPSG:4326". It is a workaround for now and I've been meaning to report it as a jira issue.

Oh, and use the raster style:
"styles=raster"

Alex

Reply | Threaded
Open this post in threaded view
|

Re: Using Rasters in Geotools

alexander-petkov
A quick way to verify that the coverage is indeed configured in the catalog:
http://127.0.0.1:8080/geoserver/wcs/GetCoverage?coverage=navteq5k_Coverage&format=png

Other than that, the only thing I can think of is that the x-y
coordinates in the BBOX are reversed.

Send me the raster image if you want (and the world file, if any), and
I will try it as well.

Alex

On 1/5/06, [hidden email] <[hidden email]> wrote:

>
> I still have a blank image with the following url :
>
> http://127.0.0.1:8080/geoserver/wms/getmap?request=getmap&version=1.1.3&srs=EPSG:4326&layers=navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=raster
>
> Is there any solution to get the whole raster without telling hime the boundaries that may be in the wrong SRS ?
>
> Jérémy
>
> P.S. : if it may help ?
>
> 4275 [FIN] org.vfny.geoserver.servlets.AbstractService - reading request: request=getmap&version=1.1.3&srs=EPSG:4326&layers=navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=raster
>  24295 [FIN] org.vfny.geoserver.global.Data - getting type navteq5k_Coverage
>  24295 [FIN] org.vfny.geoserver.global.Data - getting coverage navteq5k_Coverage
>
>  24295 [INFO] org.vfny.geoserver.servlets.AbstractService - handling request: org.vfny.geoserver.wms.requests.GetMapRequest@8845dfb9
>  24295 [FIN] org.vfny.geoserver.servlets.AbstractService - strategy is: org.vfny.geoserver.servlets.SpeedStrategy@1906df
>  24365 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'CoordinateOperationFactory' implementations:
>   Register org.geotools.referencing.operation.DefaultCoordinateOperationFactory
>   Register org.geotools.referencing.operation.AuthorityBackedFactory
>  24365 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'CoordinateOperationAuthorityFactory' implementations:
>   Register org.geotools.referencing.factory.epsg.DefaultFactory
>  24625 [CONFIG] org.vfny.geoserver.wms.responses.helpers.JAISupport - Supported JAIMapResponse's MIME Types: [image/jpeg]
>  24636 [FIN] org.vfny.geoserver.wms.responses.GetMapResponse - setting up map
>  25557 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'CSAuthorityFactory' implementations:
>   Register org.geotools.referencing.factory.epsg.DefaultFactory
>  25557 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'DatumAuthorityFactory' implementations:
>   Register org.geotools.referencing.factory.epsg.DefaultFactory
>  27630 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'GridCoverageFactory' implementations:
>   Register org.geotools.coverage.grid.GridCoverageFactory
>  27770 [FIN] org.vfny.geoserver.wms.responses.DefaultRasterMapProducer - settingup 500x500 image
>  27800 [FIN] org.geotools.renderer.lite.LiteRenderer - Affine Transform is AffineTransform[[0.099920063948841, 0.0, -58052.557953637086], [0.0, -0.099920063948841, 242694.94404476415]]
>  27830 [FIN] org.geotools.styling.StyleImpl - number of fts set 1
>  27830 [FIN] org.geotools.renderer.lite.LiteRenderer - added attribute grid
>  27900 [FIN] org.geotools.styling.StyleImpl - number of fts set 1
>  27900 [FIN] org.geotools.renderer.lite.LiteRenderer - processing 1 stylers fornavteq5k_Coverage
>  27900 [FIN] org.geotools.renderer.lite.LiteRenderer - processing style 0
>  27900 [FIN] org.geotools.renderer.lite.LiteRenderer - processing rule 0
>  27900 [FIN] org.geotools.renderer.lite.LiteRenderer - Style cache hit ratio: NaN , hits 0, requests 0
>  29362 [FIN] org.vfny.geoserver.servlets.AbstractService - mime type is: image/png
>  29402 [INFO] org.vfny.geoserver.servlets.AbstractService - Service handled
>
>
>
>
>  Alexander Petkov <[hidden email]>
>
> 05/01/2006 16:58
>
> A "[hidden email]" <[hidden email]>
>
> cc [hidden email]
>
> Objet Re: [Geoserver-users] Using Rasters in Geotools
>
>
>
>
>
>
>
>
>
>
> On 1/5/06, [hidden email] <[hidden email] > wrote:
>
>  Ok ! Is there any documentation how to use it because I get a blank image and I don't want to get antoher RTFM (;-).
> My url is (the boudaries are the one listed in the configuration)
>
>  http://127.0.0.1:8080/geoserver/wms/getmap?request=getmap&version=1.1.3&srs=EPSG:27582&layers=navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=normal
>
>  Jérémy
>
>  Jeremy:
>  As twisted as it may sound, I believe that you getting the blank image is a good sign.
>
>  There seems to be a bug that results in blank images, if you specify anything other than EPSG:4326 for your srs.
>  Keep the coordinates the same, but use "srs=EPSG:4326". It is a workaround for now and I've been meaning to report it as a jira issue.
>
>  Oh, and use the raster style:
>  "styles=raster"
>
>  Alex
>
>
N�HY޵隊X���'���u���[�������
ަ�k��!���W�~�鮆�zk��C� 塧m����@^ǚ��^��z�Z�f�z�j�!�x2�������ɫ,��� a{� �,�H��4�m���i�(��ܢo�v'��jYhr'ׯ:�rX��g����z��z�&j)b� b�ў�ǫ�����+-��.�ǟ����a��l��b��,���y�+��޷�b��?�+-�w������z��z�
Reply | Threaded
Open this post in threaded view
|

Re: Using Rasters in Geotools

alexander-petkov
In reply to this post by jeremy.deroyer
Jeremy:

I got it to work--instead of using the Geotiff plugin, I described the coordinates in a world file (see attached) to use with the "Image with spatial file" plugin.
Then, in Geoserver I just configured the coverage store  as "A raster file accompanied by a spatial data file", clicking the usual "apply, load, save" at the end.
Then I created a Coverage for the new Coverage Store, clicking the usual "apply, load, save" at the end.
Using the  "getCoverage" link should display the picture.

Using the link:
http://localhost:8080/geoserver/wms?bbox=580990,2423887,585994,2428891&styles=raster&Format=image/png&request=GetMap&layers= navteq5k_Coverage&width=550&height=550&srs=EPSG:4326

gives me the map.

Alex
 

On 1/6/06, [hidden email] <[hidden email]> wrote:

May the force be with you (;-) what you're saying seem good to me because I could be abble to finish the project that just wait after raster to be readable by the human being other than developpers.

Jérémy



Alexander Petkov <[hidden email]>

06/01/2006 18:43

A
"[hidden email]" <[hidden email]>
cc

Objet
Re: [Geoserver-users] Using Rasters in Geotools







>Won't it give me problem if the srs of my vectors is EPSG:27582 ?
I dont think so, I mix vector layers that are in lambert with custom parameters.
I will give your geotiff a try.

Alex

On 1/6/06, [hidden email] <[hidden email]> wrote:

Yep ! It works with your url (
<a href="http://127.0.0.1:8080/geoserver/wcs/GetCoverage?coverage=navteq5k_Coverage&amp;format=png" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://127.0.0.1:8080/geoserver/wcs/GetCoverage?coverage=navteq5k_Coverage&format=png) : i've got all the coverage.

I send you the geotiff file. If you  could see why it doesn't work with the coordinnates I passed in  the url (that are the one in the configuraiton panel) ?


I hope I will be abble to ask geoserver to give me the right coverages to integrate them (with geotools) in my final image mixing geotiff and vectors.


Won't it give me problem if the srs of my vectors is
EPSG:27582 ?

Thank's a lot for your help.


Jérémy DE ROYER





Alexander Petkov <[hidden email]>
Envoyé par :
[hidden email]

05/01/2006 17:36


A
"[hidden email]" <[hidden email] >
cc
[hidden email]
Objet
Re: [Geoserver-users] Using Rasters in Geotools









A quick way to verify that the coverage is indeed configured in the catalog:

<a href="http://127.0.0.1:8080/geoserver/wcs/GetCoverage?coverage=navteq5k_Coverage&amp;format=png" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://127.0.0.1:8080/geoserver/wcs/GetCoverage?coverage=navteq5k_Coverage&format=png

Other than that, the only thing I can think of is that the x-y
coordinates in the BBOX are reversed.

Send me the raster image if you want (and the world file, if any), and
I will try it as well.

Alex

On 1/5/06,
[hidden email] <[hidden email]> wrote:
>
> I still have a blank image with the following url :
>
>
<a href="http://127.0.0.1:8080/geoserver/wms/getmap?request=getmap&amp;version=1.1.3&amp;srs=EPSG:4326&amp;layers=navteq5k_Coverage&amp;width=500&amp;height=500&amp;bbox=580990,2423887,585994,2428891&amp;format=image/png&amp;styles=raster" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://127.0.0.1:8080/geoserver/wms/getmap?request=getmap&version=1.1.3&srs=EPSG:4326&layers=navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=raster
>
> Is there any solution to get the whole raster without telling hime the boundaries that may be in the wrong SRS ?
>
> Jérémy
>
> P.S. : if it may help ?
>
> 4275 [FIN] org.vfny.geoserver.servlets.AbstractService - reading request: request=getmap&version=1.1.3&srs=EPSG:4326&layers=navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=raster
>  24295 [FIN] org.vfny.geoserver.global.Data - getting type navteq5k_Coverage
>  24295 [FIN] org.vfny.geoserver.global.Data - getting coverage navteq5k_Coverage
>
>  24295 [INFO] org.vfny.geoserver.servlets.AbstractService - handling request: org.vfny.geoserver.wms.requests.GetMapRequest@8845dfb9
>  24295 [FIN] org.vfny.geoserver.servlets.AbstractService - strategy is: org.vfny.geoserver.servlets.SpeedStrategy@1906df
>  24365 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'CoordinateOperationFactory' implementations:
>   Register org.geotools.referencing.operation.DefaultCoordinateOperationFactory
>   Register org.geotools.referencing.operation.AuthorityBackedFactory
>  24365 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'CoordinateOperationAuthorityFactory' implementations:
>   Register org.geotools.referencing.factory.epsg.DefaultFactory
>  24625 [CONFIG] org.vfny.geoserver.wms.responses.helpers.JAISupport - Supported JAIMapResponse's MIME Types: [image/jpeg]
>  24636 [FIN] org.vfny.geoserver.wms.responses.GetMapResponse - setting up map
>  25557 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'CSAuthorityFactory' implementations:
>   Register org.geotools.referencing.factory.epsg.DefaultFactory
>  25557 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'DatumAuthorityFactory' implementations:
>   Register org.geotools.referencing.factory.epsg.DefaultFactory
>  27630 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'GridCoverageFactory' implementations:
>   Register org.geotools.coverage.grid.GridCoverageFactory
>  27770 [FIN] org.vfny.geoserver.wms.responses.DefaultRasterMapProducer - settingup 500x500 image
>  27800 [FIN] org.geotools.renderer.lite.LiteRenderer - Affine Transform is AffineTransform[[0.099920063948841, 0.0, -58052.557953637086], [0.0, -0.099920063948841, 242694.94404476415]]
>  27830 [FIN] org.geotools.styling.StyleImpl - number of fts set 1
>  27830 [FIN] org.geotools.renderer.lite.LiteRenderer - added attribute grid
>  27900 [FIN] org.geotools.styling.StyleImpl - number of fts set 1
>  27900 [FIN] org.geotools.renderer.lite.LiteRenderer - processing 1 stylers fornavteq5k_Coverage
>  27900 [FIN] org.geotools.renderer.lite.LiteRenderer - processing style 0
>  27900 [FIN] org.geotools.renderer.lite.LiteRenderer - processing rule 0
>  27900 [FIN] org.geotools.renderer.lite.LiteRenderer - Style cache hit ratio: NaN , hits 0, requests 0
>  29362 [FIN] org.vfny.geoserver.servlets.AbstractService - mime type is: image/png
>  29402 [INFO] org.vfny.geoserver.servlets.AbstractService - Service handled
>
>
>
>
>  Alexander Petkov <
[hidden email] >
>
> 05/01/2006 16:58
>
> A "
[hidden email] " <[hidden email]>
>
> cc
[hidden email]
>
> Objet Re: [Geoserver-users] Using Rasters in Geotools
>
>
>
>
>
>
>
>
>
>
> On 1/5/06,
[hidden email] <[hidden email] > wrote:
>
>  Ok ! Is there any documentation how to use it because I get a blank image and I don't want to get antoher RTFM (;-).
> My url is (the boudaries are the one listed in the configuration)
>
>  
<a href="http://127.0.0.1:8080/geoserver/wms/getmap?request=getmap&amp;version=1.1.3&amp;srs=EPSG:27582&amp;layers=navteq5k_Coverage&amp;width=500&amp;height=500&amp;bbox=580990,2423887,585994,2428891&amp;format=image/png&amp;styles=normal" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://127.0.0.1:8080/geoserver/wms/getmap?request=getmap&version=1.1.3&srs=EPSG:27582&layers=navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=normal
>
>  Jérémy
>
>  Jeremy:
>  As twisted as it may sound, I believe that you getting the blank image is a good sign.
>
>  There seems to be a bug that results in blank images, if you specify anything other than EPSG:4326 for your srs.
>  Keep the coordinates the same, but use "srs=EPSG:4326". It is a workaround for now and I've been meaning to report it as a jira issue.
>
>  Oh, and use the raster style:
>  "styles=raster"
>
>  Alex
>
>






navteq5k.tfw (64 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

[SOLVED] Re: Using Rasters in Geotools

jeremy.deroyer

Thank's you both Alex and Martin. I've succeded !... with :
- I use geoserver and worldimages to render the rasters
- I use geotools to merge both vectors and rasters displaying, playing, etc...

Seem's to work fine.

You will find the test java class attached.

Many thank's !

Jérémy





Alexander Petkov <[hidden email]>
Envoyé par : [hidden email]

06/01/2006 21:26

A
"[hidden email]" <[hidden email]>, geoserver <[hidden email]>
cc
Objet
Re: [Geoserver-users] Using Rasters in Geotools





Jeremy:

I got it to work--instead of using the Geotiff plugin, I described the coordinates in a world file (see attached) to use with the "Image with spatial file" plugin.
Then, in Geoserver I just configured the coverage store  as "A raster file accompanied by a spatial data file", clicking the usual "apply, load, save" at the end.
Then I created a Coverage for the new Coverage Store, clicking the usual "apply, load, save" at the end.
Using the  "getCoverage" link should display the picture.

Using the link:

http://localhost:8080/geoserver/wms?bbox=580990,2423887,585994,2428891&styles=raster&Format=image/png&request=GetMap&layers= navteq5k_Coverage&width=550&height=550&srs=EPSG:4326

gives me the map.

Alex


On 1/6/06, jeremy.deroyer@... <jeremy.deroyer@... > wrote:

May the force be with you (;-) what you're saying seem good to me because I could be abble to finish the project that just wait after raster to be readable by the human being other than developpers.


Jérémy



Alexander Petkov <greenkov@...>

06/01/2006 18:43


A
"jeremy.deroyer@..." <jeremy.deroyer@...>
cc
Objet
Re: [Geoserver-users] Using Rasters in Geotools







>Won't it give me problem if the srs of my vectors is
EPSG:27582 ?
I dont think so, I mix vector layers that are in lambert with custom parameters.
I will give your geotiff a try.

Alex

On 1/6/06,
jeremy.deroyer@... <jeremy.deroyer@... > wrote:

Yep ! It works with your url (
http://127.0.0.1:8080/geoserver/wcs/GetCoverage?coverage=navteq5k_Coverage&format=png) : i've got all the coverage.

I send you the geotiff file. If you  could see why it doesn't work with the coordinnates I passed in  the url (that are the one in the configuraiton panel) ?


I hope I will be abble to ask geoserver to give me the right coverages to integrate them (with geotools) in my final image mixing geotiff and vectors.


Won't it give me problem if the srs of my vectors is
EPSG:27582 ?

Thank's a lot for your help.


Jérémy DE ROYER




Alexander Petkov < greenkov@...>
Envoyé par :
[hidden email]

05/01/2006 17:36


A
" jeremy.deroyer@..." <jeremy.deroyer@... >
cc
[hidden email]
Objet
Re: [Geoserver-users] Using Rasters in Geotools









A quick way to verify that the coverage is indeed configured in the catalog:

http://127.0.0.1:8080/geoserver/wcs/GetCoverage?coverage=navteq5k_Coverage&format=png

Other than that, the only thing I can think of is that the x-y
coordinates in the BBOX are reversed.

Send me the raster image if you want (and the world file, if any), and
I will try it as well.

Alex

On 1/5/06,
jeremy.deroyer@... < jeremy.deroyer@...> wrote:
>
> I still have a blank image with the following url :
>
>
http://127.0.0.1:8080/geoserver/wms/getmap?request=getmap&version=1.1.3&srs=EPSG:4326&layers=navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=raster
>
> Is there any solution to get the whole raster without telling hime the boundaries that may be in the wrong SRS ?
>
> Jérémy
>
> P.S. : if it may help ?
>
> 4275 [FIN] org.vfny.geoserver.servlets.AbstractService - reading request: request=getmap&version=1.1.3&srs=EPSG:4326&layers=navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=raster
>  24295 [FIN] org.vfny.geoserver.global.Data - getting type navteq5k_Coverage
>  24295 [FIN] org.vfny.geoserver.global.Data - getting coverage navteq5k_Coverage
>
>  24295 [INFO] org.vfny.geoserver.servlets.AbstractService - handling request: org.vfny.geoserver.wms.requests.GetMapRequest@8845dfb9
>  24295 [FIN] org.vfny.geoserver.servlets.AbstractService - strategy is: org.vfny.geoserver.servlets.SpeedStrategy@1906df
>  24365 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'CoordinateOperationFactory' implementations:
>   Register org.geotools.referencing.operation.DefaultCoordinateOperationFactory
>   Register org.geotools.referencing.operation.AuthorityBackedFactory
>  24365 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'CoordinateOperationAuthorityFactory' implementations:
>   Register org.geotools.referencing.factory.epsg.DefaultFactory
>  24625 [CONFIG] org.vfny.geoserver.wms.responses.helpers.JAISupport - Supported JAIMapResponse's MIME Types: [image/jpeg]
>  24636 [FIN] org.vfny.geoserver.wms.responses.GetMapResponse - setting up map
>  25557 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'CSAuthorityFactory' implementations:
>   Register org.geotools.referencing.factory.epsg.DefaultFactory
>  25557 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'DatumAuthorityFactory' implementations:
>   Register org.geotools.referencing.factory.epsg.DefaultFactory
>  27630 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for 'GridCoverageFactory' implementations:
>   Register org.geotools.coverage.grid.GridCoverageFactory
>  27770 [FIN] org.vfny.geoserver.wms.responses.DefaultRasterMapProducer - settingup 500x500 image
>  27800 [FIN] org.geotools.renderer.lite.LiteRenderer - Affine Transform is AffineTransform[[0.099920063948841, 0.0, -58052.557953637086], [0.0, -0.099920063948841, 242694.94404476415]]
>  27830 [FIN] org.geotools.styling.StyleImpl - number of fts set 1
>  27830 [FIN] org.geotools.renderer.lite.LiteRenderer - added attribute grid
>  27900 [FIN] org.geotools.styling.StyleImpl - number of fts set 1
>  27900 [FIN] org.geotools.renderer.lite.LiteRenderer - processing 1 stylers fornavteq5k_Coverage
>  27900 [FIN] org.geotools.renderer.lite.LiteRenderer - processing style 0
>  27900 [FIN] org.geotools.renderer.lite.LiteRenderer - processing rule 0
>  27900 [FIN] org.geotools.renderer.lite.LiteRenderer - Style cache hit ratio: NaN , hits 0, requests 0
>  29362 [FIN] org.vfny.geoserver.servlets.AbstractService - mime type is: image/png
>  29402 [INFO] org.vfny.geoserver.servlets.AbstractService - Service handled
>
>
>
>
>  Alexander Petkov <
greenkov@... >
>
> 05/01/2006 16:58
>
> A "
jeremy.deroyer@... " < jeremy.deroyer@...>
>
> cc
[hidden email]
>
> Objet Re: [Geoserver-users] Using Rasters in Geotools
>
>
>
>
>
>
>
>
>
>
> On 1/5/06,
jeremy.deroyer@... < jeremy.deroyer@... > wrote:
>
>  Ok ! Is there any documentation how to use it because I get a blank image and I don't want to get antoher RTFM (;-).
> My url is (the boudaries are the one listed in the configuration)
>
>  
http://127.0.0.1:8080/geoserver/wms/getmap?request=getmap&version=1.1.3&srs=EPSG:27582&layers=navteq5k_Coverage&width=500&height=500&bbox=580990,2423887,585994,2428891&format=image/png&styles=normal
>
>  Jérémy
>
>  Jeremy:
>  As twisted as it may sound, I believe that you getting the blank image is a good sign.
>
>  There seems to be a bug that results in blank images, if you specify anything other than EPSG:4326 for your srs.
>  Keep the coordinates the same, but use "srs=EPSG:4326". It is a workaround for now and I've been meaning to report it as a jira issue.
>
>  Oh, and use the raster style:
>  "styles=raster"
>
>  Alex
>
>




[rattachement "navteq5k.tfw" supprimé par Jérémy DE ROYER/INGENCYS]

WorldImageViaWms.java (7K) Download Attachment