Hi,
just tried, there seems to be something weird going on with the cascaded
server,
if I ask the caps from a browser I get what looks like a good output, but
if I ask from the command line using curl I get the following, which is
invalid:
<!--Ortho-->
<Layer queryable="0">
<Name>urbis:ortho2012</Name>
<Title>Ortho 2012</Title>
<Abstract/>
<KeywordList/>
<SRS>EPSG:31370</SRS>
<!--WKT definition of this CRS:
PROJCS["Belge 1972 / Belgian Lambert 72",
GEOGCS["Belge 1972",
DATUM["Reseau National Belge 1972",
SPHEROID["International 1924", 6378388.0, 297.0,
AUTHORITY["EPSG","7022"]],
TOWGS84[-106.8686, 52.2978, -103.7239, 0.3366, 0.457, -1.8422,
-1.2747],
AUTHORITY["EPSG","6313"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH],
AUTHORITY["EPSG","4313"]],
PROJECTION["Lambert_Conformal_Conic_2SP", AUTHORITY["EPSG","9802"]],
PARAMETER["central_meridian", 4.367486666666666],
PARAMETER["latitude_of_origin", 90.0],
PARAMETER["standard_parallel_1", 51.166667233333335],
PARAMETER["false_easting", 150000.013],
PARAMETER["false_northing", 5400088.438],
PARAMETER["scale_factor", 1.0],
PARAMETER["standard_parallel_2", 49.833333900000014],
UNIT["m", 1.0],
AXIS["Easting", EAST],
AXIS["Northing", NORTH],
AUTHORITY["EPSG","31370"]]-->
*<LatLonBoundingBox minx="4,227359329868297"
miny="50,753856192895825" maxx="4,496646767643846"
maxy="50,92307683756225"/>*
<BoundingBox SRS="EPSG:31370" minx="140.132" miny="160.409"
maxx="159.066" maxy="179.224"/>
<MetadataURL type="ISO19115:2003">
<Format>text/plain</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple" xlink:href="
http://svappcuvl001.sta.srv.cirb.lan:8080/geonetwork/srv/en/csw?service=CSW&Request=GetRecordById&elementSetName=full&outputSchema=http%3A%2F%2Fwww.isotc211.org%2F2005%2Fgmd&id=d820fd46-2b21-41ce-901e-76b60d2dd33a
"/>
</MetadataURL>
</Layer>
By the looks for the results it seems that the capabilities output was hand
edited too.
I'd contact the administrator of that service and check what's going on.
Cheers
Andrea
On Thu, May 8, 2014 at 9:13 AM, Gillard Nicolas <ngill...@cirb.irisnet.be>wrote:
> Hello,
>
>
>
> I’m working on GeoServer and I am trying to add a new store via "New WMS
> Connection".
> When I submit the form, I get the following error.
>
> Connection test failed: For input string: "4.227359329868297"
>
> When I try to add a map server in a simple java test, I get the same error.
>
>
>
>
>
> Below you will find an example of a simple test with the WMS who seems
> problematic.
>
>
>
> Do you have any idea about the cause of this problem?
>
> Thank you in advance
>
>
>
>
>
> import java.io.IOException;
>
> import java.net.MalformedURLException;
>
> import java.net.URL;
>
>
>
> import org.geotools.data.wms.WebMapServer;
>
> import org.geotools.ows.ServiceException;
>
> import org.xml.sax.SAXException;
>
>
>
>
>
> public class Test {
>
>
>
> public static void main(String[] args) {
>
>
>
>
>
> URL url = null;
>
> try {
>
> url = new URL("
> http://gis.irisnetlab.be/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
> ");
>
> } catch (MalformedURLException e) {
>
> //will not happen
>
> }
>
>
>
> WebMapServer wms = null;
>
> try {
>
> wms = new WebMapServer(url);
>
> } catch (IOException e) {
>
> //There was an error communicating with the server
>
> //For example, the server is down
>
> } catch (ServiceException e) {
>
> //The server returned a ServiceException (unusual in
> this case)
>
> } catch (SAXException e) {
>
> //Unable to parse the response from the server
>
> //For example, the capabilities it returned was not
> valid
>
> }
>
>
>
> }
>
>
>
> }
>
>
>
> *Nicolas Gillard*
> Analyst Programmer
> Projects - IS
> Avenue des Arts 21, 1000 Bruxelles - www.cirb.irisnet.be -
> disclaimer<http://www.cirb.irisnet.be/disclaimer-1>
> T +32 2 600 43 13 | G +32 479 57 92 04 | Helpdesk +32 2 801 00 00
> Be green, leave it on the screen !
> <http://www.linkedin.com/company/cirb_cibg>
> <https://twitter.com/CIRB_CIBG>
>
>
>
> ------------------------------------------------------------------------------
> Is your legacy SCM system holding you back? Join Perforce May 7 to find
> out:
> • 3 signs your SCM is hindering your productivity
> • Requirements for releasing software faster
> • Expert tips and advice for migrating your SCM now
> http://p.sf.net/sfu/perforce
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
--
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users