[Geoserver-users] RV: Error Monitor Extension

2017-02-27 Thread David Alda Fernandez de Lezea
Hi,

Any ideas??

Thanks.

Regards.

Agur bero bat,


David Alda Fernández de Lezea
Área de Sistemas de Información Geográfica, Planificación Territorial y 
Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren 
Arloa.
da...@hazi.eus | www.hazi.eus
T 945 003 240 - M 627 923 170 - F 945 003 290 
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute - Araba
 
*  LEGE OHARRA   ***   AVISOLEGAL   
***   DISCLAIMER   *
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua 
dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.
Este mensaje es personal y confidencial y su uso no autorizado está prohibido 
legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo 
ni conservarlo.
This message is personal and confidential, unauthorised use is legally 
prohibited. If you are not the intended recipient, delete it without resending 
or backing it.

-Mensaje original-
De: David Alda Fernandez de Lezea [mailto:da...@hazi.eus] 
Enviado el: jueves, 23 de febrero de 2017 9:42
Para: geoserver-users@lists.sourceforge.net
Asunto: [Geoserver-users] Error Monitor Extension


Hi list,

I'm trying to get the monitor extension work but I'm getting this errors while 
GeoServer startup. After them it doesn't work anything.

My idea is to store all the monitored information into a PostgreSQL DB so I've 
downloaded both  "monitor" and "monitor-hibernate" extensions.

Here is my configuration files info:

Hibernate.properties
#Wed Dec 09 14:18:34 CET 2015
hibernate.use_sql_comments=true
databasePlatform=org.hibernate.dialect.PostgreSQLDialect
generateDdl=true
hibernate.format_sql=true
showSql=false
hibernate.generate_statistics=true
hibernate.session_factory_name=SessionFactory
hibernate.hbm2ddl.auto=update
hibernate.bytecode.use_reflection_optimizer=true
database=GeoServer_MONITOR
hibernate.show_sql=false

DB.properties
driver=org.postgresql.Driver
url=jdbc:postgresql://192.168.1.153:5432/GeoServer_MONITOR
username=postgres
password=
defaultAutoCommit=false

Monitor.properties
# the storage mode, one of: memory, hibernate # Note: hibernate mode requires 
the hibernate extension storage=hibernate

# the monitor mode, one of: live, history mode=history

# synchronization mode, one of: sync, async, async_update # # WARNING: this is 
an advanced configuration option. You probably do not want # to change this 
unless instructed to by a developer sync=async

# The maximum allowable length for a request body (in bytes).  Longer bodies 
will be trimmed to # this length.
maxBodySize=1024

# Disable logging of bodies entirely
# maxBodySize=0

# Allow unlimited body lengths.  This could take up a lot of space quite 
rapidly.
# maxBodySize=-1

# If you increase or unbound the maximum body length, you must also change the 
hibernate mappings # file. 


# The CRS to log bounding boxes in
bboxLogCrs=EPSG:4326

# Bounding Box Log Level: controls when to record bounding boxes.
# 'none': Don't record bounding boxes
# 'no_wfs': Record bounding boxes for WMS and WCS requests, but not WFS.  This 
is the default # 'full': Record a bounding box for all requests for which one 
can be produced.  WFS is not amenable
# to being logged this way so the boxes produced will be approximate at 
best.
bboxLogLevel=no_wfs


Errors while startup:

2017-02-23 09:14:28,577 INFO [org.geoserver.monitor] - Configuring monitoring 
database from: 
C:\datos\geoserver_data_directory\data_dir\monitoring\db.properties
2017-02-23 09:14:29,014 WARN 
[org.springframework.beans.factory.support.DisposableBeanAdapter] - Invocation 
of destroy method failed on bean with name 'geoServerLoader': 
java.lang.NullPointerException
2017-02-23 09:14:29,014 ERROR [org.springframework.web.context.ContextLoader] - 
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'controlFlowCallbackProxy' defined in URL 
[jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0_Tomcat7_64/webapps/ROOT/WEB-INF/lib/gs-monitor-core-2.8.0.jar!/applicationContext.xml]:
 Cannot resolve reference to bean 'monitor' while setting constructor argument; 
nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'monitor' defined in URL 
[jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0_Tomcat7_64/webapps/ROOT/WEB-INF/lib/gs-monitor-core-2.8.0.jar!/applicationContext.xml]:
 Instantiation of bean failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Could not instantiate 
bean class [org.geoserver.monitor.Monitor]: Constructor threw exception; nested 
exception is org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'hibMonitorDAO' defined in URL 

Re: [Geoserver-users] Default Style via REST

2017-02-27 Thread David Alda Fernandez de Lezea
Hi Martin,

Thanks for your response.

I tried again adjusting my url and body to yours but again without success.. 
I’m just running out of ideas.

Here are the response headers provided by fiddler if it can help.

HTTP/1.1 405 Method Not Allowed
Allow: GET, DELETE, PUT
Date: Tue, 28 Feb 2017 07:18:51 GMT
Server: Noelios-Restlet-Engine/1.0..8
Connection: close
Content-Length: 0

If anyone else has an idea what’s going on..

Thanks in advance.

Regards.
Agur bero bat,



David Alda Fernández de Lezea
Área de Sistemas de Información Geográfica, Planificación Territorial y 
Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren 
Arloa.
da...@hazi.eus | www.hazi.eus
T 945 003 240 – M 627 923 170 – F 945 003 290 
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba
 
*  LEGE OHARRA   ***   AVISOLEGAL   
***   DISCLAIMER   *
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua 
dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.
Este mensaje es personal y confidencial y su uso no autorizado está prohibido 
legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo 
ni conservarlo.
This message is personal and confidential, unauthorised use is legally 
prohibited. If you are not the intended recipient, delete it without resending 
or backing it.

De: Martin Davis [mailto:mtncl...@gmail.com] 
Enviado el: lunes, 27 de febrero de 2017 18:14
Para: David Alda Fernandez de Lezea
CC: geoserver-users@lists.sourceforge.net
Asunto: Re: [Geoserver-users] Default Style via REST

We use the request below, and it works for us.

URL:  %HOST%/rest/layers/%LYR%

Body:  %STYLE%

On Mon, Feb 27, 2017 at 1:24 AM, David Alda Fernandez de Lezea  
wrote:
Hi,

I'm developing a small program to automatically populate some satellite images 
via REST. I successfully populate them , but now I'm trying to set a specific 
style for one type of layer I'm populating but I'm getting some errors 405 and 
nothing else. I want that style to be the default style. Here is my code:

        WebRequest newrequest = 
WebRequest.Create("http://mydomain.com/rest/layers/TELEDETEKZIOA:; + 
imagen.layerName);
                newrequest.ContentType = "text/xml";
                newrequest.Method = "POST";
                newrequest.Credentials = new NetworkCredential(userName, 
password);
                xml = 
"ImagenesSateliteNDVItrue";

                buffer = Encoding.GetEncoding("UTF-8").GetBytes(xml);
                Stream newrequestStream = newrequest.GetRequestStream();
                newrequestStream.Write(buffer, 0, buffer.Length);
                newrequestStream.Close();

                response = newrequest.GetResponse();
                Console.Write("Response from GeoServer: " + response);

Any Ideas??

Thanks in advance.

Regards,

Agur bero bat,


David Alda Fernández de Lezea
Área de Sistemas de Información Geográfica, Planificación Territorial y 
Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren 
Arloa.
da...@hazi.eus | www.hazi.eus
T 945 003 240 - M 627 923 170 - F 945 003 290
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute - Araba
 
*  LEGE OHARRA   ***   AVISOLEGAL   
***   DISCLAIMER   *
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua 
dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.
Este mensaje es personal y confidencial y su uso no autorizado está prohibido 
legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo 
ni conservarlo.
This message is personal and confidential, unauthorised use is legally 
prohibited. If you are not the intended recipient, delete it without resending 
or backing it.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Demo request just from localhost?

2017-02-27 Thread Andrea Aime
Hi,
as Ben said, it's a security measure. If you set the proxy base url the
system will fix the
demo urls accordingly, but there is still a snag that we need fixing, the
code checking
the urls cannot tell apart "http://host:80/; from "http://host;, and
pretends the former,
that's something we need to fix.

See for example:
http://demo.geo-solutions.it/geoserver/web/wicket/bookmarkable/org.geoserver.web.demo.DemoRequestsPage?4

and you'll need to remove the port (:80) for the demo request to be approved

Cheers
Andrea


On Mon, Feb 27, 2017 at 3:23 PM, José Carlos Martínez Llario <
jomar...@cgf.upv.es> wrote:

> Hi all,
>
> When I try to make a POST demo request to an external server I get the
> message:
>
> "java.lang.IllegalArgumentException: Invalid url requested, the demo
> requests should be hitting: http://localhost:8080/geoserver;
>
>
> In previous geoserver versions I could use external servers in order to
> make demo requests, so I m not sure if I doing something wrong or the
> geoserver has changed this demo request tools to work just in local.
>
> I am using 2.10.2 version
>
> Thanks for the answers,
>
> Jose Martinez
>
>
>
> --
> --
> José Carlos Martínez Llario
> http://cartosig.upv.es
>
> Producción Cartográfica y SIG.
> Dpto. Ingeniería Cartográfica.
> Univ. Politécnica de Valencia.
> --
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



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

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
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.

---
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Demo request just from localhost?

2017-02-27 Thread Ben Caradoc-Davies
On 28/02/17 08:28, P O'Toole wrote:
> Jose -
>> When I try to make a POST demo request to an external server I get the
>> message:
>> "java.lang.IllegalArgumentException: Invalid url requested, the demo
>> requests should be hitting: http://localhost:8080/geoserver;
> I'm not sure whether this behavior has changed since previous versions of 
> Geoserver, so I'm not fit to answer your main question, but it should be 
> relatively easy to work around the problem by just forwarding the request via 
> e.g. PuTTy (on a Windows box) or via something like an `iptables` rule on 
> Linux/Unix, so the request goes to localhost first before being sent on to 
> another server. There's almost certainly a Java-only solution for doing the 
> same thing, if that's preferable.
> - Patrick O'Toole

You are welcome to try, but I think we lock the request down to port 8080.

It might be better to allow authenticated users, or perhaps only the 
administrator, to make requests outside http://localhost:8080/geoserver 
, but AFAIK all such requests are blocked.

Kind regards,

-- 
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Demo request just from localhost?

2017-02-27 Thread P O'Toole
Jose -

>When I try to make a POST demo request to an external server I get the
>message:
>
>"java.lang.IllegalArgumentException: Invalid url requested, the demo
>requests should be hitting: http://localhost:8080/geoserver;

I'm not sure whether this behavior has changed since previous versions of 
Geoserver, so I'm not fit to answer your main question, but it should be 
relatively easy to work around the problem by just forwarding the request via 
e.g. PuTTy (on a Windows box) or via something like an `iptables` rule on 
Linux/Unix, so the request goes to localhost first before being sent on to 
another server. There's almost certainly a Java-only solution for doing the 
same thing, if that's preferable.

- Patrick O'Toole

Application Developer
Wyoming Natural Diversity Database
UW Berry Biodiversity Conservation Center
Department 3381, 1000 E. University Av.
Laramie, WY 82071
P: 307-766-3018


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Demo request just from localhost?

2017-02-27 Thread Ben Caradoc-Davies
José,

support for demo requests against URLs other than 
http://localhost:8080/geoserver was removed in 2.10.1 because it is a 
vulnerability both in that it allows access to otherwise inaccessible 
internal hosts using GeoServer as a proxy, and because the proxy allows 
circumvention of browser cross-domain security restrictions.

This change was mentioned in the 2.10.1 release announcement but was not 
well described:
http://blog.geoserver.org/2016/12/21/geoserver-2-10-1-released/
"Additional restrictions have been placed on the demo request page"

There is a Jira issue but it is mostly empty:
https://osgeo-org.atlassian.net/browse/GEOS-7848

Kind regards,
Ben.

On 28/02/17 03:23, José Carlos Martínez Llario wrote:
> Hi all,
>
> When I try to make a POST demo request to an external server I get the
> message:
>
> "java.lang.IllegalArgumentException: Invalid url requested, the demo
> requests should be hitting: http://localhost:8080/geoserver;
>
>
> In previous geoserver versions I could use external servers in order to
> make demo requests, so I m not sure if I doing something wrong or the
> geoserver has changed this demo request tools to work just in local.
>
> I am using 2.10.2 version
>
> Thanks for the answers,
>
> Jose Martinez
>
>
>

-- 
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Guttering on map box vector tiles incorrect, and slivered polygons being served as polygons with zero area ...

2017-02-27 Thread Dave Blasby
Hi, Tom,

Most people are asking for larger gutters around the tiles!  You can set it
the size in the code, but there isn't an easy way to change it...

https://github.com/geoserver/geoserver/blob/master/src/extension/vectortiles/src/main/java/org/geoserver/wms/vector/PipelineBuilder.java#L80

I'm not sure why you are getting topological collapse - VTs uses the
Topology Preserving generalisation code (although it backs off to a simpler
method if there's a problem).

cf
https://github.com/geoserver/geoserver/blob/master/src/extension/vectortiles/src/main/java/org/geoserver/wms/vector/PipelineBuilder.java#L297

cf
https://github.com/geoserver/geoserver/blob/master/src/extension/vectortiles/src/main/java/org/geoserver/wms/vector/PipelineBuilder.java#L335

Thanks,
Dave

On Mon, Feb 27, 2017 at 12:51 AM, Tom Cuthill  wrote:

> Hi,
>
>
>
> It doesn’t appear that the guttering setting is entirely working for
> mapbox vector tiles (I’m using the 2.10 snapshot with the vector tiles
> extension).  Even though I set the gutter to zero, I still see negative
> pixel coordinates and coordinates greater than 256 when I look at the
> coordinates coming down from the server.  The tile size is set to 256.  Is
> there someway to turn guttering entirely off, so the features are clipped
> at the tile boundaries?
>
>
>
> Also, I found what appears to be a violation of the mapbox vector tile
> spec.  See  https://github.com/mapbox/vector-tile-spec/tree/master/2.1.
> When I look at the geojson for a tile I can see one feature with a small
> rectangle geometry which is sliver-like.  When I look at the same tile in
> its mapbox format, I get a polygon with the start position, then another
> position, and then the start position.  The thinness of the rectangle must
> collapse to the same pixel.  So basically what is being served down as a
> polygon is actually line-like (starting at a point, going to another point,
> and then going straight back to the same point).  To have a valid polygon
> there must be at least two positions between the start-end coordinate.
> I’ve had to filter these polygons out, since their ring orientation is
> undefined.
>
>
>
> Should I mention this problem as a bug??
>
>
>
> Cheers,
>
> Tom Cuthill
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] GeoServer: how to get min/max values of a raster band?

2017-02-27 Thread Bessette-Halsema, Dominique E
You can Transform the geotiff to a FeatureCollection using 
RasterAsPointCollectionProcess and then use the AggregateProcess





Dominique Bessette

Software Engineer

General Dynamics Information Technology

Office: 619-881-2748



From: Victor.Sinceac [mailto:victor.sinc...@corobor.com]
Sent: Monday, February 27, 2017 10:03 AM
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] GeoServer: how to get min/max values of a raster 
band?



Hi,



Is there a simple method (i.e. without adding extra WPS functions) to get the 
min/max values and/or the histogram of a given raster (e.g. geotiff) band, by 
using the standard services of the GeoServer?



Mani Thanks,

Victor

  _

This message is subject to and does not create or vary any contractual 
relationship between Campbell Scientific Limited, its subsidiaries or 
affiliates ("CSL") and you. Internet communications are not secure and 
therefore CSL does not accept legal responsibility for the contents of this 
message. The message is intended for the addressee only and its contents and 
any attached files are strictly confidential. If you have received it in error, 
please telephone +44 (0)1509 601141 or email 
postmas...@campbellsci.co.uk. Thank you.
Campbell Scientific Ltd.
Company Registration Number: 1933935 (England and Wales) Registered Address: 
Campbell Park, 80 Hathern Road, Shepshed, Loughborough, Leicestershire LE12 
9GX, UK
Tel: +44 (0) 1509 601141
Fax: +44 (0) 1509 601091
Web: www.campbellsci.co.uk

  _



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Default Style via REST

2017-02-27 Thread Martin Davis
We use the request below, and it works for us.

URL:  %HOST%/rest/layers/%LYR%

Body:  %STYLE%

On Mon, Feb 27, 2017 at 1:24 AM, David Alda Fernandez de Lezea <
da...@hazi.eus> wrote:

> Hi,
>
> I'm developing a small program to automatically populate some satellite
> images via REST. I successfully populate them , but now I'm trying to set a
> specific style for one type of layer I'm populating but I'm getting some
> errors 405 and nothing else. I want that style to be the default style.
> Here is my code:
>
> WebRequest newrequest = WebRequest.Create("http://
> mydomain.com/rest/layers/TELEDETEKZIOA:" + imagen.layerName);
> newrequest.ContentType = "text/xml";
> newrequest.Method = "POST";
> newrequest.Credentials = new NetworkCredential(userName,
> password);
> xml = "
> ImagenesSateliteNDVItrue enabled>";
>
> buffer = Encoding.GetEncoding("UTF-8").GetBytes(xml);
> Stream newrequestStream = newrequest.GetRequestStream();
> newrequestStream.Write(buffer, 0, buffer.Length);
> newrequestStream.Close();
>
> response = newrequest.GetResponse();
> Console.Write("Response from GeoServer: " + response);
>
> Any Ideas??
>
> Thanks in advance.
>
> Regards,
>
> Agur bero bat,
>
>
> David Alda Fernández de Lezea
> Área de Sistemas de Información Geográfica, Planificación Territorial y
> Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren
> Arloa.
> da...@hazi.eus | www.hazi.eus
> T 945 003 240 - M 627 923 170 - F 945 003 290
> Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute - Araba
>
> *  LEGE OHARRA   ***   AVISOLEGAL
> ***   DISCLAIMER   *
> Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera
> debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta
> kontserbatu gabe.
> Este mensaje es personal y confidencial y su uso no autorizado está
> prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo,
> sin reenviarlo ni conservarlo.
> This message is personal and confidential, unauthorised use is legally
> prohibited. If you are not the intended recipient, delete it without
> resending or backing it.
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] YSLD Reference - Label Priority

2017-02-27 Thread sikeoka
The YSLD Reference incorrectly lists the label priority as the vendor option
"x-labelPriority" but it is actually just a regular property "priority". 
Converting an SLD style to YSLD will use "priority" and attempting to use
"x-labelPriority" doesn't do anything.

SLD Reference:
http://docs.geoserver.org/latest/en/user/styling/sld/reference/textsymbolizer.html#syntax

YSLD Reference:
http://docs.geoserver.org/latest/en/user/styling/ysld/reference/symbolizers/text.html#syntax

Steve Ikeoka



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/YSLD-Reference-Label-Priority-tp5309704.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Guttering on map box vector tiles incorrect, and slivered polygons being served as polygons with zero area ...

2017-02-27 Thread Tom Cuthill
Hi,

It doesn’t appear that the guttering setting is entirely working for mapbox 
vector tiles (I’m using the 2.10 snapshot with the vector tiles extension).  
Even though I set the gutter to zero, I still see negative pixel coordinates 
and coordinates greater than 256 when I look at the coordinates coming down 
from the server.  The tile size is set to 256.  Is there someway to turn 
guttering entirely off, so the features are clipped at the tile boundaries?

Also, I found what appears to be a violation of the mapbox vector tile spec.  
See  https://github.com/mapbox/vector-tile-spec/tree/master/2.1.  When I look 
at the geojson for a tile I can see one feature with a small rectangle geometry 
which is sliver-like.  When I look at the same tile in its mapbox format, I get 
a polygon with the start position, then another position, and then the start 
position.  The thinness of the rectangle must collapse to the same pixel.  So 
basically what is being served down as a polygon is actually line-like 
(starting at a point, going to another point, and then going straight back to 
the same point).  To have a valid polygon there must be at least two positions 
between the start-end coordinate.  I’ve had to filter these polygons out, since 
their ring orientation is undefined.

Should I mention this problem as a bug??

Cheers,
Tom Cuthill
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Demo request just from localhost?

2017-02-27 Thread José Carlos Martínez Llario
Hi all,

When I try to make a POST demo request to an external server I get the 
message:

"java.lang.IllegalArgumentException: Invalid url requested, the demo 
requests should be hitting: http://localhost:8080/geoserver;


In previous geoserver versions I could use external servers in order to 
make demo requests, so I m not sure if I doing something wrong or the 
geoserver has changed this demo request tools to work just in local.

I am using 2.10.2 version

Thanks for the answers,

Jose Martinez



-- 
--
José Carlos Martínez Llario
http://cartosig.upv.es

Producción Cartográfica y SIG.
Dpto. Ingeniería Cartográfica.
Univ. Politécnica de Valencia.
--

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] GeoServer: how to get min/max values of a raster band?

2017-02-27 Thread Victor . Sinceac
Hi,

Is there a simple method (i.e. without adding extra WPS functions) to get the 
min/max values and/or the histogram of a given raster (e.g. geotiff) band, by 
using the standard services of the GeoServer?

Mani Thanks,
Victor

This message is subject to and does not create or vary any contractual 
relationship between Campbell Scientific Limited, its subsidiaries or 
affiliates ("CSL") and you. Internet communications are not secure and 
therefore CSL does not accept legal responsibility for the contents of this 
message. The message is intended for the addressee only and its contents and 
any attached files are strictly confidential. If you have received it in error, 
please telephone +44 (0)1509 601141 or email postmas...@campbellsci.co.uk. 
Thank you.
Campbell Scientific Ltd.
Company Registration Number: 1933935 (England and Wales) Registered Address: 
Campbell Park, 80 Hathern Road, Shepshed, Loughborough, Leicestershire LE12 
9GX, UK
Tel: +44 (0) 1509 601141
Fax: +44 (0) 1509 601091
Web: www.campbellsci.co.uk



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Default Style via REST

2017-02-27 Thread David Alda Fernandez de Lezea
Hi,

I'm developing a small program to automatically populate some satellite images 
via REST. I successfully populate them , but now I'm trying to set a specific 
style for one type of layer I'm populating but I'm getting some errors 405 and 
nothing else. I want that style to be the default style. Here is my code:

WebRequest newrequest = 
WebRequest.Create("http://mydomain.com/rest/layers/TELEDETEKZIOA:; + 
imagen.layerName);
newrequest.ContentType = "text/xml";
newrequest.Method = "POST";
newrequest.Credentials = new NetworkCredential(userName, 
password);
xml = 
"ImagenesSateliteNDVItrue";

buffer = Encoding.GetEncoding("UTF-8").GetBytes(xml);
Stream newrequestStream = newrequest.GetRequestStream();
newrequestStream.Write(buffer, 0, buffer.Length);
newrequestStream.Close();

response = newrequest.GetResponse();
Console.Write("Response from GeoServer: " + response);

Any Ideas??

Thanks in advance.

Regards,

Agur bero bat,


David Alda Fernández de Lezea
Área de Sistemas de Información Geográfica, Planificación Territorial y 
Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren 
Arloa.
da...@hazi.eus | www.hazi.eus
T 945 003 240 - M 627 923 170 - F 945 003 290 
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute - Araba
 
*  LEGE OHARRA   ***   AVISOLEGAL   
***   DISCLAIMER   *
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua 
dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.
Este mensaje es personal y confidencial y su uso no autorizado está prohibido 
legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo 
ni conservarlo.
This message is personal and confidential, unauthorised use is legally 
prohibited. If you are not the intended recipient, delete it without resending 
or backing it.


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Complex GML 3.1.1 from App Schema

2017-02-27 Thread sammeek
Hello again Ben,

I have created my own xsds from ones I found online. I have included type
names in my xsds and I believe that my mapping files are correctly formatted
so I can't see what's wrong.

I have uploaded the two mapping files and two XSDs to this location:

http://meekbaa1.miniserver.com/dl/

I have included an ID at the appropriate places at the AdministrativeAreas
table seems to work fine when published through Geoserver.

There is a slight namespace issue when I make a WFS call to Facilities and
the AdministrativeAreas in that it seems to make the namespace null for
whichever I call second. When I call Facilities, the WFS response document
doesn't include both namespaces, but I'm not sure its supposed to.

Thank you for your continuing assistance. 

Sam



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Complex-GML-3-1-1-from-App-Schema-tp5309269p5309605.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users