I'm creating a wps and I was wondering how I get a feature by a featureid
within geoserver..

 

I would like https://localhost:8443/geoserver/gis/ows?service=WFS
<https://localhost:8443/geoserver/gis/ows?service=WFS&version=1.0.0&request=
GetFeature&typeName=gis:simpleafeature&featureId=43601>
&version=1.0.0&request=GetFeature&typeName=gis:simpleafeature&featureId=4360
1  but using the geoserver classes.

 

    public static void GetFeature(String name, String namespace, String
fid){

        GeoServer geoServer = GeoServerExtensions.bean(GeoServer.class);

        DefaultWebFeatureService20 wfs = new
DefaultWebFeatureService20(geoServer);

        WFSInfo wfsinfo = wfs.getServiceInfo();

        Catalog catalog = wfs.getCatalog();

        FeatureTypeInfo featuretype =
catalog.getFeatureTypeByName(namespace, name);

 

//now what

}

 

Thanks

 

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to