Re: [Geoserver-users] Errors on requests to Geoserver GWC REST API

2019-08-20 Thread Nuno Oliveira
Hi,
the documentation for that operation seems a bit off, I open an issue
for this:
https://github.com/GeoWebCache/geowebcache/issues/785
As far I can tell this is the correct way of truncating a layer via GWC
REST API:
curl -v -u admin:geoserver --request POST \
  --url http://localhost:8080/geoserver/gwc/rest/masstruncate \
  --header 'content-type: text/xml' \
  --data
'BASE:LAND'
Anyway, to avoid the error you are getting you need to explicitly use
text\xml for the content type.
Hope it helps,
Nuno Oliveira
On Thu, 2019-08-08 at 19:48 +0300, Artem Groznykh wrote:
> Hi.
> 
> I tried to truncate cache for a layer and to create seeding tasks for
> a layer (GeoServer 2.15.2 on Windows 7). And I have errors
> 
> 
> 1. Truncate (via /masstruncate)
> 
> Request:
> 
> POST - http://localhost:8080/geoserver/gwc/rest/masstruncate?requestT
> ype=truncateLayer&layer=workspace_name:layergroup_name
> 
> Response:
> 
> org.geowebcache.rest.exception.RestException 400 BAD_REQUEST: Format
> extension unknown or not specified: application/json
> 
> What does it mean?
> In documentation there are no other params
> 
> 
> 2. Seed
> 
> Request:
> 
> GET - http://localhost:8080/geoserver/gwc/rest/seed/workspace_name:la
> yergroup_name.json
> 
> Headers: 
> {"Content-Type": "application/json"}
> Body: 
> {
>   "name": "workspace_name:layergroup_name",
>   "bounds": {
>     "coords": {"minX":-111319.49079327358,"minY":-
> 111325.14286638453,"maxX":11339882.520180937,"maxY":8245444.279401028
> 5}
>   },
>   "gridSetId": "EPSG:900913",  
>   "zoomStart": 5,
>   "zoomStop": 9,
>   "type": "seed",
>   "tileFormat": "image/png8",
>   "threadCount": 4,
>   "parameters": {
>     "entry": {}
>   }
> }
> 
> Response:
> 
> Chunk [{"name":
> "workspace_name:layergroup_name","bounds":{"coords":{"minX":-
> 111319.49079327358,"minY":-
> 111325.14286638453,"maxX":11339882.520180937,"maxY":8245444.279401028
> 5}},"gridSetId":"EPSG:900913","zoomStart":5,"zoomStop":9,"type":"trun
> cate","threadCount":2,"format":"image/png8","parameters":{"entry":{}}
> }] is not a valid entry
> 
> So, what is the valid entry? 
> I tried to remove "bounds" and "parameters", change "gridSetId" to
> 900913, even to post XML body - nothing changed
> 
> 
> Any suggestions? 
> 
> Thanks in advance
> 
>   Без вирусов. www.avast.ru
> ___
> 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://w
> ww.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines: http://geoserver.org/co
> mm/userlist-guidelines.html
> 
> If you want to request a feature or an improvement, also see this: ht
> tps://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
-- 
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the
experts! 
Visit http://goo.gl/it488V for more information.
==

Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

http://www.geo-solutions.it
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-an

Re: [Geoserver-users] Problems rendering raster with 4 bands, with OR without custom SLD.

2019-08-20 Thread Tomas Link
Hi Daniele,
Thank you very much for your response! Will do that then.

Best regards,
Tom

El vie., 16 ago. 2019 a las 5:01, Daniele Romagnoli (<
daniele.romagn...@geo-solutions.it>) escribió:

> Dear Tomas,
> note that these are 4 Float32 bands.
> When you open it on QGIS, it automatically applies some contrast-stretch
> and band selection, making them looks-like an RGB dataset.
> On GeoServer, you can use the 3 bands channelselection+contrastEnhancement
> SLD you have applied.
> I think there is some issue when applying the bandSelect (as reported on
> your logs) to go from 4 bands to 3 bands in order to write it as JPEG
> (which only supports 1 or 3 bands).
> Could you please check if there is already a JIRA on GeoServer reporting
> the same issue and, if not, create a bug-report with sample data and SLD to
> replicate the problem?
>
> Best Regards,
> Daniele
>
> On Wed, Aug 14, 2019 at 10:51 PM Tomas Link 
> wrote:
>
>> Hi all.
>>
>> I have a raster
>> 
>> that contains 4 bands: 2th, 3th, 4th, and 8th bands from sentinel 2A
>> dataset.
>> These are BLUE, GREEN, RED, NIR, respectively. When I upload this raster
>> to GeoServer, Layer Preview (WMS) section gives me a blank image. I tried
>> many things for days and read all the information I could find but i'm
>> really stuck. I'm hoping you can help me with this problem. I will describe
>> here all the things I've been trying.
>>
>> I'm using GeoServer 2.15.1 in Ubungu 18.04.1 LTS.
>>
>> This is the complete gdalinfo for the raster:
>>
>> Driver: GTiff/GeoTIFF
>> Files: test.tiff
>> Size is 1999, 1579
>> Coordinate System is:
>> PROJCS["WGS 84 / UTM zone 19S",
>> GEOGCS["WGS 84",
>> DATUM["WGS_1984",
>> SPHEROID["WGS 84",6378137,298.257223563,
>> AUTHORITY["EPSG","7030"]],
>> AUTHORITY["EPSG","6326"]],
>> PRIMEM["Greenwich",0,
>> AUTHORITY["EPSG","8901"]],
>> UNIT["degree",0.0174532925199433,
>> AUTHORITY["EPSG","9122"]],
>> AUTHORITY["EPSG","4326"]],
>> PROJECTION["Transverse_Mercator"],
>> PARAMETER["latitude_of_origin",0],
>> PARAMETER["central_meridian",-69],
>> PARAMETER["scale_factor",0.9996],
>> PARAMETER["false_easting",50],
>> PARAMETER["false_northing",1000],
>> UNIT["metre",1,
>> AUTHORITY["EPSG","9001"]],
>> AXIS["Easting",EAST],
>> AXIS["Northing",NORTH],
>> AUTHORITY["EPSG","32719"]]
>> Origin = (560050.000,5700040.000)
>> Pixel Size = (10.000,-10.000)
>> Metadata:
>>   AREA_OR_POINT=Area
>> Image Structure Metadata:
>>   INTERLEAVE=PIXEL
>> Corner Coordinates:
>> Upper Left  (  560050.000, 5700040.000) ( 68d18'28.85"W, 38d50'47.07"S)
>> Lower Left  (  560050.000, 5684250.000) ( 68d18'23.87"W, 38d59'19.28"S)
>> Upper Right (  580040.000, 5700040.000) ( 68d 4'39.66"W, 38d50'41.34"S)
>> Lower Right (  580040.000, 5684250.000) ( 68d 4'33.02"W, 38d59'13.52"S)
>> Center  (  570045.000, 5692145.000) ( 68d11'31.34"W, 38d55' 0.51"S)
>> *Band 1 Block=1999x1 Type=Float32, ColorInterp=Gray*
>> *Band 2 Block=1999x1 Type=Float32, ColorInterp=Undefined*
>> *Band 3 Block=1999x1 Type=Float32, ColorInterp=Undefined*
>> *Band 4 Block=1999x1 Type=Float32, ColorInterp=Undefined*
>>
>> *1)* Opened the same raster in QGIS, the raster renders RGB bands just
>> fine (well, just with RED-BLUE inverted...)
>> *2) *Downloaded the raster uploaded in GeoServer via QGIS. I noted that
>> the downloaded file from geoserver now has these band specifications in
>> gdalinfo:
>>
>> *Band 1 Block=512x512 Type=Float32, ColorInterp=Red*
>> *Band 2 Block=512x512 Type=Float32, ColorInterp=Green*
>> *Band 3 Block=512x512 Type=Float32, ColorInterp=Blue*
>> *Band 4 Block=512x512 Type=Float32, ColorInterp=Alpha*
>>
>> So, by default GeoServer seems to be interpreting the bands color in that
>> way.
>> If I open this raster in QGIS, I see a blank image. I discovered that the
>> reason for this is that QGIS assigns the ALPHA channel as a transparency
>> band. Selecting None in transparency band, QGIS renders again just fine.
>> At this point I started to think that is a problem related to the alpha
>> band, or with any raster with more than 3 bands.
>>
>> *3)* I removed the 4th band from the raster, and uploaded to GeoServer.
>> Now the image is all black, but adding a proper SLD style with contrast
>> enhancement (generated from QGIS) GeoServer render the raster just fine.
>> This is the SLD:
>>
>> 
>> http://www.opengis.net/sld"; xmlns:ogc="
>> http://www.opengis.net/ogc"; version="1.0.0" xmlns:gml="
>> http://www.opengis.net/gml"; xmlns:sld="http://www.opengis.net/sld";>
>>   
>> 
>>   
>> 
>> 
>>   testrgb
>>   
>> 
>>   
>> 
>>   
>> 3
>> 
>>   
>> > name="algorithm

[Geoserver-users] Issue exporter geoserver in KML format

2019-08-20 Thread guilhermecanton
Hi,
I need to import a KML file to geoserver.
In the importer says it is possible to import KML files.
(https://docs.geoserver.org/latest/en/user/extensions/importer/formats.html)
But I tried and I was unsuccessful.
Does anyone know if this is possible?
Thanks in advance





--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


___
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 Arabic and Persian in SLD filter

2019-08-20 Thread alich65
Hi,
I want to create Attribute-based polygon with SLD but when I use Persian or
Arabic filter It's not working.
This is my sld:



http://www.opengis.net/sld
StyledLayerDescriptor.xsd" 
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";>
  
Attribute-based polygon

  SLD Cook Book: Attribute-based polygon
  
  
  

  rule1
  rule1
  
  

  test
  'مقدار ب'

  
  
  

  #66FF66

  




  rule2
  rule2
  
  

  test
  'مقدار الف'

  
  
  

  #cc5577

  




  

  




Can anyone help me?
Thanks in advance.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


___
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] Cross-layer filtering ISSUE

2019-08-20 Thread guilhermecanton
Hi,
queryCollection it's working! thanks so much



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


___
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 Arabic and Persian in SLD filter

2019-08-20 Thread alich65
Hi,
I want to create Attribute-based polygon with SLD but when I use Persian or
Arabic filter It's not working.
This is my sld:



http://www.opengis.net/sld
StyledLayerDescriptor.xsd" 
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";>
  
Attribute-based polygon

  SLD Cook Book: Attribute-based polygon
  
  
  

  rule1
  rule1
  
  

  test
  'مقدار ب'

  
  
  

  #66FF66

  




  rule2
  rule2
  
  

  test
  'مقدار الف'

  
  
  

  #cc5577

  




  

  




Can anyone help me?
Thanks in advance.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html


___
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] [EXT] Can't read Netcdf with WKT attributes

2019-08-20 Thread Marks, Constant
I had an issue loading some geotiffs that needed an .prj file created before I 
could add them as a raster data store. Maybe you could create one for your 
netcdf file?



Constant Marks
Research Assistant | Computer Science and Engineering
University of North Texas
Office: Discovery Parks F216
e: constant.ma...@unt.edu
t: (303) 482 7292


 Original message 
From: Van Der Stelt Frank 
Date: 8/20/19 6:52 AM (GMT-06:00)
To: geoserver-users@lists.sourceforge.net
Subject: [EXT] [Geoserver-users] Can't read Netcdf with WKT attributes

Hi All,

I'm using the Netcdf input plugin with geoserver 2.15.2. However when I try to 
read my files I get a warning "unable to connect" This because the CRS is not 
found:

Caused by: java.io.IOException: java.lang.IllegalArgumentException: Unable to 
find a CRS for the provided variable: lon

Before this warning another warning appears:

WARNING: Unable to setup a CRS from the specified WKT: 
PROJCS['unnamed',GEOGCS['GRS 1980(IUGG, 
1980)',DATUM['unknown',SPHEROID['GRS80',6378137,298.257222101],TOWGS84[0,0,0,0,0,0,0]],PRIMEM['Greenwich',0],UNIT['degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['latitude_of_origin',0],PARAMETER['central_meridian',18],PARAMETER['scale_factor',1],PARAMETER['false_easting',15],PARAMETER['false_northing',0],UNIT['Meter',1]]

My netcdf has a variable projection which is read by the netcdf plugin 
according to the documentation:

https://docs.geoserver.org/stable/en/user/extensions/netcdf/netcdf.html#wkt-attributes

It looks like this (ncdump):

 int projection ;
projection:grid_mapping_name = "transverse_mercator" ;
projection:proj4 = "+proj=tmerc +lat_0=0 +lon_0=18 +k=1 
+x_0=15 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs" ;
projection:scale_factor_at_central_meridian = 1. ;
projection:longitude_of_central_meridian = 18. ;
projection:latitude_of_projection_origin = 0. ;
projection:false_easting = 15. ;
projection:false_northing = 0. ;
projection:semi_major_axis = 6378137. ;
projection:inverse_flattening = 298.257222101 ;
projection:spatial_ref = "PROJCS[\"unnamed\",GEOGCS[\"GRS 
1980(IUGG, 
1980)\",DATUM[\"unknown\",SPHEROID[\"GRS80\",6378137,298.257222101],TOWGS84[0,0,0,0,0,0,0]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",0],PARAMETER[\"central_meridian\",18],PARAMETER[\"scale_factor\",1],PARAMETER[\"false_easting\",15],PARAMETER[\"false_northing\",0],UNIT[\"Meter\",1]]"
 ;

The WKT syntax is parsed (parseWKT in geotools) but the coordinate reference 
system is not created.

Does anyone else have this problem when using the WKT-syntax in netcdf? 
Something wrong with the WKT-syntax? Any way to turn of the parsing by 
geoserver?

Kind regards,

Frank van der Stelt
Systems developer
SMHI - Swedish Meteorological and Hydrological Institute
___
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] Can't read Netcdf with WKT attributes

2019-08-20 Thread Van Der Stelt Frank
Hi All,

I'm using the Netcdf input plugin with geoserver 2.15.2. However when I try to 
read my files I get a warning "unable to connect" This because the CRS is not 
found:

Caused by: java.io.IOException: java.lang.IllegalArgumentException: Unable to 
find a CRS for the provided variable: lon

Before this warning another warning appears:

WARNING: Unable to setup a CRS from the specified WKT: 
PROJCS['unnamed',GEOGCS['GRS 1980(IUGG, 
1980)',DATUM['unknown',SPHEROID['GRS80',6378137,298.257222101],TOWGS84[0,0,0,0,0,0,0]],PRIMEM['Greenwich',0],UNIT['degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['latitude_of_origin',0],PARAMETER['central_meridian',18],PARAMETER['scale_factor',1],PARAMETER['false_easting',15],PARAMETER['false_northing',0],UNIT['Meter',1]]

My netcdf has a variable projection which is read by the netcdf plugin 
according to the documentation:

https://docs.geoserver.org/stable/en/user/extensions/netcdf/netcdf.html#wkt-attributes

It looks like this (ncdump):

 int projection ;
projection:grid_mapping_name = "transverse_mercator" ;
projection:proj4 = "+proj=tmerc +lat_0=0 +lon_0=18 +k=1 
+x_0=15 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs" ;
projection:scale_factor_at_central_meridian = 1. ;
projection:longitude_of_central_meridian = 18. ;
projection:latitude_of_projection_origin = 0. ;
projection:false_easting = 15. ;
projection:false_northing = 0. ;
projection:semi_major_axis = 6378137. ;
projection:inverse_flattening = 298.257222101 ;
projection:spatial_ref = "PROJCS[\"unnamed\",GEOGCS[\"GRS 
1980(IUGG, 
1980)\",DATUM[\"unknown\",SPHEROID[\"GRS80\",6378137,298.257222101],TOWGS84[0,0,0,0,0,0,0]],PRIMEM[\"Greenwich\",0],UNIT[\"degree\",0.0174532925199433]],PROJECTION[\"Transverse_Mercator\"],PARAMETER[\"latitude_of_origin\",0],PARAMETER[\"central_meridian\",18],PARAMETER[\"scale_factor\",1],PARAMETER[\"false_easting\",15],PARAMETER[\"false_northing\",0],UNIT[\"Meter\",1]]"
 ;

The WKT syntax is parsed (parseWKT in geotools) but the coordinate reference 
system is not created.

Does anyone else have this problem when using the WKT-syntax in netcdf? 
Something wrong with the WKT-syntax? Any way to turn of the parsing by 
geoserver?

Kind regards,

Frank van der Stelt
Systems developer
SMHI - Swedish Meteorological and Hydrological Institute
___
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