From: <ji...@co...> - 2005-02-22 21:50:52
|
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:=20 WMS Versions: 1.2.5 Assignee: Gabriel Rold=E1n 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=3D"1.0" encoding=3D"ISO-8859-1"?> <StyledLayerDescriptor version=3D"1.0.0" xsi:schemaLocation=3D"http://www.o= pengis.net/sld StyledLayerDescriptor.xsd" xmlns=3D"http://www.opengis.net/s= ld" xmlns:ogc=3D"http://www.opengis.net/ogc" xmlns:xlink=3D"http://www.w3.o= rg/1999/xlink" xmlns:xsi=3D"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>=20 <Name>Label_Style_1</Name>=20 <Rule>=20 <Name>Label</Name>=20 <MinScaleDenominator>0</MinScaleDenominator>=20 <MaxScaleDenominator>3000000</MaxScaleDenominator>=20 <TextSymbolizer>=20 <Label> <ogc:PropertyName>name</ogc:PropertyName> </Label>=20 <Font>=20 <CssParameter name=3D"font-family">Arial</CssParameter> <CssParameter name=3D"font-family">Sans-Serif</CssParameter>=20 <CssParameter name=3D"font-style">italic</CssParameter> <CssParameter name=3D"font-weight">bold</CssParameter> <CssParameter name=3D"font-size">11</CssParameter>=20 <CssParameter name=3D"font-color">#222222</CssParameter>=20 </Font>=20 <Fill> <CssParameter name=3D"fill">#FFFFFF</CssParameter> </Fill>=20 <LabelPlacement>=20 <PointPlacement auto=3D"true">=20 </PointPlacement>=20 </LabelPlacement>=20 </TextSymbolizer>=20 </Rule>=20 </FeatureTypeStyle>=20 </UserStyle> </NamedLayer> </StyledLayerDescriptor> -- Table in PostGiS 1;"Phoenix";"SRID=3D-1;MULTIPOINT(-111.709955998731 33.8250466844776)" 2;"Test";"SRID=3D-1;MULTIPOINT(-110.425800492761 32.5408911785075)" 0;"test1";"SRID=3D-1;MULTIPOINT(-114.278267010672 33.0545533808955)" -- Generate sql SELECT gid, AsText(force_2d("the_geom")), "name" FROM "city" WHERE "the_geo= m" && GeometryFromText('POLYGON ((-130 24, -130 50, -66 50, -66 24, -130 24= ))', -1) AND intersects("the_geom", GeometryFromText('POLYGON ((-130 24, -1= 30 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.geot= ools. map.DefaultMapLayer@5e7663 org.geotools.data.DataSourceException: Could not parse WKT at org.geotools.data.jdbc.attributeio.WKTAttributeIO.read(WKTAttrib= uteIO .java:79) at org.geotools.data.jdbc.QueryData.read(QueryData.java:183) at org.geotools.data.jdbc.JDBCFeatureReader.readFeature(JDBCFeature= Reade r.java:106) at org.geotools.data.jdbc.JDBCFeatureReader.next(JDBCFeatureReader.= java: 86) at org.geotools.renderer.lite.LiteRenderer.processStylers(LiteRende= rer.j ava:900) at org.geotools.renderer.lite.LiteRenderer.paint(LiteRenderer.java:= 498) at org.vfny.geoserver.responses.wms.map.JAIMapResponse.execute(JAIM= apRes ponse.java:343) at org.vfny.geoserver.responses.wms.map.GetMapDelegate.execute(GetM= apDel egate.java:148) at org.vfny.geoserver.responses.wms.map.GetMapDelegate.execute(GetM= apDel egate.java:108) at org.vfny.geoserver.responses.wms.GetMapResponse.execute(GetMapRe= spons e.java:74) at org.vfny.geoserver.servlets.AbstractService.doService(AbstractSe= rvice .java:362) at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractServic= e.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(WmsDisp= atche r.java:137) at org.vfny.geoserver.servlets.wms.WmsDispatcher.doGet(WmsDispatche= r.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.jav= a:358 ) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebAppl= icati onHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.j= ava:5 67) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplic= ation 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:9= 61) 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(Unkno= wn 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(WKTAttrib= uteIO .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 |