Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] RC13 wms GetFeatureInfo

On Jan 17, 2008, at 21:23, Jesse Eichar wrote:

Hmmm. I don't know what uDig does with CRS:4326. Why don't you (just as an experiment) change it to EPSG:4326.

The capabilities document I posted does not contain CRS:4326, but CRS: 84 and EPSG:4326. I do not remember why I included CRS:84.

I am working on opening up the service. It is a little bit of politics and a little bit of sysadm work. I have tried to bring up by 1.1 workspace to debug this myself, but I got so many errors in eclipse that I lost track..

I have found one reproducable strange way to reproduce my problem and then make it go away.
 * new workspace/project
 * load in unprojected world_adm shape file from http://www.diva-gis.org/data/misc/world_adm0.zip
 * connect to the wms
* GetFeatureInfo does not work for the wms, only the shape. NPE showed in console
 * The crs-button shows "WGS 84".
* Press the "WGS 84" button and the crs window show up with "WGS 84 (EPSG:4326)" selected.
 * Press apply (without changing the selection)
 * GetFeatureInfo works properly :)

I have tried the .options thing as well, but the console message does not seem to have so much more information. After applying the crs, the console show the real GetFeatureInfo url and no NPE. 1/17/08 23:32:01 [0x0-0x18e18e].org.eclipse.eclipse[5688] !ENTRY org.eclipse.osgi 2 1 2008-01-17 23:32:01.013 1/17/08 23:32:01 [0x0-0x18e18e].org.eclipse.eclipse[5688] !MESSAGE NLS missing message: SearchView_default in: net.refractions.udig.catalog.ui.internal.messages 1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] !ENTRY net.refractions.udig.catalog 4 0 2008-01-17 23:32:10.242
1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] !MESSAGE
1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] !STACK 0
1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] java.lang.Exception: java.lang.NullPointerException 1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] at net .refractions.udig.catalog.internal.CatalogImpl.fire(CatalogImpl.java: 685) 1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] at net .refractions .udig.catalog.internal.shp.ShpServiceImpl.getInfo(ShpServiceImpl.java: 191) 1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] at net .refractions.udig.catalog.ui.CatalogUIPlugin.icon(CatalogUIPlugin.java: 585) 1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] at net .refractions.udig.catalog.ui.CatalogUIPlugin.icon(CatalogUIPlugin.java: 453) 1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] at net .refractions.udig.catalog.ui.CatalogUIPlugin.icon(CatalogUIPlugin.java: 422) 1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] at net.refractions.udig.catalog.ui.ResolveTitlesDecorator $UpdateLabel.creatImage(ResolveTitlesDecorator.java:436) 1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] at net.refractions.udig.catalog.ui.ResolveTitlesDecorator $UpdateLabel.run(ResolveTitlesDecorator.java:373) 1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) 1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] Caused by: java.lang.NullPointerException 1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] at net .refractions .udig.project.internal.impl.LayerImpl.resetConnection(LayerImpl.java: 2174) 1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] at net .refractions .udig.project.internal.impl.LayerImpl.changed(LayerImpl.java:2258) 1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] at net .refractions.udig.catalog.internal.CatalogImpl.fire(CatalogImpl.java: 683)
1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688]  ... 7 more
1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] 15
1/17/08 23:32:10 [0x0-0x18e18e].org.eclipse.eclipse[5688] 15

Regards,
 - Tore.




Jesse

Le 16-Jan-08 à 5:20 AM, Tore Halset a écrit :


On Jan 15, 2008, at 23:39 , Jody Garnett wrote:

Oh that sounds fun;

It is fun when things are working... :/

is the service available for us to test against?

Sorry. Not at the moment, but I hope to.

Or can you send us the capabilities file as an attachment?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wms PUBLIC "WMT_MS_Capabilities"
"http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd ">
<WMT_MS_Capabilities updateSequence="1" version="1.1.1">
<Service>
  <Name>OGC:WMS</Name>
  <Title>GDS WMS Service</Title>
  <Abstract>GDS WMS Service</Abstract>
  <KeywordList>
    <Keyword/>

  </KeywordList>
  <OnlineResource xlink:href="http://localhost/wms/wms";
    xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink"/>
  <Fees>none</Fees>
  <AccessConstraints>none</AccessConstraints>
</Service>
<Capability>
  <Request>
    <GetCapabilities>

      <Format>application/vnd.ogc.wms_xml</Format>
      <DCPType>
        <HTTP>
          <Get>
            <OnlineResource
              xlink:href="http://localhost/wms/wms";
xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink "/>
          </Get>
        </HTTP>
      </DCPType>

    </GetCapabilities>
    <GetMap>
      <Format>image/jpeg</Format>
      <Format>image/png</Format>
      <Format>image/png; mode=32bit</Format>
      <Format>image/png; mode=8bit</Format>
      <Format>image/gif</Format>

      <DCPType>
        <HTTP>
          <Get>
            <OnlineResource
              xlink:href="http://localhost/wms/wms";
xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink "/>
          </Get>
        </HTTP>
      </DCPType>
    </GetMap>
    <GetFeatureInfo>

      <Format>text/plain</Format>
      <Format>text/html</Format>
      <DCPType>
        <HTTP>
          <Get>
            <OnlineResource
              xlink:href="http://localhost/wms/wms";
xlink:type="simple" xmlns:xlink="http://www.w3.org/1999/xlink "/>
          </Get>
        </HTTP>

      </DCPType>
    </GetFeatureInfo>
  </Request>
  <Exception>
    <Format>application/vnd.ogc.se_xml</Format>
  </Exception>
  <Layer>
    <Title>GDS WMS Layers</Title>

    <SRS>CRS:84</SRS>
    <SRS>EPSG:32601</SRS>
    <SRS>EPSG:32602</SRS>
    <SRS>EPSG:32603</SRS>
    <SRS>EPSG:32604</SRS>
    <SRS>EPSG:32605</SRS>

    <SRS>EPSG:32606</SRS>
    <SRS>EPSG:32607</SRS>
    <SRS>EPSG:32608</SRS>
    <SRS>EPSG:32609</SRS>
    <SRS>EPSG:32610</SRS>
    <SRS>EPSG:32611</SRS>

    <SRS>EPSG:32612</SRS>
    <SRS>EPSG:32613</SRS>
    <SRS>EPSG:32614</SRS>
    <SRS>EPSG:32615</SRS>
    <SRS>EPSG:32616</SRS>
    <SRS>EPSG:32617</SRS>

    <SRS>EPSG:32618</SRS>
    <SRS>EPSG:32619</SRS>
    <SRS>EPSG:32620</SRS>
    <SRS>EPSG:32621</SRS>
    <SRS>EPSG:32622</SRS>
    <SRS>EPSG:32623</SRS>

    <SRS>EPSG:32624</SRS>
    <SRS>EPSG:32625</SRS>
    <SRS>EPSG:32626</SRS>
    <SRS>EPSG:32627</SRS>
    <SRS>EPSG:32628</SRS>
    <SRS>EPSG:32629</SRS>

    <SRS>EPSG:32630</SRS>
    <SRS>EPSG:32631</SRS>
    <SRS>EPSG:32632</SRS>
    <SRS>EPSG:32633</SRS>
    <SRS>EPSG:32634</SRS>
    <SRS>EPSG:32635</SRS>

    <SRS>EPSG:32636</SRS>
    <SRS>EPSG:32637</SRS>
    <SRS>EPSG:32638</SRS>
    <SRS>EPSG:32639</SRS>
    <SRS>EPSG:32640</SRS>
    <SRS>EPSG:32641</SRS>

    <SRS>EPSG:32642</SRS>
    <SRS>EPSG:32643</SRS>
    <SRS>EPSG:32644</SRS>
    <SRS>EPSG:32645</SRS>
    <SRS>EPSG:32646</SRS>
    <SRS>EPSG:32647</SRS>

    <SRS>EPSG:32648</SRS>
    <SRS>EPSG:32649</SRS>
    <SRS>EPSG:32650</SRS>
    <SRS>EPSG:32651</SRS>
    <SRS>EPSG:32652</SRS>
    <SRS>EPSG:32653</SRS>

    <SRS>EPSG:32654</SRS>
    <SRS>EPSG:32655</SRS>
    <SRS>EPSG:32656</SRS>
    <SRS>EPSG:32657</SRS>
    <SRS>EPSG:32658</SRS>
    <SRS>EPSG:32659</SRS>

    <SRS>EPSG:32660</SRS>
    <SRS>EPSG:32701</SRS>
    <SRS>EPSG:32702</SRS>
    <SRS>EPSG:32703</SRS>
    <SRS>EPSG:32704</SRS>
    <SRS>EPSG:32705</SRS>

    <SRS>EPSG:32706</SRS>
    <SRS>EPSG:32707</SRS>
    <SRS>EPSG:32708</SRS>
    <SRS>EPSG:32709</SRS>
    <SRS>EPSG:32710</SRS>
    <SRS>EPSG:32711</SRS>

    <SRS>EPSG:32712</SRS>
    <SRS>EPSG:32713</SRS>
    <SRS>EPSG:32714</SRS>
    <SRS>EPSG:32715</SRS>
    <SRS>EPSG:32716</SRS>
    <SRS>EPSG:32717</SRS>

    <SRS>EPSG:32718</SRS>
    <SRS>EPSG:32719</SRS>
    <SRS>EPSG:32720</SRS>
    <SRS>EPSG:32721</SRS>
    <SRS>EPSG:32722</SRS>
    <SRS>EPSG:32723</SRS>

    <SRS>EPSG:32724</SRS>
    <SRS>EPSG:32725</SRS>
    <SRS>EPSG:32726</SRS>
    <SRS>EPSG:32727</SRS>
    <SRS>EPSG:32728</SRS>
    <SRS>EPSG:32729</SRS>

    <SRS>EPSG:32730</SRS>
    <SRS>EPSG:32731</SRS>
    <SRS>EPSG:32732</SRS>
    <SRS>EPSG:32733</SRS>
    <SRS>EPSG:32734</SRS>
    <SRS>EPSG:32735</SRS>

    <SRS>EPSG:32736</SRS>
    <SRS>EPSG:32737</SRS>
    <SRS>EPSG:32738</SRS>
    <SRS>EPSG:32739</SRS>
    <SRS>EPSG:32740</SRS>
    <SRS>EPSG:32741</SRS>

    <SRS>EPSG:32742</SRS>
    <SRS>EPSG:32743</SRS>
    <SRS>EPSG:32744</SRS>
    <SRS>EPSG:32745</SRS>
    <SRS>EPSG:32746</SRS>
    <SRS>EPSG:32747</SRS>

    <SRS>EPSG:32748</SRS>
    <SRS>EPSG:32749</SRS>
    <SRS>EPSG:32750</SRS>
    <SRS>EPSG:32751</SRS>
    <SRS>EPSG:32752</SRS>
    <SRS>EPSG:32753</SRS>

    <SRS>EPSG:32754</SRS>
    <SRS>EPSG:32755</SRS>
    <SRS>EPSG:32756</SRS>
    <SRS>EPSG:32757</SRS>
    <SRS>EPSG:32758</SRS>
    <SRS>EPSG:32759</SRS>

    <SRS>EPSG:32760</SRS>
    <SRS>EPSG:4326</SRS>
    <SRS>EPSG:900913</SRS>
    <LatLonBoundingBox maxx="180" maxy="90" minx="-180" miny="-90"/>
    <Layer cascaded="0" fixedHeight="0" fixedWidth="0" noSubsets="0"
      opaque="0" queryable="1">
      <Name>cells</Name>
      <Title>Cell Layer</Title>

      <Abstract>Cell Layer</Abstract>
      <Style>
        <Name>style-id-244</Name>
        <Title>Base</Title>
        <Abstract>Base with paper chart symbols</Abstract>
      </Style>
      <Style>
        <Name>style-id-261</Name>
        <Title>Base transparent land</Title>
<Abstract>Base with paper chart symbols and transparent land</Abstract>
      </Style>

    </Layer>
  </Layer>
</Capability>
</WMT_MS_Capabilities>






Jody
On Jan 14, 2008, at 20:31, Jody Garnett wrote:

I checked GetFeatureInfo as part of walkthrough 1, can you tell me the WMS service you got this error with? And the projection you were displaying at the time?

My own OpenMap based wms that used to work with earlier uDig RCs. It uses basic authentication. The selected projection was EPSG: 4326 (unprojected).

- Tore.




Thanks,
Jody
Hello.

After upgrading to RC13, wms GetFeatureInfo does not work for me. Nothing shows up. Anyone else seeing this?

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:396)
at java.util.Properties.setProperty(Properties.java:128)
at org .geotools .data .wms .request .AbstractGetMapRequest.setSRS(AbstractGetMapRequest.java:148) at net .refractions .udig .tool .info.internal.WMSDescribeLayer.info2(WMSDescribeLayer.java:222) at net .refractions .udig .tool .info.internal.InfoView2.searchImplementation(InfoView2.java:260) at net.refractions.udig.ui.SearchPart$1$2.run(SearchPart.java: 488) at net.refractions.udig.ui.PlatformGIS$1.call(PlatformGIS.java: 90) at java.util.concurrent.FutureTask $Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:613)

Sorry for telling so late, but I did not notice this in the earlier RC13 builds that I tried.

Regards,
- Tore.
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel




Back to the top