Hi,
I'd like to affect icons to generated KML. I wrote a sld file :
<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">
<NamedLayer>
<Name>test</Name>
<UserStyle>
<Title>Skeleton</Title>
<Abstract>A skeleton style</Abstract>
<FeatureTypeStyle>
<Rule>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple"
xlink:href="http://maps.google.com/mapfiles/kml/pal3/icon55.png"/>
<Format>image/png</Format>
</ExternalGraphic>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
but when I lauch the service I get :
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1" > <ServiceException>
java.lang.NullPointerException
null
</ServiceException></ServiceExceptionReport>
(it works with standard styles i.e. with no ExternalGraphic stuff)
Has anybody an idea ?
Cheers
Laurent
--
View this message in context: http://www.nabble.com/styling-KML-tp19269673p19269673.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Hi Laurent,
The full exception stack trace would help diagnose your problem. It should show up on the console or in the error log when you execute the request.
-Justin
LaurentPierre wrote:
Hi,
I'd like to affect icons to generated KML. I wrote a sld file :
<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">
<NamedLayer>
<Name>test</Name>
<UserStyle>
<Title>Skeleton</Title>
<Abstract>A skeleton style</Abstract>
<FeatureTypeStyle>
<Rule>
<PointSymbolizer>
<Graphic>
<ExternalGraphic>
<OnlineResource xlink:type="simple"
xlink:href="http://maps.google.com/mapfiles/kml/pal3/icon55.png"/>
<Format>image/png</Format>
</ExternalGraphic>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
but when I lauch the service I get :
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1" > <ServiceException>
java.lang.NullPointerException
null
</ServiceException></ServiceExceptionReport>
(it works with standard styles i.e. with no ExternalGraphic stuff)
Has anybody an idea ?
Cheers
Laurent
--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org
Hi,
Somebody already had this problem with layers Muiti-Linestring in geoserver
02 Set 10:43:32 INFO [geoserver.filters] - Not compressing output for mimetype: image/png
02 Set 10:43:32 ERROR [geotools.rendering] - Could not create the next feature:IllegalAttribute: com.vividsolutions.jts.geom.MultiLineString , but got com.vi
vidsolutions.jts.geom.LineString
java.util.NoSuchElementException: Could not create the next feature:IllegalAttribute: com.vividsolutions.jts.geom.MultiLineString , but got com.vividsolution
s.jts.geom.LineString
at org.geotools.data.store.FeatureReaderIterator.next(FeatureReaderIterator.java:72)
at org.geoserver.feature.RetypingFeatureCollection$RetypingIterator.next(RetypingFeatureCollection.java:114)
.,._
Best regards,
Fernando Quadro
http://www.fernandoquadro.com.br
fsquadro@anonymised.com
Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live Search Maps! Experimente já!
Hi Fernando,
Are you using Postgis? I have seen this problem occur when the geometry_columns entry for a table has a type of 'MULTILINESTRING', but actually contains just 'LINESTRING' geometries.
Assuming this is the problem in your case i suggest you update the geometry columns entry (if your data only contains LineString data), or change it to 'GEOMETRY' if you need to store geometries of different types.
-Justin
Fernando Quadro wrote:
Hi,
Somebody already had this problem with layers Muiti-Linestring in geoserver
02 Set 10:43:32 INFO [geoserver.filters] - Not compressing output for mimetype: image/png
02 Set 10:43:32 ERROR [geotools.rendering ] - Could not create the next feature:IllegalAttr ibute: com.vividsolutions. jts.geom. MultiLineString , but got com.vi
vidsolutions. jts.geom. LineString
java.util.NoSuchEle mentException: Could not create the next feature:IllegalAttr ibute: com.vividsolutions. jts.geom. MultiLineString , but got com.vividsolution
s.jts.geom.LineStri ng
at org.geotools. data.store. FeatureReaderIte rator.next( FeatureReaderIte rator.java: 72)
at org.geoserver. feature.Retyping FeatureCollectio n$RetypingIterat or.next(Retyping FeatureCollectio n.java:114)
__._,_.___
Best regards,
Fernando Quadro
http://www.fernandoquadro.com.br
fsquadro@anonymised.com <mailto:fsquadro@anonymised.com>
Veja mapas e encontre as melhores rotas para fugir do trânsito com o Live Search Maps! Experimente já! <http://www.livemaps.com.br/index.aspx?tr=true>
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org
In fact the generated KML looks like :
<?xml version="1.0" encoding="UTF-8"?>
<kml>
<Document>
<name>edfgeo:clientassoc</name>
<Style id="GeoServerStyleclientassoc.1515">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.5203">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.6743">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.9349">
<IconStyle>
<Icon/>
</IconStyle>
.......
with no information in it
strange no ?
Laurent
--
View this message in context: http://www.nabble.com/styling-KML-tp19269673p19271344.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Hi Laurent,
This is happening because an error is occurring while trying to encode the feature, in particular the icon.
We need the java stack trace to determine what though. Search through the log for java.lang.NullPointerException and include the lines below it and we should be able to tell you what the problem is.
-Justin
LaurentPierre wrote:
In fact the generated KML looks like :
<?xml version="1.0" encoding="UTF-8"?>
<kml>
<Document>
<name>edfgeo:clientassoc</name>
<Style id="GeoServerStyleclientassoc.1515">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.5203">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.6743">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.9349">
<IconStyle>
<Icon/>
</IconStyle>
.......
with no information in it
strange no ?
Laurent
--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org
Hi,
I checked the file server.log (Glassfish) but I couldn't find any error when
the service is called.
Justin Deoliveira-6 wrote:
Hi Laurent,
This is happening because an error is occurring while trying to encode
the feature, in particular the icon.
We need the java stack trace to determine what though. Search through
the log for java.lang.NullPointerException and include the lines below
it and we should be able to tell you what the problem is.
-Justin
LaurentPierre wrote:
In fact the generated KML looks like :
<?xml version="1.0" encoding="UTF-8"?>
<kml>
<Document>
<name>edfgeo:clientassoc</name>
<Style id="GeoServerStyleclientassoc.1515">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.5203">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.6743">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.9349">
<IconStyle>
<Icon/>
</IconStyle>
.......
with no information in it
strange no ?
Laurent
--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
View this message in context: http://www.nabble.com/styling-KML-tp19269673p19273768.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Hi Justin,
I eventally found that in my logs :
[#|2008-09-03T12:01:02.501+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-3;|03
sept. 12:01:02 WARN [geoserver.kml] - Failure tranforming feature to
KML:clientassoc.55792
java.lang.IllegalArgumentException: L'argument "value" ne doit pas être nul.
at
org.geotools.util.SoftValueHashMap.ensureNotNull(SoftValueHashMap.java:103)
at org.geotools.util.SoftValueHashMap.put(SoftValueHashMap.java:226)
at
org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:308)
at
org.vfny.geoserver.wms.responses.map.kml.KMLVectorTransformer$KMLTranslator.encodeStyle(KMLVectorTransformer.java:414)
I join a bigger extract http://www.nabble.com/file/p19286467/geoserver.log
geoserver.log
Cheers
Laurent
LaurentPierre wrote:
Hi,
I checked the file server.log (Glassfish) but I couldn't find any error
when the service is called.
Justin Deoliveira-6 wrote:
Hi Laurent,
This is happening because an error is occurring while trying to encode
the feature, in particular the icon.
We need the java stack trace to determine what though. Search through
the log for java.lang.NullPointerException and include the lines below
it and we should be able to tell you what the problem is.
-Justin
LaurentPierre wrote:
In fact the generated KML looks like :
<?xml version="1.0" encoding="UTF-8"?>
<kml>
<Document>
<name>edfgeo:clientassoc</name>
<Style id="GeoServerStyleclientassoc.1515">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.5203">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.6743">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.9349">
<IconStyle>
<Icon/>
</IconStyle>
.......
with no information in it
strange no ?
Laurent
--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
View this message in context: http://www.nabble.com/styling-KML-tp19269673p19286467.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Hi Laurent,
Thanks for the log. It is still not exactly sure what is going on ... i assume a problem with the style you are using. Can you attach the SLD for the style you are using for that layer. Thanks.
-Justin
LaurentPierre wrote:
Hi Justin,
I eventally found that in my logs :
[#|2008-09-03T12:01:02.501+0200|INFO|sun-appserver9.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-3;|03
sept. 12:01:02 WARN [geoserver.kml] - Failure tranforming feature to
KML:clientassoc.55792
java.lang.IllegalArgumentException: L'argument "value" ne doit pas être nul.
at
org.geotools.util.SoftValueHashMap.ensureNotNull(SoftValueHashMap.java:103)
at org.geotools.util.SoftValueHashMap.put(SoftValueHashMap.java:226)
at
org.geotools.renderer.style.SLDStyleFactory.createStyle(SLDStyleFactory.java:308)
at
org.vfny.geoserver.wms.responses.map.kml.KMLVectorTransformer$KMLTranslator.encodeStyle(KMLVectorTransformer.java:414)
I join a bigger extract http://www.nabble.com/file/p19286467/geoserver.log
geoserver.log
Cheers
Laurent
LaurentPierre wrote:
Hi,
I checked the file server.log (Glassfish) but I couldn't find any error
when the service is called.
Justin Deoliveira-6 wrote:
Hi Laurent,
This is happening because an error is occurring while trying to encode the feature, in particular the icon.
We need the java stack trace to determine what though. Search through the log for java.lang.NullPointerException and include the lines below it and we should be able to tell you what the problem is.
-Justin
LaurentPierre wrote:
In fact the generated KML looks like :
<?xml version="1.0" encoding="UTF-8"?>
<kml>
<Document>
<name>edfgeo:clientassoc</name>
<Style id="GeoServerStyleclientassoc.1515">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.5203">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.6743">
<IconStyle>
<Icon/>
</IconStyle>
<Style id="GeoServerStyleclientassoc.9349">
<IconStyle>
<Icon/>
</IconStyle>
.......
with no information in it
strange no ?
Laurent
--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org
Hi Justin,
Here's the style http://www.nabble.com/file/p19368709/test.sld test.sld .
The funniest thing is that it works with my Geoserver at home (1.6.2) but
doesn't at work (1.6.4).
Cheers
Laurent
--
View this message in context: http://www.nabble.com/styling-KML-tp19269673p19368709.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Hi Laurent,
Strange indeed. I checked out the style and it looks fine... It must be something in combination with the data you are using. Any information about the dataset, format, geometry type, etc... would be helpful.
-Justin
LaurentPierre wrote:
Hi Justin,
Here's the style http://www.nabble.com/file/p19368709/test.sld test.sld . The funniest thing is that it works with my Geoserver at home (1.6.2) but
doesn't at work (1.6.4).
Cheers
Laurent
--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org
Hi Justin,
I tried to apply the same style with 'tiger:poi' from the examples coming
with Geoserver and it didn't work either. I tried too, with 1.6.2, to
affect different icons depending on the value of an attribute with no
succes.
Will you be at FOSS4G ?
Cheers
Laurent
Justin Deoliveira-6 wrote:
Hi Laurent,
Strange indeed. I checked out the style and it looks fine... It must be
something in combination with the data you are using. Any information
about the dataset, format, geometry type, etc... would be helpful.
-Justin
LaurentPierre wrote:
Hi Justin,
Here's the style http://www.nabble.com/file/p19368709/test.sld test.sld
.
The funniest thing is that it works with my Geoserver at home (1.6.2) but
doesn't at work (1.6.4).
Cheers
Laurent
--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
View this message in context: http://www.nabble.com/styling-KML-tp19269673p19414889.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
LaurentPierre wrote:
Hi Justin,
I tried to apply the same style with 'tiger:poi' from the examples coming
with Geoserver and it didn't work either. I tried too, with 1.6.2, to
affect different icons depending on the value of an attribute with no
succes.
Hmmm... i am not sure... running out of ideas. I just tried that style with the tiger:poi layer and the custom icon showed up. However... i noticed that some wierd stuff happened. The icon i specified I got in google earth does not match the icon i see when i access it directly in the browser... i am not sure if this is intended google earth behaviour or not.
I wonder if this might be a google earth issue? Out of curiosity which version are you using?
Will you be at FOSS4G ?
Yes, I will be. Will you be attending?
Cheers
Laurent
Justin Deoliveira-6 wrote:
Hi Laurent,
Strange indeed. I checked out the style and it looks fine... It must be something in combination with the data you are using. Any information about the dataset, format, geometry type, etc... would be helpful.
-Justin
LaurentPierre wrote:
Hi Justin,
Here's the style http://www.nabble.com/file/p19368709/test.sld test.sld
. The funniest thing is that it works with my Geoserver at home (1.6.2) but
doesn't at work (1.6.4).
Cheers
Laurent
--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org
In fact I try to use it with openlayers but I looked in the KML file to
check.
Will you be at FOSS4G ?
Yes, I will be. Will you be attending?
Yes I will, we could discuss the problem then.
Cheers
Laurent
--
View this message in context: http://www.nabble.com/styling-KML-tp19269673p19438338.html
Sent from the GeoServer - User mailing list archive at Nabble.com.