Re: [Geoserver-users] ImageMosaic layer: failed to create reader

2013-09-30 Thread Roope Tervo
Some updates

We managed to resolve the problem with Finnish map by adding Envelope2D to 
properties file. Anyway, this didn't resolve the problem with satellite images.

We have tried following things:

* Added Envelope2D to properties file

* Tried with and without 
SuggestedSPI=it.geosolutions.imageioimpl.plugins.tiff.TIFFImageReaderSpi in the 
properties file

* remove native JAI

* change image interleave from pixel to band

* change image projection from EPSG:3067 to EPSG:4326

I would appreciate also topics we should investigate more.

best regards
Roope


From: Roope Tervo [mailto:roope.te...@fmi.fi]
Sent: 27. syyskuuta 2013 21:38
To: Daniele Romagnoli
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] ImageMosaic layer: failed to create reader

Hello and thanks for answer!

We have this problem with two kind of sets of data. The first set contains 
around 400 tiles (Finnish map produced by Land Survey Agency), no height or 
time dimension. An other set contains satellite images, all same from same area 
but different times.

We have configured the data store by referring to folder which contains the 
actual files and datastore.properties with following content:

SPI=org.geotools.data.postgis.PostgisNGJNDIDataStoreFactory
jndiReferenceName=jdbc/postgres
schema=mosaic
Loose\ bbox=true
Estimated\ extends=false

I just realised that I didn't mention that the very same configuration worked 
in version 2.3.

I have attached two files from the first data set. (Finnish map). I send you 
link to the whole data set and satellite image in private message.

best regards
Roope
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] ImageMosaic layer: failed to create reader

2013-09-25 Thread Roope Tervo
: 0,0,0,255
  212: 111,6,29,255
  213: 0,0,0,255
  214: 110,6,30,255
  215: 0,0,0,255
  216: 108,5,30,255
  217: 0,0,0,255
  218: 107,5,31,255
  219: 0,0,0,255
  220: 106,5,32,255
  221: 0,0,0,255
  222: 105,5,33,255
  223: 0,0,0,255
  224: 103,4,33,255
  225: 0,0,0,255
  226: 102,4,34,255
  227: 0,0,0,255
  228: 101,4,35,255
  229: 0,0,0,255
  230: 100,4,36,255
  231: 0,0,0,255
  232: 98,3,36,255
  233: 0,0,0,255
  234: 97,3,37,255
  235: 0,0,0,255
  236: 96,3,38,255
  237: 0,0,0,255
  238: 95,3,39,255
  239: 0,0,0,255
  240: 93,2,39,255
  241: 0,0,0,255
  242: 92,2,40,255
  243: 0,0,0,255
  244: 91,2,41,255
  245: 0,0,0,255
  246: 90,2,42,255
  247: 0,0,0,255
  248: 89,2,43,255
  249: 0,0,0,255
  250: 87,1,43,255
  251: 0,0,0,255
  252: 86,1,44,255
  253: 0,0,0,255
  254: 85,1,45,255
  255: 0,0,0,255

best regards
Roope Tervo


--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] postgis connection limit and performance

2012-12-13 Thread Roope Tervo
Back to this issue after a long time. I got it, thanks to your help!

My connection pool didn't work. I got it working with following steps:

1) added following recourse to $TOMCAT_HOME/conf/context.xml
Resource name=jdbc/postgres auth=Container
  type=javax.sql.DataSource 
driverClassName=org.postgresql.Driver
  url=jdbc:postgresql://host:port/database
  username=example password=pwd maxActive=50 maxIdle=10 
maxWait=-1/

2) changed datastore.properties to following form:
 SPI=org.geotools.data.postgis.PostgisNGJNDIDataStoreFactory
jndiReferenceName=jdbc/postgres
schema=mosaic
Loose\ bbox=true
Estimated\ extends=false

Roope


--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] postgis connection limit and performance

2012-10-02 Thread Roope Tervo
Thanks for answers!

I have been loaded with other jobs and didn't have time to check this. I'll 
have a look soon and keep you informed.

Roope

-Original Message-
From: simbo...@gmail.com [mailto:simbo...@gmail.com] On Behalf Of Simone 
Giannecchini
Sent: 27. syyskuuta 2012 16:01
To: Roope Tervo
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] postgis connection limit and performance

Ciao Roope,
I would suggest to set up a JNDI datasource and then connect to it with a 
proper datastore.properties as explained here:
http://geobatch.geo-solutions.it/download/latest/doc/actionImageMosaic.html#using-jndi-on-postgis

Regards,
Simone Giannecchini
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more 
information.
==

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:   +39 0584 962313
mob:   +39  333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

---


On Wed, Sep 26, 2012 at 9:53 AM, Roope Tervo roope.te...@fmi.fi wrote:
 Hello

 We have a setup with about 100 image mosaic data stores which all use 
 postgis database. At the moment every data store have maximum  5 
 connections. Now we have a problem with too many connections to the 
 database. Does anyone have any experience, is it safe to decrease 
 connections to 1 per store or does it affect to the performance?

 best regards
 Roope


 --
 
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and 
 threat landscape has changed and how IT managers can respond. 
 Discussions will include endpoint security, mobile security and the 
 latest in malware threats. 
 http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Geoserver-users mailing list
 Geoserver-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] postgis connection limit and performance

2012-09-26 Thread Roope Tervo
Hello

We have a setup with about 100 image mosaic data stores which all use 
postgis database. At the moment every data store have maximum  5 
connections. Now we have a problem with too many connections to the 
database. Does anyone have any experience, is it safe to decrease 
connections to 1 per store or does it affect to the performance?

best regards
Roope


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] enlarge geotif bounding box

2012-07-03 Thread Roope Tervo
Hello

I have an image mosaic plugin serving geotifs from small area. Is it 
possible to enlarge original images' bounding box and color everything 
outside of original geotifs as 'a missing mask' by Geoserver? I tried 
'background value' and SLD colormap combination without success.

best regards
Roope




--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] error header for missing times in WMST image mosaic

2012-06-01 Thread Roope Tervo
Hello all

I have WMS+Time image mosaic layers. At the moment if client request 
time which is not available, empty image is responsed. Is there any way 
to response for example some error header, if requested image is not 
available?

best regards
Roope Tervo


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Refreshing capabilities information in image mosiac time dimension

2012-04-24 Thread Roope Tervo

On 21.4.2012 6:52, Andrea Aime wrote:
On Thu, Apr 19, 2012 at 11:43 PM, Roope Tervo roope.te...@fmi.fi 
mailto:roope.te...@fmi.fi wrote:


Hello

I have a image mosaic layer with time dimension. Images are upated
every
5 minutes. Datastore is postgis. Information about new images and
cleaning old ones are handled externally.

Now, getCapabilities does not show the newest available image. Is
there
any way to refresh getCapabilities information?


Hmm... I'm not aware of any caching happening anywhere in the code path
that loads the time domain, then again, I'm not 100% familiar with 
what happens
inside of the mosaic store (Daniele and Simone, cc'ed, know it better 
than I do).


One thing you could try is to use rest-config to force the reset of 
the configuration,

this way the reader is thrown away and whatever internal cache there might
be should be dropped as well:
http://docs.geoserver.org/stable/en/user/restconfig/rest-config-api.html#resource-reset

Cheers
Andrea

Thanks for the answer!

You were correct, there was no any kind of cache. Timestamps were in 
wrong time zone. Geoserver assumed them to be in local time and I used 
UTC time.


Roope



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Refreshing capabilities information in image mosiac time dimension

2012-04-19 Thread Roope Tervo
Hello

I have a image mosaic layer with time dimension. Images are upated every 
5 minutes. Datastore is postgis. Information about new images and 
cleaning old ones are handled externally.

Now, getCapabilities does not show the newest available image. Is there 
any way to refresh getCapabilities information?

best regares
Roope


--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] GeoTiff with time dimension

2012-03-15 Thread Roope Tervo
Hello

I'm trying to configure WCS/WMS with time dimension from GeoTiff. I 
understood that it has to be done with Image Mosaic plugin, plain 
GeoTiff data source is not capable for that?

I'm not able to create a data store. The GeoServer UI gives always an 
error: 'Could not list layers for this store, an error occurred 
retrieving them: Argument value should not be null.'

Tiff-files are converted from png-files with gdal_translate following:
 gdal_translate -a_srs EPSG:4326 -a_ullr 0.2 72 52 35 -of GTiff 
HAV_201203141115_TR_RDBZ.png mosaic/hav1.tif
I've also tried to create a shape file with gdal_tindex (also without 
absolute path=:
  gdaltindex -write_absolute_path hav.shp *.tif

Have any idea what I'm doing wrong?

gdalinfo output and Geoserver log is attached to below.

best regards
Roope Tervo

gdalinfo output:

Driver: GTiff/GeoTIFF
Files: hav1.tif
Size is 3093, 3955
Coordinate System is:
GEOGCS[WGS 84,
 DATUM[WGS_1984,
 SPHEROID[WGS 84,6378137,298.257223563,
 AUTHORITY[EPSG,7030]],
 AUTHORITY[EPSG,6326]],
 PRIMEM[Greenwich,0],
 UNIT[degree,0.0174532925199433],
 AUTHORITY[EPSG,4326]]
Origin = (0.200,72.000)
Pixel Size = (0.016747494342063,-0.009355246523388)
Metadata:
   AREA_OR_POINT=Area
Image Structure Metadata:
   INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left  (   0.200,  72.000) (  0d12'0.00E, 72d 0'0.00N)
Lower Left  (   0.200,  35.000) (  0d12'0.00E, 35d 0'0.00N)
Upper Right (  52.000,  72.000) ( 52d 0'0.00E, 72d 0'0.00N)
Lower Right (  52.000,  35.000) ( 52d 0'0.00E, 35d 0'0.00N)
Center  (  26.100,  53.500) ( 26d 6'0.00E, 53d30'0.00N)
Band 1 Block=3093x1 Type=Byte, ColorInterp=Red
   Mask Flags: PER_DATASET ALPHA
Band 2 Block=3093x1 Type=Byte, ColorInterp=Green
   Mask Flags: PER_DATASET ALPHA
Band 3 Block=3093x1 Type=Byte, ColorInterp=Blue
   Mask Flags: PER_DATASET ALPHA
Band 4 Block=3093x1 Type=Byte, ColorInterp=Alpha


Geoserver log:

2012-03-15 14:19:09,435 ERROR [imagemosaic.Utils] - Unable to create the 
mosaic, check the location:
location is:/smartmet/products/geoserver/scandinavia/radar/dbz/png/mosaic
location exists:true
location is a directory:true
location is writable:false
location is readable:true
location is hidden:false

2012-03-15 14:19:09,435 WARN [imagemosaic.ImageMosaicFormat] - This 
plugin accepts File, URL or String. The string may describe a File or an URL
org.geotools.data.DataSourceException: This plugin accepts File, URL or 
String. The string may describe a File or an URL
 at 
org.geotools.gce.imagemosaic.ImageMosaicReader.initReaderFromURL(ImageMosaicReader.java:230)
 at 
org.geotools.gce.imagemosaic.ImageMosaicReader.init(ImageMosaicReader.java:192)
 at 
org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:436)
 at 
org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:105)
 at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1025)
 at 
org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:808)
 at 
org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(NewLayerPageProvider.java:90)
 at 
org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:56)
 at 
org.geoserver.web.wicket.GeoServerDataProvider.fullSize(GeoServerDataProvider.java:226)
 at 
org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.updateMatched(GeoServerTablePanel.java:522)
 at 
org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.init(GeoServerTablePanel.java:515)
 at 
org.geoserver.web.wicket.GeoServerTablePanel.init(GeoServerTablePanel.java:200)
 at 
org.geoserver.web.wicket.GeoServerTablePanel.init(GeoServerTablePanel.java:91)
 at 
org.geoserver.web.data.layer.NewLayerPage$1.init(NewLayerPage.java:99)
 at 
org.geoserver.web.data.layer.NewLayerPage.init(NewLayerPage.java:99)
 at 
org.geoserver.web.data.store.CoverageStoreNewPage.onSave(CoverageStoreNewPage.java:71)
 at 
org.geoserver.web.data.store.AbstractCoverageStorePage$1.onSubmit(AbstractCoverageStorePage.java:114)
 at 
org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:68)
 at 
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:143)
 at 
org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
 at 
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:300)
 at 
org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
 at 
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
 at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250