WMS is a different beast; the class is WebMapServer.
Jody
On 17/10/2009, at 7:32 AM, Ezequiel Coronel wrote:
Thanks Jody... I'm trying to do it but I have this problem
String getCapabilities = "http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities
";
Map connectionParameters = new HashMap();
connectionParameters.put("WFSDataStoreFactory:GET_CAPABILITIES_URL",
getCapabilities );
// Step 2 - connection
DataStore data = DataStoreFinder.getDataStore( connectionParameters );
but DataStore data is null , I don't know if I have to change
something because the url that you gave me it's for WFS and I'm
using WMS (I think that it is the same)
When I put this url (http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities
) in the web browser, this XML is the result. (It is a big file so I
put some, if you need more let me know.)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM "http://localhost:8080/geoserver/schemas/wms/1.1.1/WMS_MS_Capabilities.dtd
">
<WMT_MS_Capabilities version="1.1.1" updateSequence="104">
<Service>
<Name>OGC:WMS</Name>
<Title>GeoServer Web Map Service</Title>
<Abstract>A compliant implementation of WMS 1.1.1 plus most of
the SLD 1.0 extension (dynamic styling). Can also generate PDF, SVG,
KML, GeoRSS</Abstract>
<KeywordList>
<Keyword>WFS</Keyword>
<Keyword>WMS</Keyword>
<Keyword>GEOSERVER</Keyword>
</KeywordList>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple" xlink:href="http://localhost:8080/geoserver/wms"/>
<ContactInformation>
<ContactPersonPrimary>
<ContactPerson>Claudius Ptolomaeus</ContactPerson>
<ContactOrganization>The ancient geographes INC</
ContactOrganization>
</ContactPersonPrimary>
<ContactPosition>Chief geographer</ContactPosition>
<ContactAddress>
<AddressType>Work</AddressType>
<Address/>
<City>Alexandria</City>
<StateOrProvince/>
<PostCode/>
<Country>Egypt</Country>
</ContactAddress>
<ContactVoiceTelephone/>
<ContactFacsimileTelephone/>
<ContactElectronicMailAddress>[email protected]</
ContactElectronicMailAddress>
</ContactInformation>
<Fees>NONE</Fees>
<AccessConstraints>NONE</AccessConstraints>
</Service>
Thanks!!!...
Ezequiel.
2009/10/9 Jody Garnett <[email protected]>
Hi Ezequiel.
Accessing geoserver is the same as any other datastore (shapefile,
postgis, etc...) - it makes use of the web feature server protocol.
The only difference should be in the connection parameters.
- http://docs.codehaus.org/display/GEOTDOC/WFS+Plugin
When you set up your URL to start from (the one pointing to the
capabilities document you have a choice of "VERSION=1.1.0" or
"VERSION=1.0.0".
Right now only version 1.0 supports read-write.
Jody
On 10/10/2009, at 4:03 AM, Ezequiel Coronel wrote:
Hi, I'm trying to get maps through Geo Server. I'm doing something
like this to get the maps from my hard disk.
FeatureSource featureSource = (FeatureSource)featuresSources.get
("C_CapFed_c_v01_polyline");
So, my idea is get the map from my server....
FeatureSource featureSource = (FeatureSource)featuresSources.get("http://localhost:8080/geoserver/
.....");
It is possible to do this??, maybe I have to do another thing or way.
Thanks very much!!!
Ezequiel.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart
your
developing skills, take BlackBerry mobile applications to market
and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart
your
developing skills, take BlackBerry mobile applications to market and
stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users