Richard Gould kirjoitti: > My initial guess is that EPSG:3035 is not supported by GeoTools. Would > you be able to create a JIRA task for uDig for this? > http://jira.codehaus.org > (Just copy this email into the bug description) > I might be able to have a closer look later this week.
Thanks for the reply. I tried the server with OpenJump and it works nicely with it so I did not dig deeper with uDig. OpenJump is a bit smoother to start IMHO, it only needs the URL of the WMS server without SERVICE etc. parameters and then it asks which SRS I would like to use. But then one needs to realize that it needs an explicit zoom-to... I spotted one possible problem in the Capabilities XML: the root Layer has no Name element, but fixing that did not seem to help uDig. I'll keep my WMS open for some time although I shouldn't probably serve that data this way. That's the well-known European case for GI licencing. My solution in the future is to require a valid cookie in the GetMap request, and one gets a valid cookie by logging in to the site. I haven't noticed anything in the WMS specification for creating not public servers, are there any standard ways to doing it? We'd later need to serve proprietary data also over WCS and WFS. I made this into a JIRA task. Ari > > Richard > > Ari Jolma wrote: >> Hi, >> >> I just joined this list. This is a uDig-user/WMS-developer question. >> >> I'm playing with a simple WMS server I'm setting up myself, so I'm >> generating the GetCapabilities XML myself. >> >> I don't seem to be able to tell to uDig that I have data only in >> certain, non-WGS 84 projection -- i.e. uDig does not even make an >> attempt to query, it just says "Layer not rendered". When I say that I >> have it also in WGS 84 (adding <SRS>EPSG:4326</SRS>), I can see the data >> but I'm not able to change the projection. When I attempt to do this, >> using the button in the bottom of the window, I get an error: >> >> !MESSAGE java.lang.StringIndexOutOfBoundsException: String index out of >> range: -1 >> !STACK 0 >> java.lang.StringIndexOutOfBoundsException: String index out of range: -1 >> at java.lang.String.substring(Unknown Source) >> at >> org.geotools.referencing.crs.AUTOCRSAuthorityFactory$Code.<init>(AUTOCRSAuthorityFactory.java:299) >> >> at >> org.geotools.referencing.crs.AUTOCRSAuthorityFactory.createCoordinateReferenceSystem(AUTOCRSAuthorityFactory.java:144) >> >> at >> org.geotools.referencing.crs.AUTOCRSAuthorityFactory.createObject(AUTOCRSAuthorityFactory.java:149) >> >> at >> net.refractions.udig.project.internal.provider.CRSChooser.createCRS(CRSChooser.java:324) >> >> ... >> >> I piece of my GetCapabilities looks like this: >> >> <Layer> >> <Title>Europe</Title> >> <SRS>EPSG:3035</SRS> >> <SRS>EPSG:4326</SRS> >> <LatLonBoundingBox maxy="67.4196537517406" maxx="48.9252122255605" >> miny="33.9062191836389" minx="-8.66900612135772"/> >> <BoundingBox maxy="5384500" SRS="EPSG:3035" maxx="5900103.36066028" >> miny="1417286.86159906" minx="2592000"/> >> <Layer> >> <Name>Physical (relief)</Name> >> <Title>Physical (relief)</Title> >> </Layer> >> </Layer> >> >> the whole document may be available at >> http://clime.tkk.fi/wms.pl?SERVICE=WMS&REQUEST=GetCapabilities >> >> I'm using uDig 1.05 >> >> Does anybody have any information, what's going on and what I'm doing >> wrong? >> >> Thanks, >> >> Ari >> > > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel -- Prof. Ari Jolma Kartografia ja Geoinformatiikka / Cartography and Geoinformatics Teknillinen Korkeakoulu / Helsinki University of Technology tel: +358 9 451 3886 address: POBox 1200, 02015 TKK, Finland Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
