Re: [Geoserver-users] wms getmap with env variables

2024-04-23 Thread Giuseppe Falcone
>
> Hi to all,
> after several attempts, I find this solution.
>
> In my getmap request I append this parameter:
>
> =gid-:;value-:;gid-:;value-:;
>
> And use this sld:
>
> 
>  xmlns="http://www.opengis.net/sld;
> xmlns:ogc="http://www.opengis.net/ogc;
> xmlns:xlink="http://www.w3.org/1999/xlink;
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
> xsi:schemaLocation="http://www.opengis.net/sld
> http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd;>
>
> 
> DynamicStyle
> 
> 
> 
> 
> 
> gid
> 
> 
> gid-
>   gid
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  name="Concatenate">
>
> value-
>
> gid
> 
> 
> 
>
> 0
> #b2
>
> 5
> #fed976
>
> 10
> #feb24c
>
> 25
> #fd8d3c
>
> 50
> #fc4e2a
>
> 75
> #e31a1c
>
> 100
> #b10026
>
> color
>
> 
> 
> 
> 
> 
> 
> 
> 
> cod_reg
> 16
> 
> 
> 
> 
>  name="stroke">#dd
> 
> 
> 
> 
> 
> 
> 
>
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


[Geoserver-users] wms getmap with env variables

2024-04-22 Thread Giuseppe Falcone
Hi to all,

I have a polygon layer and I want style it, in wms GetMap request, in
dynamic mode.
Polygons are identified by gid and at runtime I associate at every gid a
value. Polygon colors correspond to these values.
Therefore, I have this object:
[{1:15},{2:34},{3:57},] where 1,2,3 are the polygon gid and 15,34,57
are values necessary to color the polygons:
values between 0 and 20 -> color red
values between 21 and 40 -> color blue
...
I want to use variable substitution in sld, passing
[{1:15},{2:34},{3:57},] object with env parameter in getMap request,
but I can not read gid and values from env to build filter
propertyIsEqualTo (for gid) and valorize fill (with values)

Is this the right way? Any idea?
Thanks a lot.

Giuseppe
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


[Geoserver-users] ecw geoserver error

2024-04-02 Thread Giuseppe Falcone
Hi to all,
I have a geoserver installation with these params:

   - Ubuntu 22.04.4 LTS
   - openjdk version 11.0.22
   - Tomcat 9.0.86
   - geoserver 2.24.2 deployed as war


I need to publish ECW image and so I have installed/compiled related plugin:

ERDAS ECW SDK 5.3.0
SQL Lite 3.37.2
PROJ 8.2.1
GDAL 3.4.1

Now , in WEB-INF/lib, I have these libs:
[image: image.png]
and from geoserver web interface I see:
[image: image.png]
As raster data source I see:
[image: image.png]
When I try to create an ECW storage,  I have this error:

14:26:35 INFO   [geoserver.web] - Getting list of coverages for saved store
file:///var/lib/DATA/GEOSERVER_DATA/XXX.ecw
java.lang.RuntimeException: Could not list layers for this store, an error
occurred retrieving them: Incorrect input type!
at
org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(NewLayerPageProvider.java:181)
at
org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPageProvider.java:60)
at
org.geoserver.web.wicket.GeoServerDataProvider.getFilteredItems(GeoServerDataProvider.java:190)
at
org.geoserver.web.data.layer.NewLayerPageProvider.getFilteredItems(NewLayerPageProvider.java:197)
at
org.geoserver.web.wicket.GeoServerDataProvider.size(GeoServerDataProvider.java:208)
at
org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.updateMatched(GeoServerTablePanel.java:662)
at
org.geoserver.web.wicket.GeoServerTablePanel$PagerDelegate.(GeoServerTablePanel.java:657)
at
org.geoserver.web.wicket.GeoServerTablePanel.(GeoServerTablePanel.java:236)
at
org.geoserver.web.wicket.GeoServerTablePanel.(GeoServerTablePanel.java:105)
at
org.geoserver.web.data.layer.NewLayerPage$1.(NewLayerPage.java:111)
at
org.geoserver.web.data.layer.NewLayerPage.(NewLayerPage.java:110)
at
org.geoserver.web.data.store.CoverageStoreNewPage.onSuccessfulSave(CoverageStoreNewPage.java:86)
at
org.geoserver.web.data.store.CoverageStoreNewPage.onSave(CoverageStoreNewPage.java:71)
at
org.geoserver.web.data.store.AbstractCoverageStorePage$1.onSubmit(AbstractCoverageStorePage.java:147)
at
org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:111)
at
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior$AjaxFormSubmitter.onSubmit(AjaxFormSubmitBehavior.java:218)
at
org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1312)
at org.apache.wicket.markup.html.form.Form.process(Form.java:976)
at
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:797)
at
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:174)
at
org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:155)
at
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:601)
at jdk.internal.reflect.GeneratedMethodAccessor189.invoke(Unknown
Source)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
at
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:248)
at
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895)
at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
at
org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
at
org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
at
org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:555)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
at
org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:166)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:177)
at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:51)
at

[Geoserver-users] hazelcast cluster plugin problem

2024-01-08 Thread Giuseppe Falcone
Hi all,

I have installed geoserver 2.24.1 as war on tomcat on 2 server linux. I
want implement a cluster using hazelcast. I have already installed
jdbcstore/jdbcconfig and configured them to have configuration on
postgresql db. Now I have downloaded jar
https://build.geoserver.org/geoserver/2.24.x/community-2024-01-04/geoserver-2.24-SNAPSHOT-hz-cluster-plugin.zip
and added its content on WEB-INF/lib dir
When I reboot geoserver, I have this error, and geoserver doesn't start.
Someone has any idea?
Thanks in advance
Giuseppe

13:55:53 ERROR  [context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'hzHomePageContentProvider' defined in URL
[jar:file:/opt/tomcat/webapps/geoserver/WEB-INF/lib/gs-hz-cluster-2.24-
SNAPSHOT.jar!/applicationContext.xml]: Cannot resolve reference to bean
'hzCluster' while setting constructor argument; nested exception is
org.springframework.beans.factory.BeanCreationException: Erro
r creating bean with name 'hzCluster' defined in URL
[jar:file:/opt/tomcat/webapps/geoserver/WEB-INF/lib/gs-hz-cluster-2.24-SNAPSHOT.jar!/applicationContext.xml]:
Instantiation of bean failed; nested e
xception is java.lang.NoSuchMethodError: 'void
org.geotools.xml.XMLUtils.checkSupportForJAXP15Properties()'
 at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:342)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:113)
at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:707)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:198)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:920)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:399)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:278)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
at
org.geoserver.platform.GeoServerContextLoaderListener.contextInitialized(GeoServerContextLoaderListener.java:22)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4462)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4914)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:661)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1023)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1910)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at
java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:824)
at

[Geoserver-users] missing attribute "name" in describefeaturetype return

2023-10-05 Thread Giuseppe Falcone
Hi to all

I have a geoserver 2.21.1  installation.
I have some features with an attribute named "name".
When I execute a describefeaturetype on these features, attribute "name"
isn't returned.
Why?
Thanks a lot.

Giuseppe
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


[Geoserver-users] users and roles

2023-07-07 Thread Giuseppe Falcone
Hi to all,

I have this need:
on a geoserver 2.16.3 instance I have a 5 workspace with some layers.
I want that on a single workspace (not all) the getCapabilities url to be
free and the getFeature url on same layers to be protected with username
and password.
Is this possible?
Thanks a lot.

Giuseppe
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


[Geoserver-users] WFS getfeature with attribute type byte array

2023-01-16 Thread Giuseppe Falcone
Hi to all,
I have a feature with an attribute with type byte array.
[image: image.png]
In this field is stored an image related to feature.
When I execute a getFeature, it returns this value:

{"type":"Feature","id":"test.fid--19187f64_185ba423c9e_-4bbc","geometry":{"type":"Point","coordinates":[561073.4,4459704.6]},"geometry_name":"geom","properties":{"gid":43,"it":null,"id":null,"x":null,"y":null,"en":null,"de":null,"fr":null,"sp":null,"link":null,"foto":null,"testblob":"[B@ab4974c","testdata":null}}

In testblob field I have inserted images of the size of 500KB.

What's wrong?

Thanks a lot.

Giuseppe
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


[Geoserver-users] problem with groupLayer and jdbc plugin

2022-07-28 Thread Giuseppe Falcone
Hi to all,

I have an installation of geoserver 2.19.2 with jdbc config and jdbc store
plugin.
I have a cluster of 2 instance that share a configuration on database
postgresql.
I have created a group layer, but every time I want manage it (modify,
rename, delete, ...) I have this exception.
Thanks a lot.
Giuseppe


java.lang.reflect.UndeclaredThrowableException at
com.sun.proxy.$Proxy32.list(Unknown Source) at
org.geoserver.catalog.impl.CatalogImpl.list(CatalogImpl.java:2065) at
org.geoserver.catalog.impl.CatalogImpl.get(CatalogImpl.java:2074) at
org.geoserver.security.SecureCatalogImpl.get(SecureCatalogImpl.java:1453)
at
org.geoserver.catalog.impl.AbstractFilteredCatalog.get(AbstractFilteredCatalog.java:755)
at
org.geoserver.catalog.impl.LocalWorkspaceCatalog.get(LocalWorkspaceCatalog.java:510)
at
org.geoserver.catalog.impl.ModificationProxy.replaceCatalogInfo(ModificationProxy.java:508)
at
org.geoserver.catalog.impl.ModificationProxy.readResolve(ModificationProxy.java:415)
at jdk.internal.reflect.GeneratedMethodAccessor365.invoke(Unknown Source)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566) at
java.base/java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1265)
at
java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2231)
at
java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1681)
at
java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2490)
at
java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2384)
at
java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:)
at
java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1681)
at
java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:493)
at
java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:451)
at java.base/java.util.HashMap.readObject(HashMap.java:1466) at
java.base/jdk.internal.reflect.GeneratedMethodAccessor354.invoke(Unknown
Source) at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566) at
java.base/java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1175)
at
java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2351)
at
java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:)
at
java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1681)
at
java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2490)
at
java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2384)
at
java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:)
at
java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1681)
at
java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2490)
at
java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2384)
at
java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:)
at
java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1681)
at
java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2490)
at
java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2384)
at
java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:)
at
java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1681)
at
java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2490)
at
java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2384)
at
java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:)
at
java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1681)
at
java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2490)
at
java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2384)
at
java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:)
at
java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1681)
at
java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:493)
at
java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:451)
at java.base/java.util.ArrayList.readObject(ArrayList.java:929) at
java.base/jdk.internal.reflect.GeneratedMethodAccessor345.invoke(Unknown
Source) at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566) at
java.base/java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1175)
at
java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2351)
at

Re: [Geoserver-users] geoserver cluster hazelcast

2022-06-20 Thread Giuseppe Falcone
Thanks for the response!
At link that you indicate I find some interesting presentation about
geoserver functionality and configuration but nothing about to do it.
Searching, I have found a community module at
https://build.geoserver.org/geoserver/2.20.x/community-latest/ to implement
a cluster wit hazelcast but no information about use and configure it.
Another link says that I have put geoserver configuration on
database rather than filesystem, but how to do it?
There are some indications on how configure an active-active geoserver
cluster with hazelcast?
Thanks in advance

Giuseppe

Giuseppe

Il giorno ven 17 giu 2022 alle ore 18:19 Alexandre Gacon <
alexandre.ga...@gmail.com> ha scritto:

> Hi
>
> The plugin to mention is not to put Geoserver into a cluster but to use a
> WPS service with Hazelcast.
>
> The geosolutions company shares several presentations on this topic.
> https://speakerdeck.com/simboss
>
> Alexandre
>
>
> Le ven. 17 juin 2022 à 18:11, Giuseppe Falcone 
> a écrit :
>
>> Hi all,
>>
>> I have to install geoserver into a production environment where is
>> requested a cluster installation to improve availability and reliability.
>> I have some difficult to find documentation related that.
>> I want use hazelcast solution, but I don't think I have only install and
>> configure 2.21.0-wps-cluster-hazelcast-plugin.zip
>> Where I can find some tutorial/guide to configure a cluster solution with
>> hazelcast?
>> Thanks a lot.
>>
>> Giuseppe
>> ___
>> Geoserver-users mailing list
>>
>> Please make sure you read the following two resources before posting to
>> this list:
>> - Earning your support instead of buying it, but Ian Turton:
>> http://www.ianturton.com/talks/foss4g.html#/
>> - The GeoServer user list posting guidelines:
>> http://geoserver.org/comm/userlist-guidelines.html
>>
>> If you want to request a feature or an improvement, also see this:
>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>>
>>
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


[Geoserver-users] geoserver cluster hazelcast

2022-06-17 Thread Giuseppe Falcone
Hi all,

I have to install geoserver into a production environment where is
requested a cluster installation to improve availability and reliability.
I have some difficult to find documentation related that.
I want use hazelcast solution, but I don't think I have only install and
configure 2.21.0-wps-cluster-hazelcast-plugin.zip
Where I can find some tutorial/guide to configure a cluster solution with
hazelcast?
Thanks a lot.

Giuseppe
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


[Geoserver-users] DescribeFeatureType problem

2022-06-10 Thread Giuseppe Falcone
Hi to all,
I have this behaviour on geoserver 2.10.1:

getcapabilities request
http://localhost/geoserver/demo/wfs?service=WFS=getcapabilities
return this

http://www.w3.org/2001/XMLSchema-instance;
xmlns="http://www.opengis.net/wfs/2.0; xmlns:wfs="
http://www.opengis.net/wfs/2.0; xmlns:ows="http://www.opengis.net/ows/1.1;
xmlns:gml="http://www.opengis.net/gml/3.2; xmlns:fes="
http://www.opengis.net/fes/2.0; xmlns:xlink="http://www.w3.org/1999/xlink;
xmlns:xs="http://www.w3.org/2001/XMLSchema; xmlns:demo="demo.sit.it"
version="2.0.0" xsi:schemaLocation="http://www.opengis.net/wfs/2.0 http://
localhost  /geoserver/schemas/wfs/2.0/wfs.xsd" updateSequence="111">

GeoServer Web Feature Service
This is the reference implementation of WFS 1.0.0 and WFS
1.1.0, supports all WFS operations including Transaction.

WFS
WMS
GEOSERVER

WFS
2.0.0
NONE
NONE


So, i desume that I have to use version 2.0.0 for wfs request.

I execute this describeFeatureType request, using typenames instead of
typename because version = 2.0.0:

http://localhost/geoserver/demo/wfs?service=WFS=palo_catenaria=2.0.0=DescribeFeatureType

the result of this call is wrong; it returns all features and not only
palo_catenaria (it doesn't understand typeNames attribute)

If I execute previous call using typeName, the result is correct:

http://localhost/geoserver/demo/wfs?service=WFS=palo_catenaria=2.0.0=DescribeFeatureType

Why that?
Thansk a lot

Giuseppe
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


Re: [Geoserver-users] REST API importer: specify table to load data

2022-05-24 Thread Giuseppe Falcone
Hi to all,

I think the exception is due to geoserver version:

24 mag 07:21:53 ERROR [geoserver.rest] -
com.thoughtworks.xstream.mapper.CannotResolveClassException: updateMode
at
com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:79)
at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:30)

I tried the procedure on geoserver 2.20.2 and it's ok
This is the sequence of operations:

1. POST geoserver/rest/imports to create import; post the json
{
"import": {
"targetStore": {
"dataStore": {
"name": "store"
}
},
"targetWorkspace": {
"workspace": {
"name": "ws"
}
}
}
}
return importID

2. POST geoserver/rest/imports//tasks to create task; post
form-data with shapefile zipped
return taksID

3. PUT geoserver/rest/imports//tasks/ to set append mode;
post the json
{
"updateMode": "APPEND",
"layer": {
"name": "layerA",
"nativeName": "layerA"
}
}
return 204 no content

4. PUT geoserver/rest/imports//tasks//target to reset
datastore; post the json
{
  "dataStore": {
"name":"store"
  }
}
return 204 no content
5. POST geoserver/rest/imports/   with no body to execute import
return 204 no content

the import is executed and data are in layerA layer!

Giuseppe


Il giorno lun 23 mag 2022 alle ore 14:26 Giuseppe Falcone <
falcone.giuse...@gmail.com> ha scritto:

> Thanks
>
> I try the PUT with this body
>
> {
> "updateMode": "APPEND",
> "layer": {
> "name": "layerA",
> "nativeName": "layerA"
> }
> }
>
> I receive a 500 error with the message 'updateMode'
> I'm using geoserver 2.10.1
>
> for layer REST representation do you mean the response of these?
> http://10.23.8.193:8080/geoserver/rest/layers/layerA.html
>
> Thanks
>
> Giuseppe
>
> Il giorno lun 23 mag 2022 alle ore 11:20 Andrea Aime <
> andrea.a...@geosolutionsgroup.com> ha scritto:
>
>> Hi Giuseppe,
>> close, but your JSON is one level off, you're updating the task, so it's
>> the top level object in the request.
>> So it would be something like this:
>>
>> {
>> "updateMode": "APPEND",
>> "layer": {
>> "name": "layerA"
>> }
>> }
>>
>> Checking a REST script I have handy, inside the layer I also have
>> "nativeName" : "theNativeName" (check the value for nativeName from the
>> layer REST representation).
>>
>> Cheers
>> Andrea
>>
>>
>> On Mon, May 23, 2022 at 11:05 AM Giuseppe Falcone <
>> falcone.giuse...@gmail.com> wrote:
>>
>>> Thanks a lot Andrea for the response, but I'm not able to do that
>>> 1. POST http://10.23.8.193:8080/geoserver/rest/import to create task
>>> import
>>> 2. POST http://10.23.8.193:8080/geoserver/rest/import//task to
>>> upload shapefile zip (multipart form-data)
>>>
>>> 3. What is the body of PUT request  
>>> /geoserver/rest/imports//tasks/
>>> to change target layer name?
>>> I try:
>>> {
>>> "task":{
>>> "id": 0,
>>> "href": "http://10.23.8.193:8080/geoserver/rest/imports/24/tasks/0;,
>>> "updateMode": "APPEND",
>>> "layer": {
>>> "name": "layerA"
>>> }
>>> }
>>> }
>>>
>>> (layerA is a layer on geoserver, on same workspace and same datastore
>>> having same fields of uploaded shapefile)
>>> But I receive error "Cannot cast org.geoserver.importer.ImportTask to
>>> org.geoserver.catalog.StoreInfo"
>>>
>>> Thanks a lot
>>>
>>> Giuseppe
>>>
>>>
>>>
>>>
>>> Il giorno dom 22 mag 2022 alle ore 17:17 Andrea Aime <
>>> andrea.a...@geosolutionsgroup.com> ha scritto:
>>>
>>>> On Thu, May 19, 2022 at 9:47 AM Giuseppe Falcone <
>>>> falcone.giuse...@gmail.com> wrote:
>>>>
>>>>> Thanks for you response.
>>>>> I rephrase the question:
>>>>> I have a web application where a user uploads a shapefile and this
>>>>> needs to be inserted into a postgis table that has the same fields (in
>&g

Re: [Geoserver-users] REST API importer: specify table to load data

2022-05-23 Thread Giuseppe Falcone
Thanks

I try the PUT with this body

{
"updateMode": "APPEND",
"layer": {
"name": "layerA",
"nativeName": "layerA"
}
}

I receive a 500 error with the message 'updateMode'
I'm using geoserver 2.10.1

for layer REST representation do you mean the response of these?
http://10.23.8.193:8080/geoserver/rest/layers/layerA.html

Thanks

Giuseppe

Il giorno lun 23 mag 2022 alle ore 11:20 Andrea Aime <
andrea.a...@geosolutionsgroup.com> ha scritto:

> Hi Giuseppe,
> close, but your JSON is one level off, you're updating the task, so it's
> the top level object in the request.
> So it would be something like this:
>
> {
> "updateMode": "APPEND",
> "layer": {
> "name": "layerA"
> }
> }
>
> Checking a REST script I have handy, inside the layer I also have
> "nativeName" : "theNativeName" (check the value for nativeName from the
> layer REST representation).
>
> Cheers
> Andrea
>
>
> On Mon, May 23, 2022 at 11:05 AM Giuseppe Falcone <
> falcone.giuse...@gmail.com> wrote:
>
>> Thanks a lot Andrea for the response, but I'm not able to do that
>> 1. POST http://10.23.8.193:8080/geoserver/rest/import to create task
>> import
>> 2. POST http://10.23.8.193:8080/geoserver/rest/import//task to
>> upload shapefile zip (multipart form-data)
>>
>> 3. What is the body of PUT request  
>> /geoserver/rest/imports//tasks/
>> to change target layer name?
>> I try:
>> {
>> "task":{
>> "id": 0,
>> "href": "http://10.23.8.193:8080/geoserver/rest/imports/24/tasks/0;,
>> "updateMode": "APPEND",
>> "layer": {
>> "name": "layerA"
>> }
>> }
>> }
>>
>> (layerA is a layer on geoserver, on same workspace and same datastore
>> having same fields of uploaded shapefile)
>> But I receive error "Cannot cast org.geoserver.importer.ImportTask to
>> org.geoserver.catalog.StoreInfo"
>>
>> Thanks a lot
>>
>> Giuseppe
>>
>>
>>
>>
>> Il giorno dom 22 mag 2022 alle ore 17:17 Andrea Aime <
>> andrea.a...@geosolutionsgroup.com> ha scritto:
>>
>>> On Thu, May 19, 2022 at 9:47 AM Giuseppe Falcone <
>>> falcone.giuse...@gmail.com> wrote:
>>>
>>>> Thanks for you response.
>>>> I rephrase the question:
>>>> I have a web application where a user uploads a shapefile and this
>>>> needs to be inserted into a postgis table that has the same fields (in
>>>> append mode). Shapefile and table don't necessarily have the same name.
>>>> There is a manner to execute this task via rest api or  importer api?
>>>>
>>>
>>> Use the REST API:
>>>
>>>-  Set up the context and the shapefile to import
>>>- Use PUT requests against the context to update the import mode
>>>(APPEND) and change the target layer name (to the one you want to append 
>>> to)
>>>- Run the import.
>>>
>>>
>>> Cheers
>>> Andrea
>>>
>>>
>>> ==
>>> GeoServer Professional Services from the experts!
>>>
>>> Visit http://bit.ly/gs-services-us for more information.
>>> ==
>>>
>>> Ing. Andrea Aime
>>> @geowolf
>>> Technical Lead
>>>
>>> GeoSolutions Group
>>> phone: +39 0584 962313
>>>
>>> fax: +39 0584 1660272
>>>
>>> mob:   +39  333 8128928
>>>
>>> https://www.geosolutionsgroup.com/
>>>
>>> http://twitter.com/geosolutions_it
>>>
>>> ---
>>>
>>> Con riferimento alla normativa sul trattamento dei dati personali (Reg.
>>> UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
>>> precisa che ogni circostanza inerente alla presente email (il suo
>>> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
>>> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
>>> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
>>> operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
>>>
>>> This email is intended only for the person or entity to which it is
>>> addressed and may contain information that is privileged, confidential or

Re: [Geoserver-users] REST API importer: specify table to load data

2022-05-23 Thread Giuseppe Falcone
Thanks a lot Andrea for the response, but I'm not able to do that
1. POST http://10.23.8.193:8080/geoserver/rest/import to create task import
2. POST http://10.23.8.193:8080/geoserver/rest/import//task to
upload shapefile zip (multipart form-data)

3. What is the body of PUT request
/geoserver/rest/imports//tasks/
to change target layer name?
I try:
{
"task":{
"id": 0,
"href": "http://10.23.8.193:8080/geoserver/rest/imports/24/tasks/0;,
"updateMode": "APPEND",
"layer": {
"name": "layerA"
}
}
}

(layerA is a layer on geoserver, on same workspace and same datastore
having same fields of uploaded shapefile)
But I receive error "Cannot cast org.geoserver.importer.ImportTask to
org.geoserver.catalog.StoreInfo"

Thanks a lot

Giuseppe




Il giorno dom 22 mag 2022 alle ore 17:17 Andrea Aime <
andrea.a...@geosolutionsgroup.com> ha scritto:

> On Thu, May 19, 2022 at 9:47 AM Giuseppe Falcone <
> falcone.giuse...@gmail.com> wrote:
>
>> Thanks for you response.
>> I rephrase the question:
>> I have a web application where a user uploads a shapefile and this needs
>> to be inserted into a postgis table that has the same fields (in append
>> mode). Shapefile and table don't necessarily have the same name.
>> There is a manner to execute this task via rest api or  importer api?
>>
>
> Use the REST API:
>
>-  Set up the context and the shapefile to import
>- Use PUT requests against the context to update the import mode
>(APPEND) and change the target layer name (to the one you want to append 
> to)
>- Run the import.
>
>
> Cheers
> Andrea
>
>
> ==
> GeoServer Professional Services from the experts!
>
> Visit http://bit.ly/gs-services-us for more information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions Group
> phone: +39 0584 962313
>
> fax: +39 0584 1660272
>
> mob:   +39  333 8128928
>
> https://www.geosolutionsgroup.com/
>
> http://twitter.com/geosolutions_it
>
> ---
>
> Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
> 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
> precisa che ogni circostanza inerente alla presente email (il suo
> contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
> riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
> messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
> operazione è illecita. Le sarei comunque grato se potesse darmene notizia.
>
> This email is intended only for the person or entity to which it is
> addressed and may contain information that is privileged, confidential or
> otherwise protected from disclosure. We remind that - as provided by
> European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
> e-mail or the information herein by anyone other than the intended
> recipient is prohibited. If you have received this email by mistake, please
> notify us immediately by telephone or e-mail
>
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


Re: [Geoserver-users] REST API importer: specify table to load data

2022-05-19 Thread Giuseppe Falcone
Thanks for you response.
I rephrase the question:
I have a web application where a user uploads a shapefile and this needs to
be inserted into a postgis table that has the same fields (in append mode).
Shapefile and table don't necessarily have the same name.
There is a manner to execute this task via rest api or  importer api?

Thanks

Giuseppe


Il giorno mer 11 mag 2022 alle ore 09:31 Jody Garnett <
jody.garn...@gmail.com> ha scritto:

> I tried using the importer user interface using a shapefile, and while I
> can adjust the name of the layer being created, the result still has the
> native name  unchanged.
>
> So I think you are looking change to the code, it would be a nice change
> allowing user to define the name of the table being imported.
> --
> Jody Garnett
>
>
> On May 10, 2022 at 12:14:37 AM, Giuseppe Falcone <
> falcone.giuse...@gmail.com> wrote:
>
>> I use importer rest api.
>> So:
>> step 1: POST   /geoserver/rest/imports (specifying target workspace and
>> target datastore) to obtain an importID
>> step2: POST/geoserver/rest/imports//tasks (passing zip file
>> into body) to obtain a taskID (zip is uploaded into geoserver data dir and
>> is unzipped)
>> step3: PUT  /geoserver/rest/imports//tasks//target
>> to reset the target store for given taskID
>> step4: POST/geoserver/rest/imports/ to execute import
>>
>> This sequence of operations create a table named as passed shapefile into
>> given workspace/datastore;
>> if a table with same name already exists, created table is renamed
>> appending number.
>>
>> If between step2 and step3 I execute PUT 
>> geoserver/rest/imports//tasks/
>> passing
>> {
>>   "layer": {
>> "name": "layer1",
>> "title": "layer1"
>>   }
>> }
>> I could rename layer on geoserver with a different name than that of the
>> table.
>>
>> If between step2 and step3 I execute PUT 
>> geoserver/rest/imports//tasks/
>> passing
>> {
>>   "task": {
>>  "updateMode": "APPEND"
>>   }
>> }
>> I could append data into existing table (named as uploaded shapefile)
>>
>> I can't find a way to insert data from uploaded shapefile shape.shp into
>> a table which is called tableA (with same fields obviously)
>>
>> It's possible?
>> Thanks
>>
>> Giuseppe
>>
>>
>>
>>
>> Il giorno mar 10 mag 2022 alle ore 06:33 Jody Garnett <
>> jody.garn...@gmail.com> ha scritto:
>>
>>> You may also consider using the resource rest api to upload the file,
>>> and the the importer rest api in ingest (it offers greater control as Ian
>>> suggests).
>>>
>>> The upload you found determines a unique table name based on the
>>> provided content, so for your shapefile this is based on the filename.
>>>
>>> The file is here
>>> https://github.com/geoserver/geoserver/blob/main/src/restconfig/src/main/java/org/geoserver/rest/catalog/DataStoreFileController.java
>>>  if
>>> you wish to troubleshoot.
>>>
>>> // does the feature type already exist in the target?
>>> try {
>>> targetDataStore.getSchema(featureTypeName);
>>> } catch (Exception e) {
>>> LOGGER.info(
>>> featureTypeName
>>> + " does not exist in data store
>>> "
>>> + storeName
>>> + ". Attempting to create it");
>>>
>>> // schema does not exist, create it by first
>>> creating an instance
>>> // of the source datastore and copying over its
>>> schema
>>>
>>> targetDataStore.createSchema(sourceDataStore.getSchema(featureTypeName));
>>> sourceDataStore.getSchema(featureTypeName);
>>> }
>>>
>>> --
>>> Jody Garnett
>>>
>>>
>>> On May 9, 2022 at 10:34:22 AM, Giuseppe Falcone <
>>> falcone.giuse...@gmail.com> wrote:
>>>
>>>> Hi
>>>> thanks for the response.
>>>> I'm building a web application that must have this function.
>>>> From browser user upload a shapefile e I put into a db table.
>>>> I think REST API are 

Re: [Geoserver-users] REST API importer: specify table to load data

2022-05-10 Thread Giuseppe Falcone
I use importer rest api.
So:
step 1: POST   /geoserver/rest/imports (specifying target workspace and
target datastore) to obtain an importID
step2: POST/geoserver/rest/imports//tasks (passing zip file
into body) to obtain a taskID (zip is uploaded into geoserver data dir and
is unzipped)
step3: PUT  /geoserver/rest/imports//tasks//target
to reset the target store for given taskID
step4: POST/geoserver/rest/imports/ to execute import

This sequence of operations create a table named as passed shapefile into
given workspace/datastore;
if a table with same name already exists, created table is renamed
appending number.

If between step2 and step3 I execute PUT
geoserver/rest/imports//tasks/
passing
{
  "layer": {
"name": "layer1",
"title": "layer1"
  }
}
I could rename layer on geoserver with a different name than that of the
table.

If between step2 and step3 I execute PUT
geoserver/rest/imports//tasks/
passing
{
  "task": {
 "updateMode": "APPEND"
  }
}
I could append data into existing table (named as uploaded shapefile)

I can't find a way to insert data from uploaded shapefile shape.shp into a
table which is called tableA (with same fields obviously)

It's possible?
Thanks

Giuseppe




Il giorno mar 10 mag 2022 alle ore 06:33 Jody Garnett <
jody.garn...@gmail.com> ha scritto:

> You may also consider using the resource rest api to upload the file, and
> the the importer rest api in ingest (it offers greater control as Ian
> suggests).
>
> The upload you found determines a unique table name based on the provided
> content, so for your shapefile this is based on the filename.
>
> The file is here
> https://github.com/geoserver/geoserver/blob/main/src/restconfig/src/main/java/org/geoserver/rest/catalog/DataStoreFileController.java
>  if
> you wish to troubleshoot.
>
> // does the feature type already exist in the target?
> try {
> targetDataStore.getSchema(featureTypeName);
> } catch (Exception e) {
> LOGGER.info(
> featureTypeName
> + " does not exist in data store "
> + storeName
> + ". Attempting to create it");
>
> // schema does not exist, create it by first
> creating an instance
> // of the source datastore and copying over its
> schema
>
> targetDataStore.createSchema(sourceDataStore.getSchema(featureTypeName));
> sourceDataStore.getSchema(featureTypeName);
> }
>
> --
> Jody Garnett
>
>
> On May 9, 2022 at 10:34:22 AM, Giuseppe Falcone <
> falcone.giuse...@gmail.com> wrote:
>
>> Hi
>> thanks for the response.
>> I'm building a web application that must have this function.
>> From browser user upload a shapefile e I put into a db table.
>> I think REST API are perfect for this purpose.
>>
>> Giuseppe
>>
>> Il giorno lun 9 mag 2022 alle ore 19:22 Ian Turton 
>> ha scritto:
>>
>>> I'm not sure that you need to involve geoserver in this, Ogr2ogr would
>>> be quicker and easier to append a shapefile to a database. The GeoServer
>>> rest api is for creating data stores and layers etc not individual data
>>> management.
>>>
>>> Alternatively you might be able to use the importer extension to do this
>>> but I've not used that in anger
>>>
>>>
>>> Ian
>>>
>>> On Mon, 9 May 2022, 17:25 Giuseppe Falcone, 
>>> wrote:
>>>
>>>> Hi to all
>>>> I want with geoserver REST API put a shapefile into an existing postgis
>>>> table.
>>>> I know how to load a shapefile into a postgis database, but I don't
>>>> know how I could indicate a specific table in which append data.
>>>> I Have a shapefile named tableA.shp; it's possible put it's data into a
>>>> postgis table named tableB?
>>>> Thanks a lot
>>>>
>>>> Giuseppe
>>>>
>>>> ___
>>>> Geoserver-users mailing list
>>>>
>>>> Please make sure you read the following two resources before posting to
>>>> this list:
>>>> - Earning your support instead of buying it, but Ian Turton:
>>>> http://www.ianturton.com/talks/foss4g.html#/
>>>> - The GeoServer user list posting guidelines:
>>>> http://geoserver.org/comm/userli

Re: [Geoserver-users] REST API importer: specify table to load data

2022-05-09 Thread Giuseppe Falcone
Hi
thanks for the response.
I'm building a web application that must have this function.
>From browser user upload a shapefile e I put into a db table.
I think REST API are perfect for this purpose.

Giuseppe

Il giorno lun 9 mag 2022 alle ore 19:22 Ian Turton  ha
scritto:

> I'm not sure that you need to involve geoserver in this, Ogr2ogr would be
> quicker and easier to append a shapefile to a database. The GeoServer rest
> api is for creating data stores and layers etc not individual data
> management.
>
> Alternatively you might be able to use the importer extension to do this
> but I've not used that in anger
>
>
> Ian
>
> On Mon, 9 May 2022, 17:25 Giuseppe Falcone, 
> wrote:
>
>> Hi to all
>> I want with geoserver REST API put a shapefile into an existing postgis
>> table.
>> I know how to load a shapefile into a postgis database, but I don't know
>> how I could indicate a specific table in which append data.
>> I Have a shapefile named tableA.shp; it's possible put it's data into a
>> postgis table named tableB?
>> Thanks a lot
>>
>> Giuseppe
>>
>> ___
>> Geoserver-users mailing list
>>
>> Please make sure you read the following two resources before posting to
>> this list:
>> - Earning your support instead of buying it, but Ian Turton:
>> http://www.ianturton.com/talks/foss4g.html#/
>> - The GeoServer user list posting guidelines:
>> http://geoserver.org/comm/userlist-guidelines.html
>>
>> If you want to request a feature or an improvement, also see this:
>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>>
>>
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


[Geoserver-users] REST API importer: specify table to load data

2022-05-09 Thread Giuseppe Falcone
Hi to all
I want with geoserver REST API put a shapefile into an existing postgis
table.
I know how to load a shapefile into a postgis database, but I don't know
how I could indicate a specific table in which append data.
I Have a shapefile named tableA.shp; it's possible put it's data into a
postgis table named tableB?
Thanks a lot

Giuseppe
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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


Re: [Geoserver-users] importer rest api to append data

2018-02-05 Thread Giuseppe Falcone
Ciao Andrea,
thanks for the response.
I 'm working with importer extension on geoserver 2.10.1
I execute this steps:

1. post on http://192.168.1.193:8080/geoserver/rest/imports of this json
{
  "import": {
"targetStore": {
  "dataStore": {
"name": "db_public"
  }
},
"targetWorkspace": {
  "workspace": {
"name": "cite"
  }
}
  }
}
and obtain this response:
{
"import": {
"id": 7,
"href": "http://192.168.1.193:8080/geoserver/rest/imports/7;,
"state": "PENDING",
"archive": false,
"targetWorkspace": {
"workspace": {
"name": "cite"
}
},
"targetStore": {
"dataStore": {
"name": "db_public",
"type": "PostGIS"
}
},
"tasks": []
}
}

2. post on http://192.168.1.193:8080/geoserver/rest/imports/7/tasks
<http://192.168.1.193:8080/geoserver/rest/imports/1/tasks> of a shapefile
zip and obtain this response:

{
"task": {
"id": 0,
"href": "http://192.168.1.193:8080/geoserver/rest/imports/7/tasks/0
",
"state": "READY",
"updateMode": "CREATE",
"data": {
"type": "file",
"format": "Shapefile",
"file": "area1.shp"
},
"target": {
"href": "http://192.168.1.193:8080/geoserver/rest/imports/7/
tasks/0/target",
"dataStore": {
"name": "db_public",
"type": "PostGIS"
}
},
"progress": "http://192.168.1.193:8080/geoserver/rest/imports/7/
tasks/0/progress",
"layer": {
"name": "area1",
"href": "http://192.168.1.193:8080/geoserver/rest/imports/7/
tasks/0/layer"
},
"transformChain": {
"type": "vector",
"transforms": []
}
}
}

3. Now I want update this task to send data in append into an existing
geoserver layer (with the same shapefiles attributes) and I execute a put on
 http://192.168.1.193:8080/geoserver/rest/imports/7/task/0  with this json

{
  "task": {
"updateMode": "APPEND",
"layer":{
 "name":"site_boundary"
}
  }
}

I have a 500 server error with this exception


02 feb 09:27:52 ERROR [geoserver.rest] -
java.lang.NullPointerException
at org.geoserver.importer.rest.ImportResource.createImport(
ImportResource.java:155)
at org.geoserver.importer.rest.ImportResource.handlePut(
ImportResource.java:253)
at org.restlet.Finder.handle(Finder.java:298)
at org.geoserver.rest.BeanDelegatingRestlet.handle(
BeanDelegatingRestlet.java:38)
at org.restlet.Filter.doHandle(Filter.java:105)
at org.restlet.Filter.handle(Filter.java:134)
at org.restlet.Router.handle(Router.java:444)
at org.geoserver.rest.RESTDispatcher$1.handle(
RESTDispatcher.java:205)
at com.noelios.restlet.ext.servlet.ServletConverter.
service(ServletConverter.java:129)
at org.geoserver.rest.RESTDispatcher.handleRequestInternal(
RESTDispatcher.java:87)
at org.springframework.web.servlet.mvc.AbstractController.
handleRequest(AbstractController.java:147)
at org.springframework.web.servlet.mvc.
SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter
.java:50)
at org.springframework.web.servlet.DispatcherServlet.
doDispatch(DispatcherServlet.java:959)
at org.springframework.web.servlet.DispatcherServlet.
doService(DispatcherServlet.java:893)
at org.springframework.web.servlet.FrameworkServlet.processRequest(
FrameworkServlet.java:968)
at org.springframework.web.servlet.FrameworkServlet.
doPut(FrameworkServlet.java:881)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:651)
at org.springframework.web.servlet.FrameworkServlet.
service(FrameworkServlet.java:844)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at  .

and from geoserver admin interface I see that it was created a new import
with a new id without any task.
What I'm doing wrong?
Thanks.

Giuseppe






2018-02-03 10:56 GMT+01:00 Andrea Aime <andrea.a...@geo-solutions.it>:

> Ciao Giuseppe,
> you will have to update your task via a PUT request and swi

[Geoserver-users] importer rest api problem

2018-02-02 Thread Giuseppe Falcone
Hi,

I installed importer extension on geoserver 2.10.1 and I have a problem to
import shapefile into a postgis table in append. I execute this steps:

1. post on http://192.168.1.193:8080/geoserver/rest/imports of this json
{
  "import": {
"targetStore": {
  "dataStore": {
"name": "db_public"
  }
},
"targetWorkspace": {
  "workspace": {
"name": "cite"
  }
}
  }
}
with response:
{
"import": {
"id": 7,
"href": "http://192.168.1.193:8080/geoserver/rest/imports/7;,
"state": "PENDING",
"archive": false,
"targetWorkspace": {
"workspace": {
"name": "cite"
}
},
"targetStore": {
"dataStore": {
"name": "db_public",
"type": "PostGIS"
}
},
"tasks": []
}
}

2. post on http://192.168.1.193:8080/geoserver/rest/imports/1/tasks of a
shapefile zip with this response:

{
"task": {
"id": 0,
"href": "http://192.168.1.193:8080/geoserver/rest/imports/7/tasks/0
",
"state": "READY",
"updateMode": "CREATE",
"data": {
"type": "file",
"format": "Shapefile",
"file": "area1.shp"
},
"target": {
"href": "
http://192.168.1.193:8080/geoserver/rest/imports/7/tasks/0/target;,
"dataStore": {
"name": "db_public",
"type": "PostGIS"
}
},
"progress": "
http://192.168.1.193:8080/geoserver/rest/imports/7/tasks/0/progress;,
"layer": {
"name": "area1",
"href": "
http://192.168.1.193:8080/geoserver/rest/imports/7/tasks/0/layer;
},
"transformChain": {
"type": "vector",
"transforms": []
}
}
}

3. Now I want update this task to send data in append into an existing
geoserver layer and I execute a put on
http://192.168.1.193:8080/geoserver/rest/imports/7/task/0  with this json

{
  "task": {
"updateMode": "APPEND",
"layer":{
"name":"site_boundary"
}
  }
}

I have a 500 server error with this exception


02 feb 09:27:52 ERROR [geoserver.rest] -
java.lang.NullPointerException
at
org.geoserver.importer.rest.ImportResource.createImport(ImportResource.java:155)
at
org.geoserver.importer.rest.ImportResource.handlePut(ImportResource.java:253)
at org.restlet.Finder.handle(Finder.java:298)
at
org.geoserver.rest.BeanDelegatingRestlet.handle(BeanDelegatingRestlet.java:38)
at org.restlet.Filter.doHandle(Filter.java:105)
at org.restlet.Filter.handle(Filter.java:134)
at org.restlet.Router.handle(Router.java:444)
at
org.geoserver.rest.RESTDispatcher$1.handle(RESTDispatcher.java:205)
at
com.noelios.restlet.ext.servlet.ServletConverter.service(ServletConverter.java:129)
at
org.geoserver.rest.RESTDispatcher.handleRequestInternal(RESTDispatcher.java:87)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:147)
at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)
at
org.springframework.web.servlet.FrameworkServlet.doPut(FrameworkServlet.java:881)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:651)
at
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at  .

and from geoserver admin interface I see that it was created a new import
with a new id.

I see also a mismatch on documentation for updating a task:

at
http://docs.geoserver.org/2.10.1/user/extensions/importer/rest_reference.html#updating-a-task
says  to execute a PUT to geoserver/rest/imports//task/
while at
http://docs.geoserver.org/stable/en/user/extensions/importer/rest_examples.html#uploading-a-shapefile-to-postgis
says to execute a PUT to
geoserver/rest/imports//tasks//target

With this url I have this exception:

java.lang.ClassCastException: Cannot cast org.geoserver.importer.ImportTask
to org.geoserver.catalog.StoreInfo
at java.lang.Class.cast(Class.java:3369)
at
org.geoserver.config.util.XStreamPersister.load(XStreamPersister.java:606)
at
org.geoserver.importer.rest.ImportJSONReader.fromJSON(ImportJSONReader.java:475)
at
org.geoserver.importer.rest.ImportJSONReader.fromJSON(ImportJSONReader.java:479)
at
org.geoserver.importer.rest.TaskTargetResource$TaskTargetJSONFormat.read(TaskTargetResource.java:156)
at

Re: [Geoserver-users] WMS data source into group layer

2015-02-03 Thread Giuseppe Falcone
Hi Andrea,

I assigned a not default style to the layer in the group, but the error
message is always the same.
Into the style no geom attribute is  present; also in default raster style
there is no geom attribute:

StyledLayerDescriptor xmlns=http://www.opengis.net/sld; xmlns:ogc=
http://www.opengis.net/ogc; xmlns:xlink=http://www.w3.org/1999/xlink;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd; version=
1.0.0
  NamedLayer
Nameraster/Name
UserStyle
  Nameraster/Name
  TitleA boring default style/Title
  AbstractA sample style for rasters/Abstract
  FeatureTypeStyle
Rule
  RasterSymbolizer
Opacity1.0/Opacity
  /RasterSymbolizer
/Rule
  /FeatureTypeStyle
/UserStyle
  /NamedLayer
/StyledLayerDescriptor

As must be the style?

Giuseppe



2015-02-03 11:10 GMT+01:00 Andrea Aime andrea.a...@geo-solutions.it:

 On Tue, Feb 3, 2015 at 10:40 AM, Giuseppe Falcone 
 falcone.giuse...@gmail.com wrote:

 Hi everyone,

 I have a geoserver 2.2 installation. I added a new store as WMS
 connection from another map server because I am interested in a raster
 layer of that server.
 I view this layer correctly, but if I added it into a layer group (with
 vector layer) I get the following error:

 ?xml version=1.0 encoding=UTF-8 standalone=no?!DOCTYPE
 ServiceExceptionReport SYSTEM 
 http://192.168.11.22:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd;
 ServiceExceptionReport version=1.1.1ServiceException
   The requested Style can not be used with this layer.  The style
 specifies an attribute of geom and the layer is: MY_STORE:ortofoto
 /ServiceException/ServiceExceptionReport


 What is this error?


 Did you try to assign a different style to the wms layer? They normally
 work against the built-in raster style, we don't
 support cascading a local style onto the remote server.

 Cheers
 Andrea


 --
 ==
 GeoServer Professional Services from the experts! Visit
 http://goo.gl/NWWaa2 for more information.
 ==

 Ing. Andrea Aime
 @geowolf
 Technical Lead

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

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

 *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

 Le informazioni contenute in questo messaggio di posta elettronica e/o
 nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
 loro utilizzo è consentito esclusivamente al destinatario del messaggio,
 per le finalità indicate nel messaggio stesso. Qualora riceviate questo
 messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
 darcene notizia via e-mail e di procedere alla distruzione del messaggio
 stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
 divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
 utilizzarlo per finalità diverse, costituisce comportamento contrario ai
 principi dettati dal D.Lgs. 196/2003.



 The information in this message and/or attachments, is intended solely for
 the attention and use of the named addressee(s) and may be confidential or
 proprietary in nature or covered by the provisions of privacy act
 (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
 Code).Any use not in accord with its purpose, any disclosure, reproduction,
 copying, distribution, or either dissemination, either whole or partial, is
 strictly forbidden except previous formal approval of the named
 addressee(s). If you are not the intended recipient, please contact
 immediately the sender by telephone, fax or e-mail and delete the
 information in this message that has been received in error. The sender
 does not give any warranty or accept liability as the content, accuracy or
 completeness of sent messages and accepts no responsibility  for changes
 made after they were sent or for other risks which arise as a result of
 e-mail transmission, viruses, etc.

 ---

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] WMS data source into group layer

2015-02-03 Thread Giuseppe Falcone
Hi everyone,

I have a geoserver 2.2 installation. I added a new store as WMS connection
from another map server because I am interested in a raster layer of that
server.
I view this layer correctly, but if I added it into a layer group (with
vector layer) I get the following error:

?xml version=1.0 encoding=UTF-8 standalone=no?!DOCTYPE
ServiceExceptionReport SYSTEM 
http://192.168.11.22:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd;
ServiceExceptionReport version=1.1.1ServiceException
  The requested Style can not be used with this layer.  The style
specifies an attribute of geom and the layer is: MY_STORE:ortofoto
/ServiceException/ServiceExceptionReport


What is this error?

Thanks to all.

Giuseppe
--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] reprojection error

2015-01-26 Thread Giuseppe Falcone
Thanks for the quick response.

The behaviour is the same.
The geoserver version is 2.6.1

I see these metadata of a single tile with an other software:

FILENAME=404060e.ecw
DESCRIPTION=404060e.ecw
UPPER LEFT X=2443320.000
UPPER LEFT Y=4600240.000
LOWER RIGHT X=2450540.000
LOWER RIGHT Y=4594410.000
WEST LONGITUDE=14° 04' 50.2118 E
NORTH LATITUDE=41° 33' 00.2937 N
EAST LONGITUDE=14° 10' 04.2429 E
SOUTH LATITUDE=41° 29' 48.9016 N
UL CORNER LONGITUDE=14° 04' 50.2118 E
UL CORNER LATITUDE=41° 32' 57.9194 N
UR CORNER LONGITUDE=14° 10' 01.8200 E
UR CORNER LATITUDE=41° 33' 00.2937 N
LR CORNER LONGITUDE=14° 10' 04.2429 E
LR CORNER LATITUDE=41° 29' 51.2716 N
LL CORNER LONGITUDE=14° 04' 52.8864 E
LL CORNER LATITUDE=41° 29' 48.9016 N
PROJ_DESC=Transverse Mercator / ROME / meters
PROJ_DATUM=ROME 1940 [MONTE MARIO] (GREENWICH)
PROJ_UNITS=meters
COVERED AREA=42.093 sq km
NUM COLUMNS=14440
NUM ROWS=11660
NUM BANDS=3
COLOR BANDS=0,1,2
PIXEL WIDTH=0.5 meters
PIXEL HEIGHT=0.5 meters
BIT DEPTH=24
PROJ_NAME=TMBOAGA2
DATUM_NAME=MONTEMAR
TARGET_COMPRESSION=1:4

Giuseppe

2015-01-26 10:24 GMT+01:00 Stefano Iacovella stefano.iacove...@gmail.com:


 2015-01-26 10:12 GMT+01:00 Giuseppe Falcone falcone.giuse...@gmail.com:

 Any reference system I set as declared srs (EPSG:32633, EPSG:26592), and
 any selection I set in srs handling field,  the layer is drawn with a
 vertical displacement of about 150 meters down.

 Any idea about this?

 Thanks a lot.


 Ciao Giuseppe,

 Did you try with EPSG:3004 as declared SRS?

 Cheers,

 Stefano

 ---
 41.95581N 12.52854E


 http://www.linkedin.com/in/stefanoiacovella

 http://twitter.com/#!/Iacovellas

--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] image mosaic plugin bad working

2015-01-09 Thread Giuseppe Falcone
Hi all,

add other information. I have installed native JAI but the behaviour is the
same.
This is the log on a getMap request:

2015-01-09 12:05:04,122 INFO [geoserver.wms] -
Request: getMap
Width = 1512
Height = 603
Palette = null
Tiled = false
SRS = EPSG:26592
FeatureVersion = null
Styles = [StyleImpl[ name=raster]]
Layers = [org.geoserver.wms.MapLayerInfo@1cc92ed4]
MaxFeatures = null
Crs = PROJCS[Monte Mario (Rome) / Italy zone 2,
  GEOGCS[Monte Mario (Rome),
DATUM[Monte Mario (Rome),
  SPHEROID[International 1924, 6378388.0, 297.0,
AUTHORITY[EPSG,7022]],
  AUTHORITY[EPSG,6806]],
PRIMEM[Rome, 12.4523332, AUTHORITY[EPSG,8906]],
UNIT[degree, 0.017453292519943295],
AXIS[Geodetic longitude, EAST],
AXIS[Geodetic latitude, NORTH],
AUTHORITY[EPSG,4806]],
  PROJECTION[Transverse_Mercator, AUTHORITY[EPSG,9807]],
  PARAMETER[central_meridian, 15.0],
  PARAMETER[latitude_of_origin, 0.0],
  PARAMETER[scale_factor, 0.9996],
  PARAMETER[false_easting, 252.0],
  PARAMETER[false_northing, 0.0],
  UNIT[m, 1.0],
  AXIS[Easting, EAST],
  AXIS[Northing, NORTH],
  AUTHORITY[EPSG,26592]]
Bbox = SRSEnvelope[2456504.6459961 : 2463685.3540039, 4512498.1326294 :
4515361.8673706]
RemoteOwsType = null
RemoteOwsURL = null
Env = {}
FormatOptions = {}
Angle = 0.0
CQLFilter = null
Elevation = []
FeatureId = null
StartIndex = null
ViewParams = null
BgColor = java.awt.Color[r=255,g=255,b=255]
Transparent = true
StyleFormat = sld
SldBody = null
ValidateSchema = false
Sld = null
StyleUrl = null
TilesOrigin = null
Exceptions = SE_XML
StyleBody = null
SldVersion = null
StyleVersion = null
Format = image/png
Buffer = 0
Time = []
Filter = null
Filters = null
Get = true
RawKvp = {TRANSPARENT=TRUE,
BBOX=2456504.6459961,4512498.1326294,2463685.3540039,4515361.8673706,
VERSION=1.1.1, FORMAT=image/png, SERVICE=WMS, HEIGHT=603,
LAYERS=topp:Napoli, REQUEST=GetMap, STYLES=, SRS=EPSG:26592, WIDTH=1512}
BaseUrl = http://192.168.11.16:8080/geoserver/
RequestCharset = UTF-8
Version = 1.1.1
Request = GetMap
2015-01-09 12:05:04,123 DEBUG [wms.map] - Writing png image ...
2015-01-09 12:05:04,135 DEBUG [geotools.styling] - number of fts set 1
2015-01-09 12:05:04,247 DEBUG [wms.map] - Writing png image ... done!
2015-01-09 12:05:04,247 DEBUG [geoserver.filters] - Not compressing output
for mimetype: image/png
2015-01-09 12:05:04,247 DEBUG
[filter.GeoServerSecurityContextPersistenceFilter$1] -
SecurityContextHolder now cleared, as request processing completed


I noticed that in mosaic properties file missing envelope 2D params. It's
normal? Anyone has some ideas?

Thanks again.

Giuseppe



2015-01-08 17:23 GMT+01:00 Giuseppe Falcone falcone.giuse...@gmail.com:

 Hi all,

 I have some problem with my geoserver installation.

 I have installed geoserver 2.6.1 on an Ubuntu server x64 14.04 LTS.
 I have installed also gdal with ecw support from ECW SDK 5.1.

 I create an image mosaic from a folder with some ecw images.
 Geoserver create the shapefile index and the properties file correctly,
 but in the layer preview i see only blank images.

 I have tried to change some attributes (tile size, output format, wms
 version, ...) but the result not change.

 I see that the properties file has attributes different from those on
 geoserver documentation. This is my properties file:

 #-Automagically created from GeoTools-
 #Thu Jan 08 15:49:51 CET 2015
 Levels=0.5,0.5
 Heterogeneous=false
 AbsolutePath=false
 Name=Napoli
 TypeName=Napoli
 Caching=false
 ExpandToRGB=false
 LocationAttribute=location
 SuggestedSPI=it.geosolutions.imageio.plugins.ecw.ECWImageReaderSpi
 CheckAuxiliaryMetadata=false
 LevelsNum=1


 Anyone has some ideas? Thanks a lot.

 Giuseppe

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users