Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/GEOS-297
Here is an overview of the issue:
---------------------------------------------------------------------
Key: GEOS-297
Summary: Fail to render label
Type: Bug
Status: Open
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: GeoServer
Components:
WMS
Versions:
1.2.5
Assignee: Gabriel Roldán
Reporter: John Xiao
Created: Tue, 22 Feb 2005 4:49 PM
Updated: Tue, 22 Feb 2005 4:49 PM
Environment: Window
Description:
<!-- label.sld -->
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- a named layer is the basic building block of an sld document -->
<NamedLayer>
<Name></Name>
<title></title>
<abstract></abstract>
<UserStyle>
<Name>Label_Style</Name>
<Title>urban_places_label</Title>
<FeatureTypeStyle>
<Name>Label_Style_1</Name>
<Rule>
<Name>Label</Name>
<MinScaleDenominator>0</MinScaleDenominator>
<MaxScaleDenominator>3000000</MaxScaleDenominator>
<TextSymbolizer>
<Label> <ogc:PropertyName>name</ogc:PropertyName> </Label>
<Font>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-family">Sans-Serif</CssParameter>
<CssParameter name="font-style">italic</CssParameter>
<CssParameter name="font-weight">bold</CssParameter>
<CssParameter name="font-size">11</CssParameter>
<CssParameter name="font-color">#222222</CssParameter>
</Font>
<Fill>
<CssParameter name="fill">#FFFFFF</CssParameter>
</Fill>
<LabelPlacement>
<PointPlacement auto="true">
</PointPlacement>
</LabelPlacement>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
-- Table in PostGiS
1;"Phoenix";"SRID=-1;MULTIPOINT(-111.709955998731 33.8250466844776)"
2;"Test";"SRID=-1;MULTIPOINT(-110.425800492761 32.5408911785075)"
0;"test1";"SRID=-1;MULTIPOINT(-114.278267010672 33.0545533808955)"
-- Generate sql
SELECT gid, AsText(force_2d("the_geom")), "name" FROM "city" WHERE "the_geom" && GeometryFromText('POLYGON ((-130 24, -130 50, -66 50, -66 24, -130 24))', -1) AND intersects("the_geom", GeometryFromText('POLYGON ((-130 24, -130 50, -66 50,-66 24, -130 24))', -1))
-- Result from running sql using pgAdmin III Query
2;"MULTIPOINT(-110.425800492761 32.5408911785075)";"Test"
0;"MULTIPOINT(-114.278267010672 33.0545533808955)";"test1"
1;"MULTIPOINT(-111.709955998731 33.8250466844776)";"Phoenix"
-- Exception from GeoServer
26482860 [WARNING] org.geotools.renderer.lite.LiteRenderer - Exception org.geot
ools.data.DataSourceException: Could not parse WKT rendering layer org.geotools.
map.DefaultMapLayer@anonymised.com
org.geotools.data.DataSourceException: Could not parse WKT
at org.geotools.data.jdbc.attributeio.WKTAttributeIO.read(WKTAttributeIO
.java:79)
at org.geotools.data.jdbc.QueryData.read(QueryData.java:183)
at org.geotools.data.jdbc.JDBCFeatureReader.readFeature(JDBCFeatureReade
r.java:106)
at org.geotools.data.jdbc.JDBCFeatureReader.next(JDBCFeatureReader.java:
86)
at org.geotools.renderer.lite.LiteRenderer.processStylers(LiteRenderer.j
ava:900)
at org.geotools.renderer.lite.LiteRenderer.paint(LiteRenderer.java:498)
at org.vfny.geoserver.responses.wms.map.JAIMapResponse.execute(JAIMapRes
ponse.java:343)
at org.vfny.geoserver.responses.wms.map.GetMapDelegate.execute(GetMapDel
egate.java:148)
at org.vfny.geoserver.responses.wms.map.GetMapDelegate.execute(GetMapDel
egate.java:108)
at org.vfny.geoserver.responses.wms.GetMapResponse.execute(GetMapRespons
e.java:74)
at org.vfny.geoserver.servlets.AbstractService.doService(AbstractService
.java:362)
at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.jav
a:235)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.vfny.geoserver.servlets.wms.WmsDispatcher.doResponse(WmsDispatche
r.java:137)
at org.vfny.geoserver.servlets.wms.WmsDispatcher.doGet(WmsDispatcher.jav
a:106)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358
)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
onHandler.java:294)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
67)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
Context.java:525)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
at org.mortbay.http.HttpServer.service(HttpServer.java:879)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
197)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:276)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
Caused by: com.vividsolutions.jts.io.ParseException: Unknown type: PHOENIX
at com.vividsolutions.jts.io.WKTReader.readGeometryTaggedText(Unknown So
urce)
at com.vividsolutions.jts.io.WKTReader.read(Unknown Source)
at com.vividsolutions.jts.io.WKTReader.read(Unknown Source)
at org.geotools.data.jdbc.attributeio.WKTAttributeIO.read(WKTAttributeIO
.java:75)
... 30 more
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira