Hello
Wms spec says that i can use only a point in request - GetFeatureInfo. When i define icons for my points layer i have problem. User could not clicked in point where he get request, he almost all the time get empty answer.
Could i deffine a buffer for this type of request?! When user will clic on my icon he get the request for this point!?
--
Daniel
Best regards,
Daniel Dubiel ha scritto:
Hello
Wms spec says that i can use only a point in request - GetFeatureInfo. When i define icons for my points layer i have problem. User could not clicked in point where he get request, he almost all the time get empty answer.
Could i deffine a buffer for this type of request?! When user will clic on my icon he get the request for this point!?
By WMS spec, you cannot define a buffer size, and GeoServer does not
have any vendor parameter to allow you to specify one.
There are already quite some GetFeatureInfo improvement requests
related to your problem, for example:
http://jira.codehaus.org/browse/GEOS-1434
http://jira.codehaus.org/browse/GEOS-880
http://jira.codehaus.org/browse/GEOS-1008
Unfortunately so far none of the companies/developers supporting
GeoServer has had the time or interest to work on them (I'm assigned
to all of them just because I'm the default target for all new
issues). If you really need that feature now you still have two
options, that is, trying to code it up yourself (patches are more
than welcomed) or ask someone to do it for you, there are
commercial support options available at:
http://geoserver.org/display/GEOS/Commercial+Support
Cheers
Andrea
Hello
Ok, thx very much for the answer. I think that i only could not find that option.
By WMS spec, you cannot define a buffer size, and GeoServer does not
have any vendor parameter to allow you to specify one.
There are already quite some GetFeatureInfo improvement requests
related to your problem, for example:
http://jira.codehaus.org/browse/GEOS-1434
http://jira.codehaus.org/browse/GEOS-880
http://jira.codehaus.org/browse/GEOS-1008
Unfortunately so far none of the companies/developers supporting
GeoServer has had the time or interest to work on them (I'm assigned
to all of them just because I'm the default target for all new
issues). If you really need that feature now you still have two
options, that is, trying to code it up yourself (patches are more
than welcomed) or ask someone to do it for you, there are
commercial support options available at:
http://geoserver.org/display/GEOS/Commercial+Support
--
Pozdrawiam,
=========================
Daniel Dubiel
Programista
Departament Informatyki
tel: +48 32 33 25 629
email: D.Dubiel@anonymised.com
----------------------------------------------------
WASKO S.A.
ul. Berbeckiego 6
44-100 Gliwice
----------------------------------------------------
Dokument ten zawiera informacje poufne, które mogą być również objęte
tajemnicą służbową. Jest on przeznaczony do wyłącznego użytku adresata.
Jeśli nie są Państwo jego adresatem, to wszelkie rozpowszechnianie,
dystrybucja, reprodukcja, kopiowanie, publikacja lub wykorzystanie tego
dokumentu lub informacji jest zabronione. Jeśli otrzymali Państwo tę
wiadomość przez pomyłkę, prosimy o bezzwłoczne skontaktowanie się z nami
oraz usunięcie wiadomości z Państwa komputera.
This e-mail may contain confidential and/or privileged information. If you
are not intended recipient (or have received this e-mail by mistake) please
notify the sender immediately and destroy this e-mail. Any unauthorized
copying, disclosure or distribution of the material in this e-mail is
strictly forbidden.
I am running geoserver 1.6.3 and 52 North's WPS 1.0 under Tomcat. Most of the time everything works fine. However, occasionally, when the WPS makes a WFS call to geoserver it has trouble reading the results. The error from the WPS is
Jun 4, 2008 10:02:13 AM org.geotools.xml.gml.GMLComplexTypes$CoordinatesType getValue
WARNING: java.lang.NumberFormatException: For input string: "V.00650868"
Jun 4, 2008 10:02:13 AM org.geotools.xml.gml.GMLComplexTypes$CoordinatesType getValue
WARNING: Double = 'V.00650868' 1/2 Touples = 49/368
Exception in thread "Feature Collection Buffer" java.lang.NumberFormatException: For input string: "V.00650868"
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
at org.geotools.xml.gml.GMLComplexTypes$CoordinatesType.getValue(GMLComplexTypes.java:3980)
at org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:156)
at org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:264)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:108)
at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:81)
at org.geotools.xml.gml.FCBuffer.run(FCBuffer.java:370)
java.io.IOException: org.xml.sax.SAXException: Timeout
at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:329)
at org.n52.wps.io.xml.GML2BasicParser.parseXML(GML2BasicParser.java:184)
at org.n52.wps.io.xml.GML2BasicParser.parseXML(GML2BasicParser.java:124)
at org.n52.wps.io.xml.GML2BasicParser.parse(GML2BasicParser.java:224)
at org.n52.wps.server.request.InputHandler.handleComplexValueReference(InputHandler.java:273)
at org.n52.wps.server.request.InputHandler.<init>(InputHandler.java:97)
at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:264)
at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:67)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.xml.sax.SAXException: Timeout
at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:322)
... 12 more
Somehow, the data being returned from te WFS to the WPS is getting corrupted. My guess is that it is an issue with java.text.format.NumberFormat. We have seen problems with this class since it is not thread safe and must be synchronized. This is only a guess, any thoughts? I'm not sure exactly where the problems occurs: in geoserver generating and sending the data or in wps receiving and parsing the data, that is why I have cross posted both mailing lists. Any help, ideas, or guidance would be appreciated.
TNX David
--
David R Robison
Open Roads Consulting, Inc.
708 S. Battlefield Blvd., Chesapeake, VA 23322
phone: (757) 546-3401
e-mail: drrobison@anonymised.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/book_detail.php?id=2579
David R Robison ha scritto:
I am running geoserver 1.6.3 and 52 North's WPS 1.0 under Tomcat. Most of the time everything works fine. However, occasionally, when the WPS makes a WFS call to geoserver it has trouble reading the results. The error from the WPS is
Jun 4, 2008 10:02:13 AM org.geotools.xml.gml.GMLComplexTypes$CoordinatesType getValue
WARNING: java.lang.NumberFormatException: For input string: "V.00650868"
Jun 4, 2008 10:02:13 AM org.geotools.xml.gml.GMLComplexTypes$CoordinatesType getValue
WARNING: Double = 'V.00650868' 1/2 Touples = 49/368
Exception in thread "Feature Collection Buffer" java.lang.NumberFormatException: For input string: "V.00650868"
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
at org.geotools.xml.gml.GMLComplexTypes$CoordinatesType.getValue(GMLComplexTypes.java:3980)
at org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.java:156)
at org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:264)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:108)
at org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:81)
at org.geotools.xml.gml.FCBuffer.run(FCBuffer.java:370)
java.io.IOException: org.xml.sax.SAXException: Timeout
at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:329)
at org.n52.wps.io.xml.GML2BasicParser.parseXML(GML2BasicParser.java:184)
at org.n52.wps.io.xml.GML2BasicParser.parseXML(GML2BasicParser.java:124)
at org.n52.wps.io.xml.GML2BasicParser.parse(GML2BasicParser.java:224)
at org.n52.wps.server.request.InputHandler.handleComplexValueReference(InputHandler.java:273)
at org.n52.wps.server.request.InputHandler.<init>(InputHandler.java:97)
at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:264)
at org.n52.wps.server.request.ExecuteRequest.call(ExecuteRequest.java:67)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.xml.sax.SAXException: Timeout
at org.geotools.xml.gml.FCBuffer.hasNext(FCBuffer.java:322)
... 12 more
Somehow, the data being returned from te WFS to the WPS is getting corrupted. My guess is that it is an issue with java.text.format.NumberFormat. We have seen problems with this class since it is not thread safe and must be synchronized. This is only a guess, any thoughts? I'm not sure exactly where the problems occurs: in geoserver generating and sending the data or in wps receiving and parsing the data, that is why I have cross posted both mailing lists. Any help, ideas, or guidance would be appreciated.
I quickly looked in the GML2 generator, the NumberFormat is instantiated
in CoordinateWriter class when the object is created, and I don't see
any caching of the CoordinateWriter, so this one should be thread safe
(each thread ends up creating its own CoordinateWriter).
Same goes for the parser, it's actually using Double.parseDouble(t)
which should be thread safe.
I'm more curious of this "V.00650868" value. Is it a possibly legitimage
value in your GML? Maybe there is an unclosed tag somewhere, don't know.
Can you double check?
Cheers
Andrea