Hi,
I am totally new to the raster world, but I need to present with my data some layers with altitude, temperatures and things like that. I have all this data in geoTiff (which consist of two files as I have seen). My question is... what makes more sense? To use the coverage branch of geoserver to publish this data or try to import it to PostGIS using this GDAL Postgis driver that I have seen?
Geotiffs are always considered coverages? And just plain images like imagery, is it possible to make them available through Geoserver? Are they considered also coverages?
Is it possible to use styles also in WCS?
Thanks in advance.
Javier.
On 5/18/06, Javier de la Torre <jatorre@...84...> wrote:
Hi,
I am totally new to the raster world, but I need to present with my
data some layers with altitude, temperatures and things like that. I
have all this data in geoTiff (which consist of two files as I have
seen). My question is... what makes more sense? To use the coverage
branch of geoserver to publish this data or try to import it to
PostGIS using this GDAL Postgis driver that I have seen?
I'd say use the WCS branch and then:
1. Configure you Geotiff images as coverages through Geoserver.
2. Also play with GDAL and PostGIS, and then configure the data as FeatureTypes.
So, in essense, experiment. It will quite possibly reveal topics
worthy of discussion on the list.
Geotiffs are always considered coverages?
Yes.
And just plain images like imagery, is it possible to make them
available through Geoserver? Are they considered also coverages?
Yes and yes, though you still need to know the raster projection,
upper left coordinate, and pixel size.
Is it possible to use styles also in WCS?
Yes, although I think the RasterSymbolizer is not ready to style
(color) images (as far as I know).
Alex
Ok,
I am trying right now with WCS... I send you here my first problems... sorry.
------
I am trying to add a GeoTIFF in the WCS branch. Using the configration
tool when I click the submit button on the CoverageStore editor to add
the new coverage I get a "null" on the left menu and the following on
the tomcat output:
-------
INFO: Server startup in 29557 ms
form connection params { Rescale=false}
^@123568 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for
'CSAuthorityFactory' implementations:
Register org.geotools.referencing.factory.epsg.DefaultFactory
^@123569 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for
'DatumAuthorityFactory' implementations:
Register org.geotools.referencing.factory.epsg.DefaultFactory
java.lang.NullPointerException
at org.geotools.gce.geotiff.GeoTiffCoordinateSystemAdapter.createGeographicCoordinateSystem(GeoTiffCoordinateSystemAdapter.java:323)
at org.geotools.gce.geotiff.GeoTiffCoordinateSystemAdapter.createCoordinateSystem(GeoTiffCoordinateSystemAdapter.java:272)
at org.geotools.gce.geotiff.GeoTiffReader.read(GeoTiffReader.java:217)
at org.vfny.geoserver.action.data.DataFormatsEditorAction.execute(DataFormatsEditorAction.java:242)
at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
----------
I tried with Rescale=true and false, but no change.
Am I doing something wrong?
Thanks.
Javier.
----
On 5/18/06, Alexander Petkov <greenkov@anonymised.com> wrote:
On 5/18/06, Javier de la Torre <jatorre@anonymised.com> wrote:
> Hi,
>
> I am totally new to the raster world, but I need to present with my
> data some layers with altitude, temperatures and things like that. I
> have all this data in geoTiff (which consist of two files as I have
> seen). My question is... what makes more sense? To use the coverage
> branch of geoserver to publish this data or try to import it to
> PostGIS using this GDAL Postgis driver that I have seen?
I'd say use the WCS branch and then:
1. Configure you Geotiff images as coverages through Geoserver.
2. Also play with GDAL and PostGIS, and then configure the data as FeatureTypes.
So, in essense, experiment. It will quite possibly reveal topics
worthy of discussion on the list.
> Geotiffs are always considered coverages?
Yes.
>And just plain images like imagery, is it possible to make them
available through Geoserver? Are they considered also coverages?
Yes and yes, though you still need to know the raster projection,
upper left coordinate, and pixel size.
> Is it possible to use styles also in WCS?
Yes, although I think the RasterSymbolizer is not ready to style
(color) images (as far as I know).
Alex
On 5/18/06, Javier de la Torre <jatorre@...84...> wrote:
Ok,
I am trying right now with WCS... I send you here my first problems... sorry.
1. How did you obtain the WCS branch? The SVN repository is down at
the moment. Did you
just use a downloadable archive? The new SVN has many improvements
over older releases.
2. Regarding the Geotiff: do you have ImageMagick or gdal installled?
Could you interrogate
the Geotiff tag info and post the output here? You can use identify
-verbose from ImageMagick or gdalinfo from GDAL.
Alex
------
I am trying to add a GeoTIFF in the WCS branch. Using the configration
tool when I click the submit button on the CoverageStore editor to add
the new coverage I get a "null" on the left menu and the following on
the tomcat output:
-------
INFO: Server startup in 29557 ms
form connection params { Rescale=false}
^@123568 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for
'CSAuthorityFactory' implementations:
Register org.geotools.referencing.factory.epsg.DefaultFactory
^@123569 [CONFIG] org.geotools.factory.FactoryRegistry - Scan for
'DatumAuthorityFactory' implementations:
Register org.geotools.referencing.factory.epsg.DefaultFactory
java.lang.NullPointerException
at org.geotools.gce.geotiff.GeoTiffCoordinateSystemAdapter.createGeographicCoordinateSystem(GeoTiffCoordinateSystemAdapter.java:323)
at org.geotools.gce.geotiff.GeoTiffCoordinateSystemAdapter.createCoordinateSystem(GeoTiffCoordinateSystemAdapter.java:272)
at org.geotools.gce.geotiff.GeoTiffReader.read(GeoTiffReader.java:217)
at org.vfny.geoserver.action.data.DataFormatsEditorAction.execute(DataFormatsEditorAction.java:242)
at org.vfny.geoserver.action.ConfigAction.execute(ConfigAction.java:101)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
----------
I tried with Rescale=true and false, but no change.
Am I doing something wrong?
Thanks.
Javier.
----
On 5/18/06, Alexander Petkov <greenkov@...84...> wrote:
> On 5/18/06, Javier de la Torre <jatorre@...84...> wrote:
> > Hi,
> >
> > I am totally new to the raster world, but I need to present with my
> > data some layers with altitude, temperatures and things like that. I
> > have all this data in geoTiff (which consist of two files as I have
> > seen). My question is... what makes more sense? To use the coverage
> > branch of geoserver to publish this data or try to import it to
> > PostGIS using this GDAL Postgis driver that I have seen?
>
> I'd say use the WCS branch and then:
> 1. Configure you Geotiff images as coverages through Geoserver.
> 2. Also play with GDAL and PostGIS, and then configure the data as FeatureTypes.
>
> So, in essense, experiment. It will quite possibly reveal topics
> worthy of discussion on the list.
>
> > Geotiffs are always considered coverages?
> Yes.
>
> >And just plain images like imagery, is it possible to make them
> available through Geoserver? Are they considered also coverages?
> Yes and yes, though you still need to know the raster projection,
> upper left coordinate, and pixel size.
>
> > Is it possible to use styles also in WCS?
> Yes, although I think the RasterSymbolizer is not ready to style
> (color) images (as far as I know).
>
> Alex
>
> I am trying right now with WCS... I send you here my first problems... sorry.
1. How did you obtain the WCS branch? The SVN repository is down at
the moment. Did you
just use a downloadable archive? The new SVN has many improvements
over older releases.
Yes, I just downloaded the war file that was available in the archive.
As you said the SVN is down... and probably I will need to compile it
and for this I probably need GeoTools and other libraries no? uff... I
tried one without much success so I might wait for a war file that I
can easily try...
2. Regarding the Geotiff: do you have ImageMagick or gdal installled?
Could you interrogate
the Geotiff tag info and post the output here? You can use identify
-verbose from ImageMagick or gdalinfo from GDAL.
This is what I get from GDAL
./gdalinfo /Users/javi/Desktop/GIS\ data/altitud.tif
Driver: GTiff/GeoTIFF
Size is 7200, 3600
Coordinate System is:
GEOGCS["unnamed",
DATUM["unknown",
SPHEROID["unretrievable - using WGS84",6378137,298.257223563]],
PRIMEM["Greenwich",0],
UNIT[,0.0174532925199433]]
Origin = (-30.000000,60.000000)
Pixel Size = (0.00833333,-0.00833333)
Metadata:
TIFFTAG_SOFTWARE=IDRISI KILIMANJARO
TIFFTAG_XRESOLUTION=87.699997
TIFFTAG_YRESOLUTION=87.699997
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Corner Coordinates:
Upper Left ( -30.0000000, 60.0000000) ( 30d 0'0.00"W, 60d 0'0.00"N)
Lower Left ( -30.0000000, 30.0000000) ( 30d 0'0.00"W, 30d 0'0.00"N)
Upper Right ( 30.0000000, 60.0000000) ( 30d 0'0.00"E, 60d 0'0.00"N)
Lower Right ( 30.0000000, 30.0000000) ( 30d 0'0.00"E, 30d 0'0.00"N)
Center ( -0.0000000, 45.0000000) ( 0d 0'0.00"W, 45d 0'0.00"N)
Band 1 Block=7200x1 Type=Int16, ColorInterp=Gray
On 5/18/06, Javier de la Torre <jatorre@...84...> wrote:
> > I am trying right now with WCS... I send you here my first problems... sorry.
>
> 1. How did you obtain the WCS branch? The SVN repository is down at
> the moment. Did you
> just use a downloadable archive? The new SVN has many improvements
> over older releases.
Yes, I just downloaded the war file that was available in the archive.
As you said the SVN is down... and probably I will need to compile it
and for this I probably need GeoTools and other libraries no? uff... I
tried one without much success so I might wait for a war file that I
can easily try...
I could probably upload you a war archive, but I am not sure if its OK
with Simone to link to unofficial releases.
Alex
> 2. Regarding the Geotiff: do you have ImageMagick or gdal installled?
> Could you interrogate
> the Geotiff tag info and post the output here? You can use identify
> -verbose from ImageMagick or gdalinfo from GDAL.
This is what I get from GDAL
./gdalinfo /Users/javi/Desktop/GIS\ data/altitud.tif
Driver: GTiff/GeoTIFF
Size is 7200, 3600
Coordinate System is:
GEOGCS["unnamed",
DATUM["unknown",
SPHEROID["unretrievable - using WGS84",6378137,298.257223563]],
PRIMEM["Greenwich",0],
UNIT[,0.0174532925199433]]
Origin = (-30.000000,60.000000)
Pixel Size = (0.00833333,-0.00833333)
Metadata:
TIFFTAG_SOFTWARE=IDRISI KILIMANJARO
TIFFTAG_XRESOLUTION=87.699997
TIFFTAG_YRESOLUTION=87.699997
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Corner Coordinates:
Upper Left ( -30.0000000, 60.0000000) ( 30d 0'0.00"W, 60d 0'0.00"N)
Lower Left ( -30.0000000, 30.0000000) ( 30d 0'0.00"W, 30d 0'0.00"N)
Upper Right ( 30.0000000, 60.0000000) ( 30d 0'0.00"E, 60d 0'0.00"N)
Lower Right ( 30.0000000, 30.0000000) ( 30d 0'0.00"E, 30d 0'0.00"N)
Center ( -0.0000000, 45.0000000) ( 0d 0'0.00"W, 45d 0'0.00"N)
Band 1 Block=7200x1 Type=Int16, ColorInterp=Gray
Given this info, you can write a world file for the raster and
configure a coverage as "A raster accompanied by spatial data file."
I don't know if the Geotiff plugin assigns a default Spheroid like
GDAL did for you.
Alex
Hi Alex,
I could probably upload you a war archive, but I am not sure if its OK
with Simone to link to unofficial releases.
Would be nice... but have you tried if GeoTiff works with you? I have
tried with two different Geotiffs (from different sources without
success)
I also have seen that in some of the example coverages folder there is
an info.xml file, is this file automatically generated by Geoserver?
do I have to worry about it?
Given this info, you can write a world file for the raster and
configure a coverage as "A raster accompanied by spatial data file."
I tried but also did not succeed... I have to conitnue working on
styles... so I think I leave this for later... maybe with luck when I
need it there will be another release of the WCS branch...
Javi.
On 5/18/06, Javier de la Torre <jatorre@...84...> wrote:
Hi Alex,
> I could probably upload you a war archive, but I am not sure if its OK
> with Simone to link to unofficial releases.
Would be nice... but have you tried if GeoTiff works with you? I have
tried with two different Geotiffs (from different sources without
success)
I also have seen that in some of the example coverages folder there is
an info.xml file, is this file automatically generated by Geoserver?
do I have to worry about it?
> Given this info, you can write a world file for the raster and
> configure a coverage as "A raster accompanied by spatial data file."
I tried but also did not succeed... I have to conitnue working on
styles... so I think I leave this for later... maybe with luck when I
need it there will be another release of the WCS branch...
Javi.
Just hang on until the SVN repo is accessible again.
Alex