[Geoserver-devel] [jira] (GEOS-6402) DXF format_options:layers

Jonas Reinhardt created an issue

GeoServer / BugGEOS-6402

DXF format_options:layers

Issue Type:

BugBug

Affects Versions:

2.4.5

Assignee:

Andrea Aime

Created:

17/Mar/14 7:16 AM

Environment:

Windows

Labels:

dxf-core

Priority:

MinorMinor

Reporter:

Jonas Reinhardt

We have a dataset which contains polygons having 4 distinct status(=colors).
Trying to export this to dxf we are trying out the format_options.
The format_options=colors:1 gives us red lines as aspected.
We tried many variants of format_options=layers:A (layers:'A*, layers:“A”,“B” etc) and we always get the same error:

java.lang.ClassCastException: java.util.ArrayList cannot be cast to java.lang.String

I believe this is from the below line of code in DXFOutputFormat.java
String layerNames = (String) gft.getFormatOptions().get(“LAYERS”);

If the above is not a bug, what is the syntax of the format_option:layers ?

And a related question, how do you retrieve a multi-layer-dxf-file?
The request we use looks like:

.../geoserver/wfs?REQUEST=GetFeature&TYPENAME=Store:GeoServerLayer&format_options=layers:A;colors:1&outputFormat=dxf

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo