[Geoserver-devel] Geoserver WMS (only SVG supported)

Hello,

I’m new in Geoserver. I need to deploy a WFS/WMS server for an application so I chose Geoserver. All my developments are based on Opensource software and I created a PostGIS database on my server I’d like Geoserver to deal with. I’ve done some tries to access my tables throught Geoserver WFS & WMS.
The new web interface is looking nice but I had to setup my data by hand.
Anyway, after a little configuration time, I can send WFS & WMS queries to the server.
My problem is that I cannot render images with WMS (jpg, png, …) All that I can do is to generate SVG+XML

When I’m calling GetCapabilities, I get this. As you can see, only SVG+XML is supported. I checked my JAI and JAI I/O installation, and it seems to be OK. Does anyone have an idea about the problem?

Thanks.

Nicolas Vila

  <Capability>
    <Request>
      <GetCapabilities>
        <Format>application/vnd.ogc.wms_xml</Format>
        <DCPType>
          <HTTP>
            <Get>
              <OnlineResource xmlns:xlink=["http://www.w3.org/1999/xlink"](http://www.w3.org/1999/xlink) xlink:type="simple" xlink:href=["http://gta.teledetection.fr:8080/geoserver/wms?"](http://gta.teledetection.fr:8080/geoserver/wms?)/>

            </Get><Post>
              <OnlineResource xmlns:xlink=["http://www.w3.org/1999/xlink"](http://www.w3.org/1999/xlink) xlink:type="simple" xlink:href=["http://gta.teledetection.fr:8080/geoserver/wms"](http://gta.teledetection.fr:8080/geoserver/wms)/>
            </Post>
          </HTTP>
        </DCPType>
      </GetCapabilities>
      <GetMap>
        **<Format>image/svg+xml</Format>**

        <DCPType>
          <HTTP>
            <Get>
              <OnlineResource xmlns:xlink=["http://www.w3.org/1999/xlink"](http://www.w3.org/1999/xlink) xlink:type="simple" xlink:href=["http://gta.teledetection.fr:8080/geoserver/wms?"](http://gta.teledetection.fr:8080/geoserver/wms?)/>
            </Get>
          </HTTP>
        </DCPType>
      </GetMap>
    </Request>

    <Exception>
      <Format>application/vnd.ogc.se_xml</Format>
      <Format>application/vnd.ogc.se_inimage</Format>
      <Format>application/vnd.ogc.se_blank</Format>
    </Exception>

Hello,

I'm new in Geoserver. I need to deploy a WFS/WMS server for an
application so I chose Geoserver. All my developments are based on
Opensource software and I created a PostGIS database on my server I'd
like Geoserver to deal with. I've done some tries to access my tables
throught Geoserver WFS & WMS.
The new web interface is looking nice but I had to setup my data by hand.
Anyway, after a little configuration time, I can send WFS & WMS queries
to the server.
My problem is that I cannot render images with WMS (jpg, png, ...) All
that I can do is to generate SVG+XML

When I'm calling GetCapabilities, I get this. As you can see, only
SVG+XML is supported. I checked my JAI and JAI I/O installation, and it
seems to be OK. Does anyone have an idea about the problem?

What version are you working with? Try to download geoserver-1.2.0-rc1,
which I just put up on sourceforge (and you can also help with my sanity
check that I didn't majorly screw anything up, since my internet
connection is too slow to really check right now, the war I'm downloading
is now going at .2k/sec and will take 6 hours :frowning:

Gabriel and I were working on jai rendering side of the WMS with Andrea's
help. I saw this bug every once in awhile, with not reporting the
capabilities right, but I _think_ we got it fixed. And we also improved
the renderer for greater scalability and feed. So yeah, try out rc1 and
let me know if it works.

Also note that the web interface has a little section for whether jai is
present, in the admin section. Thank James for that, it should tell you
if your jvm does in fact have jai. And our bugs before would show jai
present but not return the right capabilities, and it should be fixed.

Best regards,

Chris

Thanks.

              Nicolas Vila

  <Capability>
    <Request>
      <GetCapabilities>
        <Format>application/vnd.ogc.wms_xml</Format>
        <DCPType>
          <HTTP>
            <Get>
              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:type="simple" xlink:href="http://gta.teledetection.fr:8080/geoserver/wms?&quot;/&gt;

            </Get><Post>
              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:type="simple" xlink:href="http://gta.teledetection.fr:8080/geoserver/wms&quot;/&gt;
            </Post>
          </HTTP>
        </DCPType>
      </GetCapabilities>
      <GetMap>
        *<Format>image/svg+xml</Format>*

        <DCPType>
          <HTTP>
            <Get>
              <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:type="simple" xlink:href="http://gta.teledetection.fr:8080/geoserver/wms?&quot;/&gt;
            </Get>
          </HTTP>
        </DCPType>
      </GetMap>
    </Request>

    <Exception>
      <Format>application/vnd.ogc.se_xml</Format>
      <Format>application/vnd.ogc.se_inimage</Format>
      <Format>application/vnd.ogc.se_blank</Format>
    </Exception>

--

Hi,

I switched to the 1.2RC1 and everything seems to work fine. JAI is supported, and I can use WFS and WMS with all my datasets. The administration web pages have been debugged, and the is no use to set up the Geoserver by hand :slight_smile: Good news, and good job ! I’m working also on an web interface to import/export shapefile data directly into PostGIS. I’ll make a post when it’s finished. (It could be a useful feature for PostGIS users).
Regards.

Nicolas

Chris Holmes a écrit :

I switched to the 1.2RC1 and everything seems to work fine. JAI is
supported, and I can use WFS and WMS with all my datasets. The
administration web pages have been debugged, and the is no use to set up
the Geoserver by hand :slight_smile: Good news, and good job !

Excellent.

I'm working also on
an web interface to import/export shapefile data directly into PostGIS.
I'll make a post when it's finished. (It could be a useful feature for
PostGIS users).

That would be a great addition. I look forward to it.

Chris

Chris Holmes a écrit :

>>Hello,
>>
>>I'm new in Geoserver. I need to deploy a WFS/WMS server for an
>>application so I chose Geoserver. All my developments are based on
>>Opensource software and I created a PostGIS database on my server I'd
>>like Geoserver to deal with. I've done some tries to access my tables
>>throught Geoserver WFS & WMS.
>>The new web interface is looking nice but I had to setup my data by hand.
>>Anyway, after a little configuration time, I can send WFS & WMS queries
>>to the server.
>>My problem is that I cannot render images with WMS (jpg, png, ...) All
>>that I can do is to generate SVG+XML
>>
>>When I'm calling GetCapabilities, I get this. As you can see, only
>>SVG+XML is supported. I checked my JAI and JAI I/O installation, and it
>>seems to be OK. Does anyone have an idea about the problem?
>>
>>
>
>What version are you working with? Try to download geoserver-1.2.0-rc1,
>which I just put up on sourceforge (and you can also help with my sanity
>check that I didn't majorly screw anything up, since my internet
>connection is too slow to really check right now, the war I'm downloading
>is now going at .2k/sec and will take 6 hours :frowning:
>
>Gabriel and I were working on jai rendering side of the WMS with Andrea's
>help. I saw this bug every once in awhile, with not reporting the
>capabilities right, but I _think_ we got it fixed. And we also improved
>the renderer for greater scalability and feed. So yeah, try out rc1 and
>let me know if it works.
>
>Also note that the web interface has a little section for whether jai is
>present, in the admin section. Thank James for that, it should tell you
>if your jvm does in fact have jai. And our bugs before would show jai
>present but not return the right capabilities, and it should be fixed.
>
>Best regards,
>
>Chris
>
>
>
>>Thanks.
>>
>> Nicolas Vila
>>
>>
>> <Capability>
>> <Request>
>> <GetCapabilities>
>> <Format>application/vnd.ogc.wms_xml</Format>
>> <DCPType>
>> <HTTP>
>> <Get>
>> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:type="simple" xlink:href="http://gta.teledetection.fr:8080/geoserver/wms?&quot;/&gt;
>>
>> </Get><Post>
>> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:type="simple" xlink:href="http://gta.teledetection.fr:8080/geoserver/wms&quot;/&gt;
>> </Post>
>> </HTTP>
>> </DCPType>
>> </GetCapabilities>
>> <GetMap>
>> *<Format>image/svg+xml</Format>*
>>
>> <DCPType>
>> <HTTP>
>> <Get>
>> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink&quot; xlink:type="simple" xlink:href="http://gta.teledetection.fr:8080/geoserver/wms?&quot;/&gt;
>> </Get>
>> </HTTP>
>> </DCPType>
>> </GetMap>
>> </Request>
>>
>> <Exception>
>> <Format>application/vnd.ogc.se_xml</Format>
>> <Format>application/vnd.ogc.se_inimage</Format>
>> <Format>application/vnd.ogc.se_blank</Format>
>> </Exception>
>>
>>
>>
>>
>>
>
>
>

--

On Friday 23 April 2004 08:58, Nicolas Vila wrote:

Hi,

I switched to the 1.2RC1 and everything seems to work fine. JAI is
supported, and I can use WFS and WMS with all my datasets. The
administration web pages have been debugged, and the is no use to set up
the Geoserver by hand :slight_smile: Good news, and good job ! I'm working also on
an web interface to import/export shapefile data directly into PostGIS.
I'll make a post when it's finished. (It could be a useful feature for
PostGIS users).
Regards.

Just a few notes on this. The postgis data store in the geotools2
cvs HEAD does not support FeatureType creation, but the one in the fid_exp
branch does. Also, since the shapefile reader uses NIO, it would be advisable
to upload a zipped shapefile, and on the server side unzip and put it in a
temporary folder
where the shapefile datastore can be used. This mechanism could be used
for every other supported file format, too. Oh, if you do it, please use the
postgis FeatureStore in place of a plain FeatureWriter since the latter can
be optimized more easily for mass inserts (it is not now, but if we intend to,
it's the easiest place to inject such an optimization).

Best regards
Andrea Aime