Re: [Geoserver-users] Reduce number of nodes from line in gml format

2022-10-26 Thread Russ Hore
If they are individual lines that you want to simplify I would think you could 
use a view with a query using PostGIS's ST_Simplify function;

https://postgis.net/docs/manual-dev/ST_Simplify.html 


Russ

> On 26 Oct 2022, at 09:53, XAVIER RAYO SARRIAS  wrote:
> 
> Hi sall,
> I have a polyline layer with many features coming from a postgis database. 
> >The thing is that I need to be able to download those features individually 
> in gml format but with a maximum number of nodes, specifically 999. Is there 
> a way to "simplify" those lines to this number of nodes?
> 
> Thanks a lot for your help!
> 
> xavi
> ___
> 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] Reduce number of nodes from line in gml format

2022-10-26 Thread XAVIER RAYO SARRIAS
Hi sall,
I have a polyline layer with many features coming from a postgis database.
>The thing is that I need to be able to download those features
individually in gml format but with a maximum number of nodes, specifically
999. Is there a way to "simplify" those lines to this number of nodes?

Thanks a lot for your help!

xavi
___
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] WPS Process gs:ReprojectGeometry doesn't work in version 2.21.1

2022-10-26 Thread Bingen Galartza Iparragirre
We had a similar problem with another process, and our interpretation 
was that for some reason the GeoJSON parser has been changed/updated and 
it's now more strict following the GeoJSON specification.


The GeoJSON RFC [1] says the following:

/The coordinate reference system for all GeoJSON coordinates is a 
geographic coordinate reference system, using the World Geodetic System 
1984 (WGS 84) [WGS84] datum, with longitude and latitude units of 
decimal degrees. /


/The use of alternative coordinate reference systems was specified in 
[GJ2008], but it has been removed from this version of the specification 
because the use of different coordinate reference systems -- especially 
in the manner specified in [GJ2008] -- has proven to have 
interoperability issues.  In general, GeoJSON processing software is not 
expected to have access to coordinate reference system databases or to 
have network access to coordinate reference system transformation 
parameters.  However, _where all involved parties have a prior 
arrangement, alternative coordinate reference systems can be used 
_without risk of data being misinterpreted./


Maybe that could be the source of the trouble?

Bingen

[1] https://www.rfc-editor.org/rfc/rfc7946


22/10/26 09:38(e)an, Daniele Maggiolo via Geoserver-users igorleak 
idatzi zuen:


Hi,
I noticed that in GeoServer version 2.21.1 the WPS ReprojectGeometry 
does not work as it should.


In version 2.18.2, if I passed a geometry in application/json format 
with coordinate system 3857 and transformed it into coordinate system 
3003, everything worked fine.


In version 2.21.1, I get the error "Failed to retrieve value for input 
geometry" instead.


The entered parameters are:

Input Geometry (TEXT / application/json):

{"coordinates": [1262204.6480731154,5710619.937814053], "type": "Point"}

sourceCRS:

EPSG: 3857

targetCRS:

EPSG: 3003

result (Checked Generate):

application/json

This is the request payload xml:

service="WPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xmlns="http://www.opengis.net/wps/1.0.0; 
xmlns:wfs="http://www.opengis.net/wfs; 
xmlns:wps="http://www.opengis.net/wps/1.0.0; 
xmlns:ows="http://www.opengis.net/ows/1.1; 
xmlns:gml="http://www.opengis.net/gml; 
xmlns:ogc="http://www.opengis.net/ogc; 
xmlns:wcs="http://www.opengis.net/wcs/1.1.1; 
xmlns:xlink="http://www.w3.org/1999/xlink; 
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd;>


gs:ReprojectGeometry

  

    

geometry

  

    mimeType="application/json">


  

    

    

sourceCRS

      

EPSG:3857

  

    

    

targetCRS

  

EPSG:3003

  

   

  

  

    

result

    

  





___
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] WPS Process gs:ReprojectGeometry doesn't work in version 2.21.1

2022-10-26 Thread Daniele Maggiolo via Geoserver-users
Hi,
I noticed that in GeoServer version 2.21.1 the WPS ReprojectGeometry does not 
work as it should.

In version 2.18.2, if I passed a geometry in application/json format with 
coordinate system 3857 and transformed it into coordinate system 3003, 
everything worked fine.

In version 2.21.1, I get the error "Failed to retrieve value for input 
geometry" instead.

The entered parameters are:

Input Geometry (TEXT / application/json):
{"coordinates": [1262204.6480731154,5710619.937814053], "type": "Point"}

sourceCRS:
EPSG: 3857

targetCRS:
EPSG: 3003

result (Checked Generate):
application/json

This is the request payload xml:

http://www.w3.org/2001/XMLSchema-instance; 
xmlns="http://www.opengis.net/wps/1.0.0; xmlns:wfs="http://www.opengis.net/wfs; 
xmlns:wps="http://www.opengis.net/wps/1.0.0; 
xmlns:ows="http://www.opengis.net/ows/1.1; 
xmlns:gml="http://www.opengis.net/gml; xmlns:ogc="http://www.opengis.net/ogc; 
xmlns:wcs="http://www.opengis.net/wcs/1.1.1; 
xmlns:xlink="http://www.w3.org/1999/xlink; 
xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 
http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd;>
  gs:ReprojectGeometry
  

  geometry
  

  


  sourceCRS
  
EPSG:3857
  


  targetCRS
  
EPSG:3003
  
   
  
  

  result

  

___
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