Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayIndexOutOfBoundsException thrown by OgcGeoPackageReader #2

Closed
emxsys opened this issue Jan 12, 2017 · 1 comment
Closed

ArrayIndexOutOfBoundsException thrown by OgcGeoPackageReader #2

emxsys opened this issue Jan 12, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@emxsys
Copy link
Contributor

emxsys commented Jan 12, 2017

An ArrayIndexOutOfBoundsException is thrown by OgcGeoPackageReader when attempting to render a NSG Profile GeoPackage provided by the AGC. When this exception occurs the map is not rendered.

org.geoserver.platform.ServiceException: Error rendering coverage on the fast path
        at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:353)
        at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:268)
        at org.geoserver.wms.map.RenderedImageMapOutputFormat.produceMap(RenderedImageMapOutputFormat.java:138)
        at org.geoserver.wms.GetMap.executeInternal(GetMap.java:623)
        at org.geoserver.wms.GetMap.run(GetMap.java:279)
. . .
Caused by: java.lang.ArrayIndexOutOfBoundsException: 768
        at sun.awt.image.ByteInterleavedRaster.putByteData(ByteInterleavedRaster.java:814)
        at sun.awt.image.ByteInterleavedRaster.setDataElements(ByteInterleavedRaster.java:675)
        at sun.awt.image.ByteInterleavedRaster.setDataElements(ByteInterleavedRaster.java:648)
        at sun.awt.image.ByteInterleavedRaster.setRect(ByteInterleavedRaster.java:1180)
        at gov.nasa.worldwind.geopkg.mosaic.OgcGeoPackageReader.read(OgcGeoPackageReader.java:162)
@emxsys emxsys added the bug label Jan 12, 2017
@emxsys emxsys added this to the v0.1.0 milestone Jan 12, 2017
@emxsys emxsys self-assigned this Jan 12, 2017
emxsys added a commit that referenced this issue Jan 19, 2017
…aic instead of copying data.

- The OGC GeoPackage tile sets can contain a mix of PNG and JPEG tiles; copying the image data with differing SampleModels is not safe.
- Resolves issue #2.
- Resolves issue #1.
@emxsys
Copy link
Contributor Author

emxsys commented Jan 20, 2017

Fixed the OgcGeoPackageReader to merge tiles into a mosaic irrespective of the image type of the individual tiles.

@emxsys emxsys closed this as completed Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant