Re: [Geoserver-users] [EXT] Can't read Netcdf with WKT attributes

2019-08-21 Thread Van Der Stelt Frank
nSIS/workspace/JR/hype2grid\
/Stockholm/Harmonie/timeCRUN.nc" ;
:Conventions = "CF-1.6" ;
:contact1 = "Lena Stromback, SMHI, lena.stromb...@smhi.se" ;
:Originating_center = "Swedish Meteorological and Hydrological 
Institute (SMHI)" ;
:Downscaling_model = "S-HYPE2012_version_4_0_0 adapted for 
Urban SIS" ;
:Downscaling_projection = "SWEREF-99 1800" ;
:Downscaled_area = "Watershed based on Urban Atlas" ;
:Forcing_boundary_conditions = "Urban SIS Harmonie Stockholm 
historic" ;
:Topography_routing = "SVAR 
http://www.smhi.se/publikationer/svar-svenskt-vattenarkiv-1.17833; ;
:Land_use = "Urban Atlas 2012 
http://land.copernicus.eu/local/urban-atlas/urban-atlas-2012, CORINE Land COVER 
2000 
http://www.eea.europa.eu/data-and-maps/data/corine-land-cover-2000-clc2000-seam\
less-vector-database" ;
:Soil_type = "SGU http://www.sgu.se/; ;
:Lake_information = "SVAR 
http://www.smhi.se/publikationer/svar-svenskt-vattenarkiv-1.17833; ;
:nco_openmp_thread_number = 1 ;
:NCO = "4.4.4" ;
:frequency = "mon" ;
data:

...


Kind regards,

Frank van der Stelt
Systems developer
SMHI - Swedish Meteorological and Hydrological Institute









Från: Alexander Petkov [green...@gmail.com]
Skickat: den 21 augusti 2019 15:27
Till: Van Der Stelt Frank
Kopia: Marks, Constant; geoserver-users@lists.sourceforge.net
Ämne: Re: [Geoserver-users] [EXT] Can't read Netcdf with WKT attributes

Your projection probably needs a definition in one of the
user_projections/ files.

>From the Geoserver documentation:

User defined NetCDF Coordinate Reference Systems with their custom
EPSG need to be provided in
user_projections\netcdf.projections.properties file inside your data
directory (you have to create that file if missing).

I have been pasting projection definitions in
user_projections/epsg.properties for now.
Here is a link to the documentation regarding Netcdf:

https://docs.geoserver.org/stable/en/user/extensions/netcdf/netcdf.html

Alex


On 8/21/19, Van Der Stelt Frank  wrote:
> Hi, Thank you for you answer. It unfortunately did not work. The
> NetCDF-plugin does not seem to read the .prj file. The projection
> information is in the NetCDF file already. Probably something wrong with the
> structure of the NetCDF-file. unsure what though.
>
> Kind regards,
>
> Frank van der Stelt
> Systems developer
> SMHI - Swedish Meteorological and Hydrological Institute
> ____________
> Från: Marks, Constant [constant.ma...@unt.edu]
> Skickat: den 20 augusti 2019 15:17
> Till: Van Der Stelt Frank; geoserver-users@lists.sourceforge.net
> Ämne: RE: [EXT] [Geoserver-users] Can't read Netcdf with WKT attributes
>
> 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<mailto: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<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.geoserver.org%2Fstable%2Fen%2Fuser%2Fextensions%2Fnetcdf%2Fnetcdf.html%23wkt-attributes=02%7C01

Re: [Geoserver-users] [EXT] Can't read Netcdf with WKT attributes

2019-08-21 Thread Alexander Petkov
Your projection probably needs a definition in one of the
user_projections/ files.

From the Geoserver documentation:

User defined NetCDF Coordinate Reference Systems with their custom
EPSG need to be provided in
user_projections\netcdf.projections.properties file inside your data
directory (you have to create that file if missing).

I have been pasting projection definitions in
user_projections/epsg.properties for now.
Here is a link to the documentation regarding Netcdf:

https://docs.geoserver.org/stable/en/user/extensions/netcdf/netcdf.html

Alex


On 8/21/19, Van Der Stelt Frank  wrote:
> Hi, Thank you for you answer. It unfortunately did not work. The
> NetCDF-plugin does not seem to read the .prj file. The projection
> information is in the NetCDF file already. Probably something wrong with the
> structure of the NetCDF-file. unsure what though.
>
> Kind regards,
>
> Frank van der Stelt
> Systems developer
> SMHI - Swedish Meteorological and Hydrological Institute
> 
> Från: Marks, Constant [constant.ma...@unt.edu]
> Skickat: den 20 augusti 2019 15:17
> Till: Van Der Stelt Frank; geoserver-users@lists.sourceforge.net
> Ämne: RE: [EXT] [Geoserver-users] Can't read Netcdf with WKT attributes
>
> 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<mailto: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<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.geoserver.org%2Fstable%2Fen%2Fuser%2Fextensions%2Fnetcdf%2Fnetcdf.html%23wkt-attributes=02%7C01%7Cconstant.marks%40unt.edu%7Ce946b07be26740a024de08d72564d01d%7C70de199207c6480fa318a1afcba03983%7C0%7C0%7C637018987240916010=saMoWokHdHbYg8Nl4Aopsaudx9Lz%2FbGyCs7r93sVXPY%3D=0>
>
> 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 W

Re: [Geoserver-users] [EXT] Can't read Netcdf with WKT attributes

2019-08-21 Thread Van Der Stelt Frank
Hi, Thank you for you answer. It unfortunately did not work. The NetCDF-plugin 
does not seem to read the .prj file. The projection information is in the 
NetCDF file already. Probably something wrong with the structure of the 
NetCDF-file. unsure what though.

Kind regards,

Frank van der Stelt
Systems developer
SMHI - Swedish Meteorological and Hydrological Institute

Från: Marks, Constant [constant.ma...@unt.edu]
Skickat: den 20 augusti 2019 15:17
Till: Van Der Stelt Frank; geoserver-users@lists.sourceforge.net
Ämne: RE: [EXT] [Geoserver-users] Can't read Netcdf with WKT attributes

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<mailto: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<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.geoserver.org%2Fstable%2Fen%2Fuser%2Fextensions%2Fnetcdf%2Fnetcdf.html%23wkt-attributes=02%7C01%7Cconstant.marks%40unt.edu%7Ce946b07be26740a024de08d72564d01d%7C70de199207c6480fa318a1afcba03983%7C0%7C0%7C637018987240916010=saMoWokHdHbYg8Nl4Aopsaudx9Lz%2FbGyCs7r93sVXPY%3D=0>

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


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<mailto: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<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.geoserver.org%2Fstable%2Fen%2Fuser%2Fextensions%2Fnetcdf%2Fnetcdf.html%23wkt-attributes=02%7C01%7Cconstant.marks%40unt.edu%7Ce946b07be26740a024de08d72564d01d%7C70de199207c6480fa318a1afcba03983%7C0%7C0%7C637018987240916010=saMoWokHdHbYg8Nl4Aopsaudx9Lz%2FbGyCs7r93sVXPY%3D=0>

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