Re: [Geoserver-users] (no subject)

2015-09-18 Thread Andrea Aime
On Thu, Sep 17, 2015 at 12:02 AM, jwel...@roadrunner.com <
jwel...@roadrunner.com> wrote:

> Hello,
>
> I am currently working with GeoServer 2.1.1.7 war file which is hosted on
> Apache Tomcat 7.0.64 and running on RHE x86_64.
>
> I researched my question in the user's mailing list however I did not find
> the answer. I apologize if it exists and I overlooked it.
>
> My question is whether it is possible to modify the WFS GetCapabilites in
> such a way that the operators that are not supported in our environment
> would not be displayed.
>
> For example, the spatial operators "Disjoint" and "Equals" will not be
> supported.  Our users will not need to use these operators so is there a
> way
> to remove them from the GetCapabilities Spatial Operators list?


The non written rule is that stores need to support all operators, and
emulate in memory the ones they don't have, all official stores do that,
it's not difficult (I can provide links if you want an example).


> Would this
> require a code change and re-compiling of the code or is there a way to
> eliminate these operators without a code change?
>
>
Code change would be the only way as far as I know, if you really
don't want the in-memory emulation

Cheers
Andrea

-- 
==
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 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.

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


Re: [Geoserver-users] Geotiff import, nothing but gray

2015-09-18 Thread Alex O'Ree
It is set to raster style.
On Sep 17, 2015 7:41 PM, "Alex O'Ree"  wrote:

> ill give it a shot, first thing tomorrow
>
> On Thu, Sep 17, 2015 at 7:32 PM, Alex M 
> wrote:
> > Try changing the style classes to better cover the actual data range.
> > Often with rasters if you don't stretch min/mix you end up with just
> > gray as the few outlying values get assigned white and black (NoData as
> > something like - can cause this.
> >
> > -Alex
> >
> > On 09/17/2015 04:29 PM, Alex O'Ree wrote:
> >> Andrea
> >>
> >> Thanks for the quick response and sorry for not getting back sooner.
> >>
> >> Polygon as in a large gray square. I can zoom in and out, just no map.
> >> It's all gray.
> >>
> >> It was imported as the raster layer.
> >>
> >> Below is the output from gdalinfo
> >>
> >>
> >> C:\Program Files\GDAL>gdalinfo
> c:\maps\geoserver-2.7.2\data_dir\alaska.tiff
> >> ERROR 1: Can't load requested DLL: C:\Program
> >> Files\GDAL\gdalplugins\gdal_MrSID.dll
> >> 126: The specified module could not be found.
> >>
> >> ERROR 1: Can't load requested DLL: C:\Program
> >> Files\GDAL\gdalplugins\gdal_MrSID.dll
> >> 126: The specified module could not be found.
> >>
> >> Driver: GTiff/GeoTIFF
> >> Files: c:\maps\geoserver-2.7.2\data_dir\alaska.tiff
> >> Size is 29184, 18432
> >> Coordinate System is `'
> >> GCP Projection =
> >> GEOGCS["WGS 84",
> >> DATUM["WGS_1984",
> >> SPHEROID["WGS 84",6378137,298.257223563,
> >> AUTHORITY["EPSG","7030"]],
> >> AUTHORITY["EPSG","6326"]],
> >> PRIMEM["Greenwich",0],
> >> UNIT["degree",0.0174532925199433],
> >> AUTHORITY["EPSG","4326"]]
> >> GCP[  0]: Id=1, Info=
> >>   (0,0) -> (-116.680203045685,34.7986191024166,0)
> >> GCP[  1]: Id=2, Info=
> >>   (29184,0) -> (-111.472081218274,34.7986191024166,0)
> >> GCP[  2]: Id=3, Info=
> >>   (0,18432) -> (-116.680203045685,32.313003452244,0)
> >> GCP[  3]: Id=4, Info=
> >>   (29184,18432) -> (-111.472081218274,32.313003452244,0)
> >> Metadata:
> >>   AREA_OR_POINT=Area
> >>   TIFFTAG_DATETIME=2015:09:16 17:47:52
> >>
>  TIFFTAG_IMAGEDESCRIPTION=com.partech.geoio.rpf.BoundaryRectangle@164cf04
> >>   TIFFTAG_RESOLUTIONUNIT=3 (pixels/cm)
> >>   TIFFTAG_SOFTWARE=GV
> >>   TIFFTAG_XRESOLUTION=1
> >>   TIFFTAG_YRESOLUTION=1
> >> Image Structure Metadata:
> >>   INTERLEAVE=PIXEL
> >> Corner Coordinates:
> >> Upper Left  (0.0,0.0)
> >> Lower Left  (0.0,18432.0)
> >> Upper Right (29184.0,0.0)
> >> Lower Right (29184.0,18432.0)
> >> Center  (14592.0, 9216.0)
> >> Band 1 Block=128x128 Type=Byte, ColorInterp=Red
> >>   Mask Flags: PER_DATASET ALPHA
> >> Band 2 Block=128x128 Type=Byte, ColorInterp=Green
> >>   Mask Flags: PER_DATASET ALPHA
> >> Band 3 Block=128x128 Type=Byte, ColorInterp=Blue
> >>   Mask Flags: PER_DATASET ALPHA
> >> Band 4 Block=128x128 Type=Byte, ColorInterp=Alpha
> >>
> >>
> >> On Wed, Sep 16, 2015 at 6:46 PM, Andrea Aime
> >>  wrote:
> >>> On Thu, Sep 17, 2015 at 12:28 AM, Alex O'Ree 
> wrote:
> 
>  After importing a geotiff in a data store (no errors), then going to
>  preview layer using open layers, I see nothing but a large gray
>  polygon. Is there anything I can do to help troubleshoot this? I can
>  view the tiff in graphics editing/viewing problems. It's a 2GB file,
>  not sure if that's relevant or not.
> 
> >>>
> >>> Polygon as in  vector polygon? Did you associate the polygon
> >>> style instead of the raster one by any chance?
> >>> If not, can you run gdalinfo against that file, and provide the
> geoserver
> >>> version you're using?
> >>>
> >>> Cheers
> >>> Andrea
> >>>
> >>> --
> >>> ==
> >>> 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 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 

Re: [Geoserver-users] Geotiff import, nothing but gray

2015-09-18 Thread Alex O'Ree
Progress!  Looks like the release version did work,  but the scale is way
off,  inverted and upside down.  Same behavior with both versions
On Sep 18, 2015 10:53 AM, "Alex O'Ree"  wrote:

> One more update. I was able to get some data to import by cropping the geo
> tiff.  Now the problem is that it's rendering mirrored and inverted (open
> layers). Any idea?
> On Sep 18, 2015 10:31 AM, "Alex O'Ree"  wrote:
>
>> can geoserver import nitf file formats?
>> On Sep 18, 2015 9:21 AM, "Alex O'Ree"  wrote:
>>
>>> If I go to layer preview, then tiff from the drop down, I do get a image
>>> of the map back. It only appears that open layers has an issue
>>> On Sep 18, 2015 8:47 AM, "Alex O'Ree"  wrote:
>>>
 It is set to raster style.
 On Sep 17, 2015 7:41 PM, "Alex O'Ree"  wrote:

> ill give it a shot, first thing tomorrow
>
> On Thu, Sep 17, 2015 at 7:32 PM, Alex M 
> wrote:
> > Try changing the style classes to better cover the actual data range.
> > Often with rasters if you don't stretch min/mix you end up with just
> > gray as the few outlying values get assigned white and black (NoData
> as
> > something like - can cause this.
> >
> > -Alex
> >
> > On 09/17/2015 04:29 PM, Alex O'Ree wrote:
> >> Andrea
> >>
> >> Thanks for the quick response and sorry for not getting back sooner.
> >>
> >> Polygon as in a large gray square. I can zoom in and out, just no
> map.
> >> It's all gray.
> >>
> >> It was imported as the raster layer.
> >>
> >> Below is the output from gdalinfo
> >>
> >>
> >> C:\Program Files\GDAL>gdalinfo
> c:\maps\geoserver-2.7.2\data_dir\alaska.tiff
> >> ERROR 1: Can't load requested DLL: C:\Program
> >> Files\GDAL\gdalplugins\gdal_MrSID.dll
> >> 126: The specified module could not be found.
> >>
> >> ERROR 1: Can't load requested DLL: C:\Program
> >> Files\GDAL\gdalplugins\gdal_MrSID.dll
> >> 126: The specified module could not be found.
> >>
> >> Driver: GTiff/GeoTIFF
> >> Files: c:\maps\geoserver-2.7.2\data_dir\alaska.tiff
> >> Size is 29184, 18432
> >> Coordinate System is `'
> >> GCP Projection =
> >> GEOGCS["WGS 84",
> >> DATUM["WGS_1984",
> >> SPHEROID["WGS 84",6378137,298.257223563,
> >> AUTHORITY["EPSG","7030"]],
> >> AUTHORITY["EPSG","6326"]],
> >> PRIMEM["Greenwich",0],
> >> UNIT["degree",0.0174532925199433],
> >> AUTHORITY["EPSG","4326"]]
> >> GCP[  0]: Id=1, Info=
> >>   (0,0) -> (-116.680203045685,34.7986191024166,0)
> >> GCP[  1]: Id=2, Info=
> >>   (29184,0) -> (-111.472081218274,34.7986191024166,0)
> >> GCP[  2]: Id=3, Info=
> >>   (0,18432) -> (-116.680203045685,32.313003452244,0)
> >> GCP[  3]: Id=4, Info=
> >>   (29184,18432) -> (-111.472081218274,32.313003452244,0)
> >> Metadata:
> >>   AREA_OR_POINT=Area
> >>   TIFFTAG_DATETIME=2015:09:16 17:47:52
> >>
>  TIFFTAG_IMAGEDESCRIPTION=com.partech.geoio.rpf.BoundaryRectangle@164cf04
> >>   TIFFTAG_RESOLUTIONUNIT=3 (pixels/cm)
> >>   TIFFTAG_SOFTWARE=GV
> >>   TIFFTAG_XRESOLUTION=1
> >>   TIFFTAG_YRESOLUTION=1
> >> Image Structure Metadata:
> >>   INTERLEAVE=PIXEL
> >> Corner Coordinates:
> >> Upper Left  (0.0,0.0)
> >> Lower Left  (0.0,18432.0)
> >> Upper Right (29184.0,0.0)
> >> Lower Right (29184.0,18432.0)
> >> Center  (14592.0, 9216.0)
> >> Band 1 Block=128x128 Type=Byte, ColorInterp=Red
> >>   Mask Flags: PER_DATASET ALPHA
> >> Band 2 Block=128x128 Type=Byte, ColorInterp=Green
> >>   Mask Flags: PER_DATASET ALPHA
> >> Band 3 Block=128x128 Type=Byte, ColorInterp=Blue
> >>   Mask Flags: PER_DATASET ALPHA
> >> Band 4 Block=128x128 Type=Byte, ColorInterp=Alpha
> >>
> >>
> >> On Wed, Sep 16, 2015 at 6:46 PM, Andrea Aime
> >>  wrote:
> >>> On Thu, Sep 17, 2015 at 12:28 AM, Alex O'Ree <
> spyhunte...@gmail.com> wrote:
> 
>  After importing a geotiff in a data store (no errors), then going
> to
>  preview layer using open layers, I see nothing but a large gray
>  polygon. Is there anything I can do to help troubleshoot this? I
> can
>  view the tiff in graphics editing/viewing problems. It's a 2GB
> file,
>  not sure if that's relevant or not.
> 
> >>>
> >>> Polygon as in  vector polygon? Did you associate the polygon
> >>> style instead of the raster one by any chance?
> >>> If not, can you run gdalinfo against that file, and provide the
> geoserver
> >>> version you're using?
> >>>
> >>> Cheers
> >>> Andrea

[Geoserver-users] Unsupported axis: double lon(y=449, x=599);

2015-09-18 Thread Ferguson, Steve -FS
I am attempting to load a netcdf file in geoserver-2.8-RC1 
(http://mtnweather.info/download/wrf_works.nc). With the same file loaded into 
netcdf-toolsUI I am able to view grids, so I would think the netcdf file might 
also be valid in geoserver. Upon attempting to add the store, I receive the 
error : Could not list layers for this store, an error occurred retrieving 
them.  Any help in understanding and resolving this error would be greatly 
appreciated.

The detailed error message reported on the console is :


WARN [netcdf.NetCDFGeoreferenceManager] - Unsupported axis: double lat(y=449, 
x=599);
  :axis = "Y";
  :units = "degrees_north";
  :long_name = "latitude";
  :standard_name = "latitude";
  :_CoordinateAxisType = "Lat";
in input: C:/projects/firewx/wrf_works.nc has been found
WARN [netcdf.NetCDFGeoreferenceManager] - Unsupported axis: double lon(y=449, 
x=599);
  :axis = "X";
  :units = "degrees_east";
  :long_name = "longitude";
  :standard_name = "longitude";
  :_CoordinateAxisType = "Lon";
in input: C:/projects/firewx/wrf_works.nc has been found
18 Sep 06:08:17 WARN [netcdf.NetCDFFormat] - Unable to connect
org.geotools.data.DataSourceException: Unable to connect
at 
org.geotools.coverage.io.netcdf.NetCDFReader.(NetCDFReader.java:158)
at 
org.geotools.coverage.io.netcdf.NetCDFFormat.getReader(NetCDFFormat.java:95)
at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1441)
at 
org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1369)



Caused by: java.lang.NullPointerException
at 
org.geotools.coverage.io.netcdf.crs.ProjectionBuilder.createEllipsoid(ProjectionBuilder.java:255)
at 
org.geotools.coverage.io.netcdf.crs.NetCDFProjection.buildEllipsoid(NetCDFProjection.java:453)
at 
org.geotools.coverage.io.netcdf.crs.NetCDFProjection.parseProjection(NetCDFProjection.java:323)
at 
org.geotools.coverage.io.netcdf.crs.NetCDFProjection.lookForVariableCRS(NetCDFProjection.java:532)
at 
org.geotools.imageio.netcdf.NetCDFGeoreferenceManager.extractBBOX(NetCDFGeoreferenceManager.java:261)
at 
org.geotools.imageio.netcdf.NetCDFGeoreferenceManager.(NetCDFGeoreferenceManager.java:155)
at 
org.geotools.imageio.netcdf.NetCDFImageReader.init(NetCDFImageReader.java:443)
at 
org.geotools.imageio.netcdf.NetCDFImageReader.setInput(NetCDFImageReader.java:258)


When I look at the code for this error in geotools, it looks like this :

public static Ellipsoid createEllipsoid(String name, Map 
ellipsoidParams) {
Number semiMajor = null;
Number semiMinor = null;
Number inverseFlattening = Double.NEGATIVE_INFINITY;
if (ellipsoidParams.containsKey(NetCDFUtilities.SEMI_MAJOR)) {
semiMajor = ellipsoidParams.get(NetCDFUtilities.SEMI_MAJOR);
}
if (ellipsoidParams.containsKey(NetCDFUtilities.SEMI_MINOR)) {
semiMinor = ellipsoidParams.get(NetCDFUtilities.SEMI_MINOR);
}
if (ellipsoidParams.containsKey(NetCDFUtilities.INVERSE_FLATTENING)) {
inverseFlattening = 
ellipsoidParams.get(NetCDFUtilities.INVERSE_FLATTENING);
}
if (semiMinor != null) {
return DefaultEllipsoid.createEllipsoid(name, 
semiMajor.doubleValue(),
semiMinor.doubleValue(), SI.METER);
} else {
return DefaultEllipsoid.createFlattenedSphere(name, 
semiMajor.doubleValue(), /// --- NPE HERE semiMajor remains null.
inverseFlattening.doubleValue(), SI.METER);
}
}

Thanks!



Steve Ferguson
Application Developer

This electronic message contains information generated by the USDA solely for 
the intended recipients. Any unauthorized interception of this message or the 
use or disclosure of the information it contains may violate the law and 
subject the violator to civil or criminal penalties. If you believe you have 
received this message in error, please notify the sender and delete the email 
immediately.

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


Re: [Geoserver-users] Geotiff import, nothing but gray

2015-09-18 Thread Alex O'Ree
can geoserver import nitf file formats?
On Sep 18, 2015 9:21 AM, "Alex O'Ree"  wrote:

> If I go to layer preview, then tiff from the drop down, I do get a image
> of the map back. It only appears that open layers has an issue
> On Sep 18, 2015 8:47 AM, "Alex O'Ree"  wrote:
>
>> It is set to raster style.
>> On Sep 17, 2015 7:41 PM, "Alex O'Ree"  wrote:
>>
>>> ill give it a shot, first thing tomorrow
>>>
>>> On Thu, Sep 17, 2015 at 7:32 PM, Alex M 
>>> wrote:
>>> > Try changing the style classes to better cover the actual data range.
>>> > Often with rasters if you don't stretch min/mix you end up with just
>>> > gray as the few outlying values get assigned white and black (NoData as
>>> > something like - can cause this.
>>> >
>>> > -Alex
>>> >
>>> > On 09/17/2015 04:29 PM, Alex O'Ree wrote:
>>> >> Andrea
>>> >>
>>> >> Thanks for the quick response and sorry for not getting back sooner.
>>> >>
>>> >> Polygon as in a large gray square. I can zoom in and out, just no map.
>>> >> It's all gray.
>>> >>
>>> >> It was imported as the raster layer.
>>> >>
>>> >> Below is the output from gdalinfo
>>> >>
>>> >>
>>> >> C:\Program Files\GDAL>gdalinfo
>>> c:\maps\geoserver-2.7.2\data_dir\alaska.tiff
>>> >> ERROR 1: Can't load requested DLL: C:\Program
>>> >> Files\GDAL\gdalplugins\gdal_MrSID.dll
>>> >> 126: The specified module could not be found.
>>> >>
>>> >> ERROR 1: Can't load requested DLL: C:\Program
>>> >> Files\GDAL\gdalplugins\gdal_MrSID.dll
>>> >> 126: The specified module could not be found.
>>> >>
>>> >> Driver: GTiff/GeoTIFF
>>> >> Files: c:\maps\geoserver-2.7.2\data_dir\alaska.tiff
>>> >> Size is 29184, 18432
>>> >> Coordinate System is `'
>>> >> GCP Projection =
>>> >> GEOGCS["WGS 84",
>>> >> DATUM["WGS_1984",
>>> >> SPHEROID["WGS 84",6378137,298.257223563,
>>> >> AUTHORITY["EPSG","7030"]],
>>> >> AUTHORITY["EPSG","6326"]],
>>> >> PRIMEM["Greenwich",0],
>>> >> UNIT["degree",0.0174532925199433],
>>> >> AUTHORITY["EPSG","4326"]]
>>> >> GCP[  0]: Id=1, Info=
>>> >>   (0,0) -> (-116.680203045685,34.7986191024166,0)
>>> >> GCP[  1]: Id=2, Info=
>>> >>   (29184,0) -> (-111.472081218274,34.7986191024166,0)
>>> >> GCP[  2]: Id=3, Info=
>>> >>   (0,18432) -> (-116.680203045685,32.313003452244,0)
>>> >> GCP[  3]: Id=4, Info=
>>> >>   (29184,18432) -> (-111.472081218274,32.313003452244,0)
>>> >> Metadata:
>>> >>   AREA_OR_POINT=Area
>>> >>   TIFFTAG_DATETIME=2015:09:16 17:47:52
>>> >>
>>>  TIFFTAG_IMAGEDESCRIPTION=com.partech.geoio.rpf.BoundaryRectangle@164cf04
>>> >>   TIFFTAG_RESOLUTIONUNIT=3 (pixels/cm)
>>> >>   TIFFTAG_SOFTWARE=GV
>>> >>   TIFFTAG_XRESOLUTION=1
>>> >>   TIFFTAG_YRESOLUTION=1
>>> >> Image Structure Metadata:
>>> >>   INTERLEAVE=PIXEL
>>> >> Corner Coordinates:
>>> >> Upper Left  (0.0,0.0)
>>> >> Lower Left  (0.0,18432.0)
>>> >> Upper Right (29184.0,0.0)
>>> >> Lower Right (29184.0,18432.0)
>>> >> Center  (14592.0, 9216.0)
>>> >> Band 1 Block=128x128 Type=Byte, ColorInterp=Red
>>> >>   Mask Flags: PER_DATASET ALPHA
>>> >> Band 2 Block=128x128 Type=Byte, ColorInterp=Green
>>> >>   Mask Flags: PER_DATASET ALPHA
>>> >> Band 3 Block=128x128 Type=Byte, ColorInterp=Blue
>>> >>   Mask Flags: PER_DATASET ALPHA
>>> >> Band 4 Block=128x128 Type=Byte, ColorInterp=Alpha
>>> >>
>>> >>
>>> >> On Wed, Sep 16, 2015 at 6:46 PM, Andrea Aime
>>> >>  wrote:
>>> >>> On Thu, Sep 17, 2015 at 12:28 AM, Alex O'Ree 
>>> wrote:
>>> 
>>>  After importing a geotiff in a data store (no errors), then going to
>>>  preview layer using open layers, I see nothing but a large gray
>>>  polygon. Is there anything I can do to help troubleshoot this? I can
>>>  view the tiff in graphics editing/viewing problems. It's a 2GB file,
>>>  not sure if that's relevant or not.
>>> 
>>> >>>
>>> >>> Polygon as in  vector polygon? Did you associate the polygon
>>> >>> style instead of the raster one by any chance?
>>> >>> If not, can you run gdalinfo against that file, and provide the
>>> geoserver
>>> >>> version you're using?
>>> >>>
>>> >>> Cheers
>>> >>> Andrea
>>> >>>
>>> >>> --
>>> >>> ==
>>> >>> 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 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 

Re: [Geoserver-users] Geotiff import, nothing but gray

2015-09-18 Thread Andrea Aime
On Fri, Sep 18, 2015 at 4:53 PM, Alex O'Ree  wrote:

> One more update. I was able to get some data to import by cropping the geo
> tiff.  Now the problem is that it's rendering mirrored and inverted (open
> layers). Any idea?
>
Adding to the weirdness of that geotiff, it's not ortorectified apparently,
but uses ground control points instead.
Use gdalwarp/gdaltranslate to fix it :-)

Cheers
Andrea

-- 
==
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 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.

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


Re: [Geoserver-users] Geotiff import, nothing but gray

2015-09-18 Thread Andrea Aime
On Fri, Sep 18, 2015 at 3:21 PM, Alex O'Ree  wrote:

> If I go to layer preview, then tiff from the drop down, I do get a image
> of the map back. It only appears that open layers has an issue
>

Waaait a second, I think I see it now, that geotiff has per overview inner
raster masks. Those are supported only in GeoServer > 2.8.0, which are
are about to release, you should give 2.8-RC1  a try

Cheers
Andrea


-- 
==
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 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.

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


Re: [Geoserver-users] Geotiff import, nothing but gray

2015-09-18 Thread Alex O'Ree
One more update. I was able to get some data to import by cropping the geo
tiff.  Now the problem is that it's rendering mirrored and inverted (open
layers). Any idea?
On Sep 18, 2015 10:31 AM, "Alex O'Ree"  wrote:

> can geoserver import nitf file formats?
> On Sep 18, 2015 9:21 AM, "Alex O'Ree"  wrote:
>
>> If I go to layer preview, then tiff from the drop down, I do get a image
>> of the map back. It only appears that open layers has an issue
>> On Sep 18, 2015 8:47 AM, "Alex O'Ree"  wrote:
>>
>>> It is set to raster style.
>>> On Sep 17, 2015 7:41 PM, "Alex O'Ree"  wrote:
>>>
 ill give it a shot, first thing tomorrow

 On Thu, Sep 17, 2015 at 7:32 PM, Alex M 
 wrote:
 > Try changing the style classes to better cover the actual data range.
 > Often with rasters if you don't stretch min/mix you end up with just
 > gray as the few outlying values get assigned white and black (NoData
 as
 > something like - can cause this.
 >
 > -Alex
 >
 > On 09/17/2015 04:29 PM, Alex O'Ree wrote:
 >> Andrea
 >>
 >> Thanks for the quick response and sorry for not getting back sooner.
 >>
 >> Polygon as in a large gray square. I can zoom in and out, just no
 map.
 >> It's all gray.
 >>
 >> It was imported as the raster layer.
 >>
 >> Below is the output from gdalinfo
 >>
 >>
 >> C:\Program Files\GDAL>gdalinfo
 c:\maps\geoserver-2.7.2\data_dir\alaska.tiff
 >> ERROR 1: Can't load requested DLL: C:\Program
 >> Files\GDAL\gdalplugins\gdal_MrSID.dll
 >> 126: The specified module could not be found.
 >>
 >> ERROR 1: Can't load requested DLL: C:\Program
 >> Files\GDAL\gdalplugins\gdal_MrSID.dll
 >> 126: The specified module could not be found.
 >>
 >> Driver: GTiff/GeoTIFF
 >> Files: c:\maps\geoserver-2.7.2\data_dir\alaska.tiff
 >> Size is 29184, 18432
 >> Coordinate System is `'
 >> GCP Projection =
 >> GEOGCS["WGS 84",
 >> DATUM["WGS_1984",
 >> SPHEROID["WGS 84",6378137,298.257223563,
 >> AUTHORITY["EPSG","7030"]],
 >> AUTHORITY["EPSG","6326"]],
 >> PRIMEM["Greenwich",0],
 >> UNIT["degree",0.0174532925199433],
 >> AUTHORITY["EPSG","4326"]]
 >> GCP[  0]: Id=1, Info=
 >>   (0,0) -> (-116.680203045685,34.7986191024166,0)
 >> GCP[  1]: Id=2, Info=
 >>   (29184,0) -> (-111.472081218274,34.7986191024166,0)
 >> GCP[  2]: Id=3, Info=
 >>   (0,18432) -> (-116.680203045685,32.313003452244,0)
 >> GCP[  3]: Id=4, Info=
 >>   (29184,18432) -> (-111.472081218274,32.313003452244,0)
 >> Metadata:
 >>   AREA_OR_POINT=Area
 >>   TIFFTAG_DATETIME=2015:09:16 17:47:52
 >>
  TIFFTAG_IMAGEDESCRIPTION=com.partech.geoio.rpf.BoundaryRectangle@164cf04
 >>   TIFFTAG_RESOLUTIONUNIT=3 (pixels/cm)
 >>   TIFFTAG_SOFTWARE=GV
 >>   TIFFTAG_XRESOLUTION=1
 >>   TIFFTAG_YRESOLUTION=1
 >> Image Structure Metadata:
 >>   INTERLEAVE=PIXEL
 >> Corner Coordinates:
 >> Upper Left  (0.0,0.0)
 >> Lower Left  (0.0,18432.0)
 >> Upper Right (29184.0,0.0)
 >> Lower Right (29184.0,18432.0)
 >> Center  (14592.0, 9216.0)
 >> Band 1 Block=128x128 Type=Byte, ColorInterp=Red
 >>   Mask Flags: PER_DATASET ALPHA
 >> Band 2 Block=128x128 Type=Byte, ColorInterp=Green
 >>   Mask Flags: PER_DATASET ALPHA
 >> Band 3 Block=128x128 Type=Byte, ColorInterp=Blue
 >>   Mask Flags: PER_DATASET ALPHA
 >> Band 4 Block=128x128 Type=Byte, ColorInterp=Alpha
 >>
 >>
 >> On Wed, Sep 16, 2015 at 6:46 PM, Andrea Aime
 >>  wrote:
 >>> On Thu, Sep 17, 2015 at 12:28 AM, Alex O'Ree 
 wrote:
 
  After importing a geotiff in a data store (no errors), then going
 to
  preview layer using open layers, I see nothing but a large gray
  polygon. Is there anything I can do to help troubleshoot this? I
 can
  view the tiff in graphics editing/viewing problems. It's a 2GB
 file,
  not sure if that's relevant or not.
 
 >>>
 >>> Polygon as in  vector polygon? Did you associate the polygon
 >>> style instead of the raster one by any chance?
 >>> If not, can you run gdalinfo against that file, and provide the
 geoserver
 >>> version you're using?
 >>>
 >>> Cheers
 >>> Andrea
 >>>
 >>> --
 >>> ==
 >>> 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 Poggio alle Viti 1187
 >>> 55054  

Re: [Geoserver-users] EXT :Re: BBOX filter on chained features

2015-09-18 Thread Stefano Costa
Hi Wen,
I was about to write, you anticipated me :-)

I was able to replicate the error using PostGIS as datastore. This is
definitely a bug. It seems the issue occurs when one uses a BBOX filter
(WFS 2.0) against a nested property. I'll open a JIRA ticket.

Meanwhile, you could try with a WFS 1.1 filter:

http://www.opengis.net/wfs;
  xmlns:ogc="http://www.opengis.net/ogc;
  xmlns:gml="http://www.opengis.net/gml;>
  



aixm:horizontalProjection/aixm:Surface/gml:polygonPatches/gml:PolygonPatch/gml:exterior/gml:LinearRing

-180 -90
180 90



  


Probably you will get no feature back, but at least you should get no
exception :-)

--S


On Fri, Sep 18, 2015 at 3:25 PM, Yin, Wentao (IS) (Contr) <
wentao@ngc.com> wrote:

> Hi Stefano,
>
>
>
> I just tested the GeologicUnit sample you sent two days ago. I changed the
> datastore from property file to oracle, now I got the same error when using
> the same bbox filter:
>
>
>
> java.lang.RuntimeException: java.io.IOException
> java.io.IOExceptionExpecting a feature to apply filter, but found:
> *SimpleFeatureTypeImpl* GEOLOGICUNIT identified extends
> Feature(ID:ID,NAME:NAME,CODE:CODE,GU_URN:GU_URN,DESCRIPTION:DESCRIPTION)
>
>
>
> Here are the scripts to create the datastore in case you need to replicate
> the error:
>
>
>
> CREATE TABLE MappedFeature (ID VARCHAR2(10), NAME VARCHAR2(20),GU_URN
> VARCHAR2(100),SHAPE MDSYS.SDO_GEOMETRY);
>
> CREATE TABLE GEOLOGICUNIT (ID VARCHAR2(10), NAME VARCHAR2(30), CODE
> VARCHAR2(20),URN VARCHAR2(100),DESCRIPTION VARCHAR2(300));
>
>
>
> INSERT INTO MappedFeature VALUES ('mf.25699','Some
> basalt','urn:x-test:GeologicUnit:16777549126931093',
>
>SDO_GEOMETRY(2003, 4283, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1),
> SDO_ORDINATE_ARRAY( 143.561948, -38.532217, 143.561012, -38.533360,
> 143.549986, -38.526470, 143.561948, -38.532217)));
>
>
>
> INSERT INTO MappedFeature VALUES ('mf.25764','More
> basalt','urn:x-test:GeologicUnit:16777549126931093',
>
>SDO_GEOMETRY(2003, 4283, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1),
> SDO_ORDINATE_ARRAY(143.566412, -38.492157, 143.569803, -38.488559,
> 143.571572, -38.486718, 143.566412, -38.492157)));
>
>
>
> INSERT INTO MappedFeature VALUES ('mf.26106','Some
> mudstone','urn:x-test:GeologicUnit:16777549126931077',
>
>SDO_GEOMETRY(2003, 4283, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1),
> SDO_ORDINATE_ARRAY(143.496091 -38.800309, 143.496241 -38.799286, 143.496136
> -38.797775, 143.497646 -38.800192, 143.496091 -38.800309)));
>
>
>
> INSERT INTO GEOLOGICUNIT VALUES ('gu.93','Yaugher Volcanic
> Group','-Py','urn:x-test:GeologicUnit:16777549126931093','Olivine basalt,
> tuff, microgabbro, minor sedimentary rocks')
>
> INSERT INTO GEOLOGICUNIT VALUES ('gu.77','Narrawaturk
> Marl','-Pnn','urn:x-test:GeologicUnit:16777549126931077','Calcareous
> mudstone, minor thin calcarenite beds: locally carbonaceous and burrowed,
> locally abundant glauconite pellets and polished quartz sand, foraminifers,
> bryozoans, brachiopods and molluscs; open marine (below storm wave base)
> deposits')
>
>
>
>
>
> Thanks for helping!
>
> Wen
>
>
>
>
>
> *From:* Stefano Costa [mailto:stefano.co...@geo-solutions.it]
> *Sent:* Friday, September 18, 2015 9:01 AM
> *To:* Yin, Wentao (IS) (Contr)
> *Cc:* geoserver-users
> *Subject:* Re: EXT :Re: [Geoserver-users] BBOX filter on chained features
>
>
>
> Hi Wen,
>
>
>
> On Thu, Sep 17, 2015 at 7:19 PM, Yin, Wentao (IS) (Contr) <
> wentao@ngc.com> wrote:
>
> Are you using the same mapping you posted a few mails ago?   Yes.
>
>
>
> Uhm, you posted the mapping files for two feature types,
> aixm:AirspaceVolume and aixm:Surface, but below you're mentioning 4 tables
> / feature types... from the BBOX filter expression, I guess you're mapping
> also aixm:Airspace and aixm:AirspaceGeometryComponent? Can you post the
> missing mapping files?
>
>
>
>
>
> Are you able to query nested non-geometry properties?   Yes.
>
>
>
> Can you post an example of working query?
>
>
>
> Caused by: *java.lang.UnsupportedOperationException*: *Expecting a
> feature to apply filter, but found*: SimpleFeatureTypeImpl A_AIRSPACE_WT
> identified extends Feature(UUID:UUID,CODESPACE:CODESPACE,REC_ID:REC_ID)
>
>
>
> Looks like you got a FeatureType, but the code was expecting a Feature...
> this may be a bug. What type are you mapping the table A_AIRSPACE_WT to?
> aixm:Airspace?
>
>
>
>
>
-- 

Best regards,
Stefano Costa

==
GeoServer Professional Services from the experts!
Visithttp://goo.gl/it488V for more information.
==
Dott. Stefano Costa
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
http://www.geo-solutions.ithttp://twitter.com/geosolutions_it

---
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le 

Re: [Geoserver-users] EXT :Re: BBOX filter on chained features

2015-09-18 Thread Yin, Wentao (IS) (Contr)
Hi Stefano,

I just tested the GeologicUnit sample you sent two days ago. I changed the 
datastore from property file to oracle, now I got the same error when using the 
same bbox filter:

java.lang.RuntimeException: java.io.IOException java.io.IOExceptionExpecting a 
feature to apply filter, but found: SimpleFeatureTypeImpl GEOLOGICUNIT 
identified extends 
Feature(ID:ID,NAME:NAME,CODE:CODE,GU_URN:GU_URN,DESCRIPTION:DESCRIPTION)

Here are the scripts to create the datastore in case you need to replicate the 
error:

CREATE TABLE MappedFeature (ID VARCHAR2(10), NAME VARCHAR2(20),GU_URN 
VARCHAR2(100),SHAPE MDSYS.SDO_GEOMETRY);
CREATE TABLE GEOLOGICUNIT (ID VARCHAR2(10), NAME VARCHAR2(30), CODE 
VARCHAR2(20),URN VARCHAR2(100),DESCRIPTION VARCHAR2(300));

INSERT INTO MappedFeature VALUES ('mf.25699','Some 
basalt','urn:x-test:GeologicUnit:16777549126931093',
   SDO_GEOMETRY(2003, 4283, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), 
SDO_ORDINATE_ARRAY( 143.561948, -38.532217, 143.561012, -38.533360, 143.549986, 
-38.526470, 143.561948, -38.532217)));

INSERT INTO MappedFeature VALUES ('mf.25764','More 
basalt','urn:x-test:GeologicUnit:16777549126931093',
   SDO_GEOMETRY(2003, 4283, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), 
SDO_ORDINATE_ARRAY(143.566412, -38.492157, 143.569803, -38.488559, 143.571572, 
-38.486718, 143.566412, -38.492157)));

INSERT INTO MappedFeature VALUES ('mf.26106','Some 
mudstone','urn:x-test:GeologicUnit:16777549126931077',
   SDO_GEOMETRY(2003, 4283, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), 
SDO_ORDINATE_ARRAY(143.496091 -38.800309, 143.496241 -38.799286, 143.496136 
-38.797775, 143.497646 -38.800192, 143.496091 -38.800309)));

INSERT INTO GEOLOGICUNIT VALUES ('gu.93','Yaugher Volcanic 
Group','-Py','urn:x-test:GeologicUnit:16777549126931093','Olivine basalt, tuff, 
microgabbro, minor sedimentary rocks')
INSERT INTO GEOLOGICUNIT VALUES ('gu.77','Narrawaturk 
Marl','-Pnn','urn:x-test:GeologicUnit:16777549126931077','Calcareous mudstone, 
minor thin calcarenite beds: locally carbonaceous and burrowed, locally 
abundant glauconite pellets and polished quartz sand, foraminifers, bryozoans, 
brachiopods and molluscs; open marine (below storm wave base) deposits')


Thanks for helping!
Wen


From: Stefano Costa [mailto:stefano.co...@geo-solutions.it]
Sent: Friday, September 18, 2015 9:01 AM
To: Yin, Wentao (IS) (Contr)
Cc: geoserver-users
Subject: Re: EXT :Re: [Geoserver-users] BBOX filter on chained features

Hi Wen,

On Thu, Sep 17, 2015 at 7:19 PM, Yin, Wentao (IS) (Contr) 
> wrote:
Are you using the same mapping you posted a few mails ago?   Yes.

Uhm, you posted the mapping files for two feature types, aixm:AirspaceVolume 
and aixm:Surface, but below you're mentioning 4 tables / feature types... from 
the BBOX filter expression, I guess you're mapping also aixm:Airspace and 
aixm:AirspaceGeometryComponent? Can you post the missing mapping files?


Are you able to query nested non-geometry properties?   Yes.

Can you post an example of working query?

Caused by: java.lang.UnsupportedOperationException: Expecting a feature to 
apply filter, but found: SimpleFeatureTypeImpl A_AIRSPACE_WT identified extends 
Feature(UUID:UUID,CODESPACE:CODESPACE,REC_ID:REC_ID)

Looks like you got a FeatureType, but the code was expecting a Feature... this 
may be a bug. What type are you mapping the table A_AIRSPACE_WT to? 
aixm:Airspace?

--

Best regards,

Stefano Costa



==

GeoServer Professional Services from the experts! Visit

http://goo.gl/it488V for more information.

==

Dott. Stefano Costa

Senior Software Engineer



GeoSolutions S.A.S.

Via Poggio alle Viti 1187

55054  Massarosa (LU)

Italy

phone: +39 0584 962313

fax: +39 0584 1660272



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, 

Re: [Geoserver-users] EXT :Re: BBOX filter on chained features

2015-09-18 Thread Stefano Costa
Hi Wen,

On Thu, Sep 17, 2015 at 7:19 PM, Yin, Wentao (IS) (Contr) <
wentao@ngc.com> wrote:

> Are you using the same mapping you posted a few mails ago?   Yes.
>

Uhm, you posted the mapping files for two feature types,
aixm:AirspaceVolume and aixm:Surface, but below you're mentioning 4 tables
/ feature types... from the BBOX filter expression, I guess you're mapping
also aixm:Airspace and aixm:AirspaceGeometryComponent? Can you post the
missing mapping files?


>
> Are you able to query nested non-geometry properties?   Yes.
>

Can you post an example of working query?

Caused by: *java.lang.UnsupportedOperationException*: *Expecting a feature
> to apply filter, but found*: SimpleFeatureTypeImpl A_AIRSPACE_WT
> identified extends Feature(UUID:UUID,CODESPACE:CODESPACE,REC_ID:REC_ID)
>

Looks like you got a FeatureType, but the code was expecting a Feature...
this may be a bug. What type are you mapping the table A_AIRSPACE_WT to?
aixm:Airspace?

-- 

Best regards,
Stefano Costa

==
GeoServer Professional Services from the experts!
Visithttp://goo.gl/it488V for more information.
==
Dott. Stefano Costa
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
http://www.geo-solutions.ithttp://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.
--
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] Geotiff import, nothing but gray

2015-09-18 Thread Alex O'Ree
If I go to layer preview, then tiff from the drop down, I do get a image of
the map back. It only appears that open layers has an issue
On Sep 18, 2015 8:47 AM, "Alex O'Ree"  wrote:

> It is set to raster style.
> On Sep 17, 2015 7:41 PM, "Alex O'Ree"  wrote:
>
>> ill give it a shot, first thing tomorrow
>>
>> On Thu, Sep 17, 2015 at 7:32 PM, Alex M 
>> wrote:
>> > Try changing the style classes to better cover the actual data range.
>> > Often with rasters if you don't stretch min/mix you end up with just
>> > gray as the few outlying values get assigned white and black (NoData as
>> > something like - can cause this.
>> >
>> > -Alex
>> >
>> > On 09/17/2015 04:29 PM, Alex O'Ree wrote:
>> >> Andrea
>> >>
>> >> Thanks for the quick response and sorry for not getting back sooner.
>> >>
>> >> Polygon as in a large gray square. I can zoom in and out, just no map.
>> >> It's all gray.
>> >>
>> >> It was imported as the raster layer.
>> >>
>> >> Below is the output from gdalinfo
>> >>
>> >>
>> >> C:\Program Files\GDAL>gdalinfo
>> c:\maps\geoserver-2.7.2\data_dir\alaska.tiff
>> >> ERROR 1: Can't load requested DLL: C:\Program
>> >> Files\GDAL\gdalplugins\gdal_MrSID.dll
>> >> 126: The specified module could not be found.
>> >>
>> >> ERROR 1: Can't load requested DLL: C:\Program
>> >> Files\GDAL\gdalplugins\gdal_MrSID.dll
>> >> 126: The specified module could not be found.
>> >>
>> >> Driver: GTiff/GeoTIFF
>> >> Files: c:\maps\geoserver-2.7.2\data_dir\alaska.tiff
>> >> Size is 29184, 18432
>> >> Coordinate System is `'
>> >> GCP Projection =
>> >> GEOGCS["WGS 84",
>> >> DATUM["WGS_1984",
>> >> SPHEROID["WGS 84",6378137,298.257223563,
>> >> AUTHORITY["EPSG","7030"]],
>> >> AUTHORITY["EPSG","6326"]],
>> >> PRIMEM["Greenwich",0],
>> >> UNIT["degree",0.0174532925199433],
>> >> AUTHORITY["EPSG","4326"]]
>> >> GCP[  0]: Id=1, Info=
>> >>   (0,0) -> (-116.680203045685,34.7986191024166,0)
>> >> GCP[  1]: Id=2, Info=
>> >>   (29184,0) -> (-111.472081218274,34.7986191024166,0)
>> >> GCP[  2]: Id=3, Info=
>> >>   (0,18432) -> (-116.680203045685,32.313003452244,0)
>> >> GCP[  3]: Id=4, Info=
>> >>   (29184,18432) -> (-111.472081218274,32.313003452244,0)
>> >> Metadata:
>> >>   AREA_OR_POINT=Area
>> >>   TIFFTAG_DATETIME=2015:09:16 17:47:52
>> >>
>>  TIFFTAG_IMAGEDESCRIPTION=com.partech.geoio.rpf.BoundaryRectangle@164cf04
>> >>   TIFFTAG_RESOLUTIONUNIT=3 (pixels/cm)
>> >>   TIFFTAG_SOFTWARE=GV
>> >>   TIFFTAG_XRESOLUTION=1
>> >>   TIFFTAG_YRESOLUTION=1
>> >> Image Structure Metadata:
>> >>   INTERLEAVE=PIXEL
>> >> Corner Coordinates:
>> >> Upper Left  (0.0,0.0)
>> >> Lower Left  (0.0,18432.0)
>> >> Upper Right (29184.0,0.0)
>> >> Lower Right (29184.0,18432.0)
>> >> Center  (14592.0, 9216.0)
>> >> Band 1 Block=128x128 Type=Byte, ColorInterp=Red
>> >>   Mask Flags: PER_DATASET ALPHA
>> >> Band 2 Block=128x128 Type=Byte, ColorInterp=Green
>> >>   Mask Flags: PER_DATASET ALPHA
>> >> Band 3 Block=128x128 Type=Byte, ColorInterp=Blue
>> >>   Mask Flags: PER_DATASET ALPHA
>> >> Band 4 Block=128x128 Type=Byte, ColorInterp=Alpha
>> >>
>> >>
>> >> On Wed, Sep 16, 2015 at 6:46 PM, Andrea Aime
>> >>  wrote:
>> >>> On Thu, Sep 17, 2015 at 12:28 AM, Alex O'Ree 
>> wrote:
>> 
>>  After importing a geotiff in a data store (no errors), then going to
>>  preview layer using open layers, I see nothing but a large gray
>>  polygon. Is there anything I can do to help troubleshoot this? I can
>>  view the tiff in graphics editing/viewing problems. It's a 2GB file,
>>  not sure if that's relevant or not.
>> 
>> >>>
>> >>> Polygon as in  vector polygon? Did you associate the polygon
>> >>> style instead of the raster one by any chance?
>> >>> If not, can you run gdalinfo against that file, and provide the
>> geoserver
>> >>> version you're using?
>> >>>
>> >>> Cheers
>> >>> Andrea
>> >>>
>> >>> --
>> >>> ==
>> >>> 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 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, 

[Geoserver-users] Tile Caching - Tile Layers Error

2015-09-18 Thread Phaneuf, Krystal
Environment:
Windows 2008 R2 Server, Apache Tomcat 6.0
Affects Version/s:2.7.2



When going to the Tile Layers page this error occurs.  Anyone else ever 
experience this or have any suggestions.  Appreciate any help.  Thanks!

org.apache.wicket.WicketRuntimeException: Error attaching this container for 
rendering: [MarkupContainer [Component id = 1]]
at 
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1765)
at org.apache.wicket.Component.onBeforeRender(Component.java:3946)
at org.apache.wicket.Component.internalBeforeRender(Component.java:1071)
at org.apache.wicket.Component.beforeRender(Component.java:1105)
at 
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1753)
at org.apache.wicket.Component.onBeforeRender(Component.java:3946)
at 
org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:151)
at 
org.apache.wicket.markup.repeater.AbstractPageableView.onBeforeRender(AbstractPageableView.java:121)
at org.apache.wicket.Component.internalBeforeRender(Component.java:1071)
at org.apache.wicket.Component.beforeRender(Component.java:1105)
at 
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1753)
at org.apache.wicket.Component.onBeforeRender(Component.java:3946)
at org.apache.wicket.Component.internalBeforeRender(Component.java:1071)
at org.apache.wicket.Component.beforeRender(Component.java:1105)
at 
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1753)
at org.apache.wicket.Component.onBeforeRender(Component.java:3946)
at org.apache.wicket.Component.internalBeforeRender(Component.java:1071)
at org.apache.wicket.Component.beforeRender(Component.java:1105)
at 
org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1753)
at org.apache.wicket.Component.onBeforeRender(Component.java:3946)
at org.apache.wicket.Page.onBeforeRender(Page.java:1531)
at org.apache.wicket.Component.internalBeforeRender(Component.java:1071)
at org.apache.wicket.Component.beforeRender(Component.java:1105)
at org.apache.wicket.Component.prepareForRender(Component.java:2292)
at org.apache.wicket.Page.prepareForRender(Page.java:1521)
at org.apache.wicket.Component.prepareForRender(Component.java:2329)
at org.apache.wicket.Page.renderPage(Page.java:892)
at 
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:261)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484)
at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at 
org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:159)
at 
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at 
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at 
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at 
org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75)
at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71)
at 
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
at 
org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 

Re: [Geoserver-users] Unsupported axis: double lon(y=449, x=599);

2015-09-18 Thread Daniele Romagnoli
Hi Steve,
I will open a JIRA to add default values for unspecified datum .
(as far as I can see, NetCDF uses a Default sphere with radius = 6371229 if
nothing is specified).

In the meantime, you could add a "earth_radius" double attribute = 6371229
to the Lambert_Conformal variable of your NetCDF.
Finally, as reported in the NetCDF GeoServer documentation
,
please, make sure to add a proper entry to the netCDF custom epsgs.

Something like this on a single line (see documentation):
PROJCS["lambert_conformal_conic_2SP",
  GEOGCS["unknown",
DATUM["unknown",
  SPHEROID["unknown", 6371229.0, 0.0]],
PRIMEM["Greenwich", 0.0],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH]],
  PROJECTION["Lambert_Conformal_Conic_2SP"],
  PARAMETER["central_meridian", -98.0],
  PARAMETER["latitude_of_origin", 89.],
  PARAMETER["standard_parallel_1", 60.0],
  PARAMETER["false_easting", 0.0],
  PARAMETER["false_northing", 0.0],
  PARAMETER["scale_factor", 1.0],
  PARAMETER["standard_parallel_2", 30.0],
  UNIT["m", 1.0],
  AXIS["Easting", EAST],
  AXIS["Northing", NORTH]]

This will allow GeoServer to recognize the projection exposed in the NetCDF
dataset.

Hope this helps.
Cheers,
Daniele



On Fri, Sep 18, 2015 at 3:46 PM, Ferguson, Steve -FS 
wrote:

> I am attempting to load a netcdf file in geoserver-2.8-RC1 (
> http://mtnweather.info/download/wrf_works.nc). With the same file loaded
> into netcdf-toolsUI I am able to view grids, so I would think the netcdf
> file might also be valid in geoserver. Upon attempting to add the store, I
> receive the error : Could not list layers for this store, an error occurred
> retrieving them.  Any help in understanding and resolving this error would
> be greatly appreciated.
>
>
>
> The detailed error message reported on the console is :
>
>
>
>
>
> WARN [netcdf.NetCDFGeoreferenceManager] - Unsupported axis: double
> lat(y=449, x=599);
>
>   :axis = "Y";
>
>   :units = "degrees_north";
>
>   :long_name = "latitude";
>
>   :standard_name = "latitude";
>
>   :_CoordinateAxisType = "Lat";
>
> in input: C:/projects/firewx/wrf_works.nc has been found
>
> WARN [netcdf.NetCDFGeoreferenceManager] - Unsupported axis: double
> lon(y=449, x=599);
>
>   :axis = "X";
>
>   :units = "degrees_east";
>
>   :long_name = "longitude";
>
>   :standard_name = "longitude";
>
>   :_CoordinateAxisType = "Lon";
>
> in input: C:/projects/firewx/wrf_works.nc has been found
>
> 18 Sep 06:08:17 WARN [netcdf.NetCDFFormat] - Unable to connect
>
> org.geotools.data.DataSourceException: Unable to connect
>
> at
> org.geotools.coverage.io.netcdf.NetCDFReader.(NetCDFReader.java:158)
>
> at
> org.geotools.coverage.io.netcdf.NetCDFFormat.getReader(NetCDFFormat.java:95)
>
> at
> org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1441)
>
> at
> org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1369)
>
>
>
> ….
>
>
>
> Caused by: java.lang.NullPointerException
>
> at
> org.geotools.coverage.io.netcdf.crs.ProjectionBuilder.createEllipsoid(ProjectionBuilder.java:255)
>
> at
> org.geotools.coverage.io.netcdf.crs.NetCDFProjection.buildEllipsoid(NetCDFProjection.java:453)
>
> at
> org.geotools.coverage.io.netcdf.crs.NetCDFProjection.parseProjection(NetCDFProjection.java:323)
>
> at
> org.geotools.coverage.io.netcdf.crs.NetCDFProjection.lookForVariableCRS(NetCDFProjection.java:532)
>
> at
> org.geotools.imageio.netcdf.NetCDFGeoreferenceManager.extractBBOX(NetCDFGeoreferenceManager.java:261)
>
> at
> org.geotools.imageio.netcdf.NetCDFGeoreferenceManager.(NetCDFGeoreferenceManager.java:155)
>
> at
> org.geotools.imageio.netcdf.NetCDFImageReader.init(NetCDFImageReader.java:443)
>
> at
> org.geotools.imageio.netcdf.NetCDFImageReader.setInput(NetCDFImageReader.java:258)
>
>
>
>
>
> When I look at the code for this error in geotools, it looks like this :
>
>
>
> public static Ellipsoid createEllipsoid(String name, Map
> ellipsoidParams) {
>
> Number semiMajor = null;
>
> Number semiMinor = null;
>
> Number inverseFlattening = Double.NEGATIVE_INFINITY;
>
> if (ellipsoidParams.containsKey(NetCDFUtilities.SEMI_MAJOR)) {
>
> semiMajor = ellipsoidParams.get(NetCDFUtilities.SEMI_MAJOR);
>
> }
>
> if (ellipsoidParams.containsKey(NetCDFUtilities.SEMI_MINOR)) {
>
> semiMinor = ellipsoidParams.get(NetCDFUtilities.SEMI_MINOR);
>
> }
>
> if
> (ellipsoidParams.containsKey(NetCDFUtilities.INVERSE_FLATTENING)) {
>
> inverseFlattening =
> ellipsoidParams.get(NetCDFUtilities.INVERSE_FLATTENING);
>
> }
>
> if (semiMinor != null) 

Re: [Geoserver-users] Geotiff import, nothing but gray

2015-09-18 Thread Alex O'Ree
Any idea what options I need for gdal?
On Sep 18, 2015 11:00 AM, "Andrea Aime" 
wrote:

> On Fri, Sep 18, 2015 at 4:53 PM, Alex O'Ree  wrote:
>
>> One more update. I was able to get some data to import by cropping the
>> geo tiff.  Now the problem is that it's rendering mirrored and inverted
>> (open layers). Any idea?
>>
> Adding to the weirdness of that geotiff, it's not ortorectified
> apparently, but uses ground control points instead.
> Use gdalwarp/gdaltranslate to fix it :-)
>
> Cheers
> Andrea
>
> --
> ==
> 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 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.
>
> ---
>
--
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] EXT :Re: BBOX filter on chained features

2015-09-18 Thread Yin, Wentao (IS) (Contr)
Stefano,

Thanks for taking care of this. I tried WFS 1.1, yes, no error and no feature 
back. :-)

Best regards,
Wen


From: Stefano Costa [mailto:stefano.co...@geo-solutions.it]
Sent: Friday, September 18, 2015 10:55 AM
To: Yin, Wentao (IS) (Contr)
Cc: geoserver-users
Subject: Re: EXT :Re: [Geoserver-users] BBOX filter on chained features

Hi Wen,
I was about to write, you anticipated me :-)

I was able to replicate the error using PostGIS as datastore. This is 
definitely a bug. It seems the issue occurs when one uses a BBOX filter (WFS 
2.0) against a nested property. I'll open a JIRA ticket.

Meanwhile, you could try with a WFS 1.1 filter:

http://www.opengis.net/wfs;
  xmlns:ogc="http://www.opengis.net/ogc;
  xmlns:gml="http://www.opengis.net/gml;>
  



aixm:horizontalProjection/aixm:Surface/gml:polygonPatches/gml:PolygonPatch/gml:exterior/gml:LinearRing

-180 -90
180 90



  


Probably you will get no feature back, but at least you should get no exception 
:-)

--S


On Fri, Sep 18, 2015 at 3:25 PM, Yin, Wentao (IS) (Contr) 
> wrote:
Hi Stefano,

I just tested the GeologicUnit sample you sent two days ago. I changed the 
datastore from property file to oracle, now I got the same error when using the 
same bbox filter:

java.lang.RuntimeException: java.io.IOException java.io.IOExceptionExpecting a 
feature to apply filter, but found: SimpleFeatureTypeImpl GEOLOGICUNIT 
identified extends 
Feature(ID:ID,NAME:NAME,CODE:CODE,GU_URN:GU_URN,DESCRIPTION:DESCRIPTION)

Here are the scripts to create the datastore in case you need to replicate the 
error:

CREATE TABLE MappedFeature (ID VARCHAR2(10), NAME VARCHAR2(20),GU_URN 
VARCHAR2(100),SHAPE MDSYS.SDO_GEOMETRY);
CREATE TABLE GEOLOGICUNIT (ID VARCHAR2(10), NAME VARCHAR2(30), CODE 
VARCHAR2(20),URN VARCHAR2(100),DESCRIPTION VARCHAR2(300));

INSERT INTO MappedFeature VALUES ('mf.25699','Some 
basalt','urn:x-test:GeologicUnit:16777549126931093',
   SDO_GEOMETRY(2003, 4283, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), 
SDO_ORDINATE_ARRAY( 143.561948, -38.532217, 143.561012, -38.533360, 143.549986, 
-38.526470, 143.561948, -38.532217)));

INSERT INTO MappedFeature VALUES ('mf.25764','More 
basalt','urn:x-test:GeologicUnit:16777549126931093',
   SDO_GEOMETRY(2003, 4283, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), 
SDO_ORDINATE_ARRAY(143.566412, -38.492157, 143.569803, -38.488559, 143.571572, 
-38.486718, 143.566412, -38.492157)));

INSERT INTO MappedFeature VALUES ('mf.26106','Some 
mudstone','urn:x-test:GeologicUnit:16777549126931077',
   SDO_GEOMETRY(2003, 4283, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), 
SDO_ORDINATE_ARRAY(143.496091 -38.800309, 143.496241 -38.799286, 143.496136 
-38.797775, 143.497646 -38.800192, 143.496091 -38.800309)));

INSERT INTO GEOLOGICUNIT VALUES ('gu.93','Yaugher Volcanic 
Group','-Py','urn:x-test:GeologicUnit:16777549126931093','Olivine basalt, tuff, 
microgabbro, minor sedimentary rocks')
INSERT INTO GEOLOGICUNIT VALUES ('gu.77','Narrawaturk 
Marl','-Pnn','urn:x-test:GeologicUnit:16777549126931077','Calcareous mudstone, 
minor thin calcarenite beds: locally carbonaceous and burrowed, locally 
abundant glauconite pellets and polished quartz sand, foraminifers, bryozoans, 
brachiopods and molluscs; open marine (below storm wave base) deposits')


Thanks for helping!
Wen


From: Stefano Costa 
[mailto:stefano.co...@geo-solutions.it]
Sent: Friday, September 18, 2015 9:01 AM
To: Yin, Wentao (IS) (Contr)
Cc: geoserver-users
Subject: Re: EXT :Re: [Geoserver-users] BBOX filter on chained features

Hi Wen,

On Thu, Sep 17, 2015 at 7:19 PM, Yin, Wentao (IS) (Contr) 
> wrote:
Are you using the same mapping you posted a few mails ago?   Yes.

Uhm, you posted the mapping files for two feature types, aixm:AirspaceVolume 
and aixm:Surface, but below you're mentioning 4 tables / feature types... from 
the BBOX filter expression, I guess you're mapping also aixm:Airspace and 
aixm:AirspaceGeometryComponent? Can you post the missing mapping files?


Are you able to query nested non-geometry properties?   Yes.

Can you post an example of working query?

Caused by: java.lang.UnsupportedOperationException: Expecting a feature to 
apply filter, but found: SimpleFeatureTypeImpl A_AIRSPACE_WT identified extends 
Feature(UUID:UUID,CODESPACE:CODESPACE,REC_ID:REC_ID)

Looks like you got a FeatureType, but the code was expecting a Feature... this 
may be a bug. What type are you mapping the table A_AIRSPACE_WT to? 
aixm:Airspace?



--

Best regards,

Stefano Costa



==

GeoServer Professional Services from the experts! Visit

http://goo.gl/it488V for more information.

==

Dott. Stefano Costa

Senior Software Engineer



GeoSolutions S.A.S.

Via Poggio alle