[Geoserver-devel] SVG, jpeg and bmp problem

Dear friends
Firt of all, I don’t know it this is the correct forum, so excuse me it not.
I’m configuring geoserver 1.2.4.
I can see images in png or x-png.
If i request an image with format SVG i get an error (error 500) and in the console:

" 797672 [FINA] org.vfny.geoserver.ServiceException - java.io.IOException: UNCAUGHT exception: No SVG Feature writer
defined for class com.vividsolutions.jts.geom.Geometry"

If i request jpeg i get also error 500 and in the console:

3886906 [INFO] org.vfny.geoserver.servlets.AbstractService - Had an undefined error: The provided image cannot be encode
d using: com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageWriter
3886969 [FINA] org.vfny.geoserver.ServiceException - javax.imageio.IIOException: The provided image cannot be encoded us
ing: com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageWriter

Where can be the problem?

Thank you in advance

Jesús de Diego

Dear friends
Firt of all, I don't know it this is the correct forum, so excuse me it
not.
I'm configuring geoserver 1.2.4.

This forum is fine. geoserver-users might be a bit better, but we are not
strict about what goes where.

I can see images in png or x-png.
If i request an image with format SVG i get an error (error 500) and in
the console:

" 797672 [FINA] org.vfny.geoserver.ServiceException - java.io.IOException:
UNCAUGHT exception: No SVG Feature writer
defined for class com.vividsolutions.jts.geom.Geometry"

Are you by chance using oracle? It's kind of incompatible with the SVG
writer at the moment, as it does a poor job of reporting its type.
Basically the SVG writer should be rewritten to better deal with this (and
to deal with styles, as it is limited there as well).

If i request jpeg i get also error 500 and in the console:

3886906 [INFO] org.vfny.geoserver.servlets.AbstractService - Had an
undefined error: The provided image cannot be encode
d using: com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageWriter
3886969 [FINA] org.vfny.geoserver.ServiceException -
javax.imageio.IIOException: The provided image cannot be encoded us
ing: com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageWriter

This sounds like an jai/imageio problem. Which version of those libraries
are you using? Are you using the release candidate (rc), one? I remember
it having some problems. You may try the older ones, as I definitely have
had success getting jpeg images with those.

best regards,

Chris

Where can be the problem?

Thank you in advance

Jesús de Diego

--

On Tue, 2004-12-28 at 16:44 +0100, jdiego@anonymised.com wrote:

Dear friends
Firt of all, I don't know it this is the correct forum, so excuse me
it not.

it is :slight_smile:

I'm configuring geoserver 1.2.4.
I can see images in png or x-png.
If i request an image with format SVG i get an error (error 500) and
in the console:

" 797672 [FINA] org.vfny.geoserver.ServiceException -
java.io.IOException: UNCAUGHT exception: No SVG Feature writer
defined for class com.vividsolutions.jts.geom.Geometry"

This means that the geometry attribute of the layer you're consulting is
returning Geometry as its type. Geometry is not a concrete geometry
type, but the abstract parent of the geometry hierarchy as defined in
SFS.
So, the SVG encoder has only "writers" for concrete geometry types (such
as Point, MultiPoint, LineString, etc). This means that the SVG encoder
SHOULD be able to encode your geometries, since although the featuretype
is reporting its geometry attribute to be of type "Geometry", the
concrete geometry instances DO are of a given concrete type. So it is a
bug in the SVG encoder. Would you be so kind of reporting it as a jira
task so we can track it an may be resolve it? :slight_smile: to do that, just go to
http://jira.codehaus.org/secure/BrowseProject.jspa?id=10311, create an
account for you and create the issue for the WMS component.

Just curious: what data repository are you working over? mysql, oracle?

If i request jpeg i get also error 500 and in the console:

3886906 [INFO] org.vfny.geoserver.servlets.AbstractService - Had an
undefined error: The provided image cannot be encode
d using: com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageWriter
3886969 [FINA] org.vfny.geoserver.ServiceException -
javax.imageio.IIOException: The provided image cannot be encoded us
ing: com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageWriter

Please make sure you have properly installed JAI and JAI/Image-io jre
extensions.

Where can be the problem?

Thank you in advance

Jesús de Diego

Best regards,

Gabriel.