[Geoserver-users] "Invalid url: 'file:coverages/mosaic_sample/mosaic.shp' for format type:'ImageMosaic'.

Hello,

I’m a beginner with GeoServer
I’ve got the 1.7.4 Geoserver version.
I had real fun with it and managed to display some feature types.
Now, I’m interested in rasters. I’m trying to get a coverage store but it doesn’t work. I tried with the demo data: mosaic.shp, already configured.
When I push the edit button, i get the following error message:
"Invalid url: ‘file:coverages/mosaic_sample/mosaic.shp’ for format type:‘ImageMosaic’.

I followed the steps mentionned in the web:
-I put a user environment variable JAVA_HOME which points to C:\Program Files\Java\j2re1.4.2_06

-I downloaded the GDAL dlls from here
http://trac.osgeo.org/gdal/wiki/BuildingOnWindows
in particular: http://download.osgeo.org/gdal/win32/1.4.1/gdalwin32exe141.zip

-I put them in my C:\Program Files\Java\j2re1.4.2_06\bin directory
So here are the all GDAL files i’ve got in that directory:
gdal14.dll
gdaladdo.exe
gdalconstjni.dll
gdalinfo.exe
gdaljni.dll
gdaltindex.exe
gdalwarp.exe
gdal_contour.exe
gdal_ECW_JP2ECW.dll
gdal_rasterize.exe
gdal_translate.exe
msvcp71.dll
msvcr71.dll

I restarted the server but it still doesn’t work.
Did I miss anything?

I didn’t install the Image-IO extension because i thought it was only mandatory for formats which were not supported. Maybe I was wrong?

Help would be greatly appreciated. It’s been two days I’m trying to get that functional…

Mat’


Souhaitez vous « être au bureau sans y être » ? Oui je le veux !

GeoServer 1.7.x requires Sun Java 1.5.x

The JAVA_HOME variable is one thing, but it must be consistent with the java executable in your path.

Check java -version

-Arne

mathieu rajerison wrote:

Hello,

I'm a beginner with GeoServer
I've got the 1.7.4 Geoserver version.
I had real fun with it and managed to display some feature types.
Now, I'm interested in rasters. I'm trying to get a coverage store but it doesn't work. I tried with the demo data: mosaic.shp, already configured.
When I push the edit button, i get the following error message:
"Invalid url: 'file:coverages/mosaic_sample/mosaic.shp' for format type:'ImageMosaic'.

I followed the steps mentionned in the web:
-I put a user environment variable JAVA_HOME which points to C:\Program Files\Java\j2re1.4.2_06

-I downloaded the GDAL dlls from here
http://trac.osgeo.org/gdal/wiki/BuildingOnWindows
in particular: http://download.osgeo.org/gdal/win32/1.4.1/gdalwin32exe141.zip

-I put them in my C:\Program Files\Java\j2re1.4.2_06\bin directory
So here are the all GDAL files i've got in that directory:
gdal14.dll
gdaladdo.exe
gdalconstjni.dll
gdalinfo.exe
gdaljni.dll
gdaltindex.exe
gdalwarp.exe
gdal_contour.exe
gdal_ECW_JP2ECW.dll
gdal_rasterize.exe
gdal_translate.exe
msvcp71.dll
msvcr71.dll

I restarted the server but it still doesn't work.
Did I miss anything?

I didn't install the Image-IO extension because i thought it was only mandatory for formats which were not supported. Maybe I was wrong?

Help would be greatly appreciated. It's been two days I'm trying to get that functional...

Mat'

------------------------------------------------------------------------
Souhaitez vous « être au bureau sans y être » ? Oui je le veux ! <http://www.microsoft.com/france/windows/bts/default.mspx&gt;
------------------------------------------------------------------------

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get
------------------------------------------------------------------------

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

Hi,

Thanks a lot for the answer.

My Java version was 1.6, so i downgraded it to the 1.5.

Now, when I type java -version, I get:
java version “1.5.0_18”
Java™ 2 Runtime Environment, Standard Edition (build 1.5.0_18-b02)
Java HotSpot™ Client VM (build 1.5.0_18-b02, mixed mode, sharing)

I put a JAVA_HOME environment variable:
C:\Program Files\Java\jdk1.5.0_18

When I want to get the coveragestore for the demo shapefile filemosaic.shp, it still doesn’t work…

Here are the DLLs avalaible in my C:\Program Files\Java\jdk1.5.0_18\bin directory:
beanreg.dll
gdal14.dll
msvcp71.dll
msvcr71.dll

Here are the GDAL EXEs files avaiable in the same directory:
gdaladdo.exe
gdalinfo.exe
gdaltindex.exe
gdalwarp.exe
gdal_contour.exe
gdal_rasterize.exe
gdal_translate.exe

Is there anything missing, something I didn’t configure?

thanks,

Mat’

Date: Wed, 3 Jun 2009 16:04:13 -0500
From: ak@anonymised.com
To: baobazz@anonymised.com
CC: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] "Invalid url: ‘file:coverages/mosaic_sample/mosaic.shp’ for format type:‘ImageMosaic’.

GeoServer 1.7.x requires Sun Java 1.5.x

The JAVA_HOME variable is one thing, but it must be consistent with the
java executable in your path.

Check java -version

-Arne

mathieu rajerison wrote:

Hello,

I’m a beginner with GeoServer
I’ve got the 1.7.4 Geoserver version.
I had real fun with it and managed to display some feature types.
Now, I’m interested in rasters. I’m trying to get a coverage store but
it doesn’t work. I tried with the demo data: mosaic.shp, already
configured.
When I push the edit button, i get the following error message:
"Invalid url: ‘file:coverages/mosaic_sample/mosaic.shp’ for format
type:‘ImageMosaic’.

I followed the steps mentionned in the web:
-I put a user environment variable JAVA_HOME which points to
C:\Program Files\Java\j2re1.4.2_06

-I downloaded the GDAL dlls from here
http://trac.osgeo.org/gdal/wiki/BuildingOnWindows
in particular:
http://download.osgeo.org/gdal/win32/1.4.1/gdalwin32exe141.zip

-I put them in my C:\Program Files\Java\j2re1.4.2_06\bin directory
So here are the all GDAL files i’ve got in that directory:
gdal14.dll
gdaladdo.exe
gdalconstjni.dll
gdalinfo.exe
gdaljni.dll
gdaltindex.exe
gdalwarp.exe
gdal_contour.exe
gdal_ECW_JP2ECW.dll
gdal_rasterize.exe
gdal_translate.exe
msvcp71.dll
msvcr71.dll

I restarted the server but it still doesn’t work.
Did I miss anything?

I didn’t install the Image-IO extension because i thought it was only
mandatory for formats which were not supported. Maybe I was wrong?

Help would be greatly appreciated. It’s been two days I’m trying to
get that functional…

Mat’


Souhaitez vous « être au bureau sans y être » ? Oui je le veux !
http://www.microsoft.com/france/windows/bts/default.mspx


OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get


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


Souhaitez vous « être au bureau sans y être » ? Oui je le veux !

Excuse if my questions are too simple for you…

I did everything from the beginning
-I reinstalled Java SDk without the Public JRE
-I set up the JAVA_HOME system env variable.
-I copied gdal DLLs in my Java/SDK/bin directory
-I then installed GeoServer

But I still get the error message: “Invalid url: ‘file:coverages/mosaic_sample/mosaic.shp’ for format type:'ImageMosaic”

I tried at home on my MAC OS Computer and everything worked fine, without having configured anything on my personal computer…

What’s the problem on the windows platform?

Date: Wed, 3 Jun 2009 16:04:13 -0500
From: ak@anonymised.com
To: baobazz@anonymised.com
CC: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] "Invalid url: ‘file:coverages/mosaic_sample/mosaic.shp’ for format type:‘ImageMosaic’.

GeoServer 1.7.x requires Sun Java 1.5.x

The JAVA_HOME variable is one thing, but it must be consistent with the
java executable in your path.

Check java -version

-Arne

mathieu rajerison wrote:

Hello,

I’m a beginner with GeoServer
I’ve got the 1.7.4 Geoserver version.
I had real fun with it and managed to display some feature types.
Now, I’m interested in rasters. I’m trying to get a coverage store but
it doesn’t work. I tried with the demo data: mosaic.shp, already
configured.
When I push the edit button, i get the following error message:
"Invalid url: ‘file:coverages/mosaic_sample/mosaic.shp’ for format
type:‘ImageMosaic’.

I followed the steps mentionned in the web:
-I put a user environment variable JAVA_HOME which points to
C:\Program Files\Java\j2re1.4.2_06

-I downloaded the GDAL dlls from here
http://trac.osgeo.org/gdal/wiki/BuildingOnWindows
in particular:
http://download.osgeo.org/gdal/win32/1.4.1/gdalwin32exe141.zip

-I put them in my C:\Program Files\Java\j2re1.4.2_06\bin directory
So here are the all GDAL files i’ve got in that directory:
gdal14.dll
gdaladdo.exe
gdalconstjni.dll
gdalinfo.exe
gdaljni.dll
gdaltindex.exe
gdalwarp.exe
gdal_contour.exe
gdal_ECW_JP2ECW.dll
gdal_rasterize.exe
gdal_translate.exe
msvcp71.dll
msvcr71.dll

I restarted the server but it still doesn’t work.
Did I miss anything?

I didn’t install the Image-IO extension because i thought it was only
mandatory for formats which were not supported. Maybe I was wrong?

Help would be greatly appreciated. It’s been two days I’m trying to
get that functional…

Mat’


Souhaitez vous « être au bureau sans y être » ? Oui je le veux !
http://www.microsoft.com/france/windows/bts/default.mspx


OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get


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


Découvrez toutes les possibilités de communication avec vos proches

Ciao Mathieu,
please read below...
-------------------------------------------------------
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, Jun 3, 2009 at 9:53 AM, mathieu rajerison <baobazz@anonymised.com> wrote:

Hello,

I'm a beginner with GeoServer
I've got the 1.7.4 Geoserver version.
I had real fun with it and managed to display some feature types.
Now, I'm interested in rasters. I'm trying to get a coverage store but it
doesn't work. I tried with the demo data: mosaic.shp, already configured.
When I push the edit button, i get the following error message:
"Invalid url: 'file:coverages/mosaic_sample/mosaic.shp' for format
type:'ImageMosaic'.

Mmmhh, strange, going to check shortly.

I followed the steps mentionned in the web:
-I put a user environment variable JAVA_HOME which points to C:\Program
Files\Java\j2re1.4.2_06

-I downloaded the GDAL dlls from here
http://trac.osgeo.org/gdal/wiki/BuildingOnWindows
in particular:
http://download.osgeo.org/gdal/win32/1.4.1/gdalwin32exe141.zip

-I put them in my C:\Program Files\Java\j2re1.4.2_06\bin directory
So here are the all GDAL files i've got in that directory:
gdal14.dll
gdaladdo.exe
gdalconstjni.dll
gdalinfo.exe
gdaljni.dll
gdaltindex.exe
gdalwarp.exe
gdal_contour.exe
gdal_ECW_JP2ECW.dll
gdal_rasterize.exe
gdal_translate.exe
msvcp71.dll
msvcr71.dll

I restarted the server but it still doesn't work.
Did I miss anything?

I didn't install the Image-IO extension because i thought it was only
mandatory for formats which were not supported. Maybe I was wrong?

Installing GDAL itself is useless, GeoTools/GeoServer won't use it
right away. If you need to support layers which are not supported by
GeoServer natively you need to install imageio-ext-gdal extensions.
So, my question is what is your goal?

Simone.

Help would be greatly appreciated. It's been two days I'm trying to get that
functional...

Mat'

________________________________
Souhaitez vous « être au bureau sans y être » ? Oui je le veux !
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hello Simone,

It’s kind of you to answer.

First, I wanted to create my own mosaic with personal tiff tiles.
I did it with the gdaltindex tool.
Once I had my shp tile index file, I launched the geoserver mosaick plugin in the coveragestore but it failed.
It returned me the same error message: “invalid url (…) for format type:‘ImageMosaic’.”
I wondered if it was because my properties file was correct or not…

I told to myself: why not trying with the demo mosaic.shp which is already provided with geoserver?

I went to the coveragestore and clicked “edit” with the mosaic.shp which was already present.
It gave me the error message written in this message. But does the mosaic.shp need the image-io extension as it indexes PNG files (it think so, at least)?
At the moment i performed that, my jdk version was the 1.6 and when i set up my geoserver before, it automatically retrieved the 1.6 jdk folder…Consequently, I think that there was no need to configure a JAVA_HOME variable…

So, with the advice of arne, i downgraded to the 1.5 but I still got the same error message.

I tried displaying the mosaic.shp at home on my Mac OS Computer and all worked properly although i hadn’t configured anything…

I think that the fact even the mosaic.shp doesn’t work on my windows XP platform is not normal. I also tried on a 2003 server platform. I may have missed something. I thought everything should have worked automatically for the mosaic.shp file…

Thanks again to look into my problem,

Mathieu

Date: Thu, 4 Jun 2009 23:22:24 +0200
Subject: Re: [Geoserver-users] "Invalid url: ‘file:coverages/mosaic_sample/mosaic.shp’ for format type:‘ImageMosaic’.
From: simone.giannecchini@anonymised.com…1107…
To: baobazz@anonymised.com
CC: geoserver-users@anonymised.comsourceforge.net

Ciao Mathieu,
please read below…

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, Jun 3, 2009 at 9:53 AM, mathieu rajerison baobazz@anonymised.com wrote:

Hello,

I’m a beginner with GeoServer
I’ve got the 1.7.4 Geoserver version.
I had real fun with it and managed to display some feature types.
Now, I’m interested in rasters. I’m trying to get a coverage store but it
doesn’t work. I tried with the demo data: mosaic.shp, already configured.
When I push the edit button, i get the following error message:
"Invalid url: ‘file:coverages/mosaic_sample/mosaic.shp’ for format
type:‘ImageMosaic’.

Mmmhh, strange, going to check shortly.

I followed the steps mentionned in the web:
-I put a user environment variable JAVA_HOME which points to C:\Program
Files\Java\j2re1.4.2_06

-I downloaded the GDAL dlls from here
http://trac.osgeo.org/gdal/wiki/BuildingOnWindows
in particular:
http://download.osgeo.org/gdal/win32/1.4.1/gdalwin32exe141.zip

-I put them in my C:\Program Files\Java\j2re1.4.2_06\bin directory
So here are the all GDAL files i’ve got in that directory:
gdal14.dll
gdaladdo.exe
gdalconstjni.dll
gdalinfo.exe
gdaljni.dll
gdaltindex.exe
gdalwarp.exe
gdal_contour.exe
gdal_ECW_JP2ECW.dll
gdal_rasterize.exe
gdal_translate.exe
msvcp71.dll
msvcr71.dll

I restarted the server but it still doesn’t work.
Did I miss anything?

I didn’t install the Image-IO extension because i thought it was only
mandatory for formats which were not supported. Maybe I was wrong?

Installing GDAL itself is useless, GeoTools/GeoServer won’t use it
right away. If you need to support layers which are not supported by
GeoServer natively you need to install imageio-ext-gdal extensions.
So, my question is what is your goal?

Simone.

Help would be greatly appreciated. It’s been two days I’m trying to get that
functional…

Mat’


Souhaitez vous « être au bureau sans y être » ? Oui je le veux !

OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get


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


Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? Lancez-vous !

mathieu rajerison ha scritto:
...

I think that the fact even the mosaic.shp doesn't work on my windows XP platform is not normal. I also tried on a 2003 server platform. I may have missed something. I thought everything should have worked automatically for the mosaic.shp file....

As far as I know GeoServer 1.7.4 supports two situations:
- you provide the path to the folder containing the images. GeoServer
   then builds the .shp and the .properties file for you
- you provide the path to the .shp file, but the .properties file
   has to be filled and be correct as well

I'm not sure the mosaic plugin can build the .properties files when
missing at the time or writing.

So, I'd suggest your remove the shapefile build by gdaltindex
and point geoserver to the folder that contains the images of
your mosaic and see if that works.
Otherwise this page should give you some information on how
to build the .properties file:
http://geoserver.org/display/GEOSDOC/Using+the+ImageMosaic+plugin

Cheers
Andrea

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