[Geoserver-users] How to export vector features to file?

Hello everyone,

Is there any way to export vector features (current view) as a grid to a
list/file ?

I found this: http://workshops.opengeo.org/geoext/wfs/grid.html

but it will export all layer features, not only what in view

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-export-vector-features-to-file-tp5002155.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi ..

you can use the BBOX parameter in your wfs url

regards,
Imran

On Sun, Sep 16, 2012 at 9:51 PM, Shadin <shadin__a@anonymised.com> wrote:

Hello everyone,

Is there any way to export vector features (current view) as a grid to a
list/file ?

I found this: http://workshops.opengeo.org/geoext/wfs/grid.html

but it will export all layer features, not only what in view

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-export-vector-features-to-file-tp5002155.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
I.R

To extend Imran's response:

Openlayers example:
http://openlayers.org/dev/examples/wfs-filter.js
http://openlayers.org/dev/examples/wfs-filter.html

temporal:

http://openlayers.org/dev/examples/filter-strategy.html

There are lots of other filters possible in WFS calls:
http://docs.geoserver.org/latest/en/user/filter/function_reference.html:

Cheers

Christian

-----
____________________________

Dr Christian Maul
Project Manager

Information Services Branch
Department of Sustainability and Environment
Level13, Marland House, 570 Bourke Street
Melbourne 3000

PO Box 500, East Melbourne Vic 3002

Telephone: +61-3-8636 2325
Telefax: +61-3-8636 2813
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-export-vector-features-to-file-tp5002155p5002198.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Thanks a lot Imran & Cmaul.
but I have another issue, I got this error: *undefined is not a function *
when I use: *proxy: new GeoExt.data.ProtocolProxy*

Is that because I use GeoExt 2 ? because I also tried: *proxy: new
GeoExt.data.proxy.Protocol* following the documentation
http://geoext.github.com/geoext2/docs/#!/api/GeoExt.data.proxy.Protocol and
got the error: *Cannot read property 'Protocol' of undefined *

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-export-vector-features-to-file-tp5002155p5002733.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

*Layer features are not being retrieved.. I got empty grid in window. would
anyone take a look and let me know if I miss something ?*

  gridPanel = new Ext.grid.GridPanel({
        title: "Feature Grid",
        store: new GeoExt.data.FeatureStore({
        fields: [
            {name: "id", type: "int"},
            {name: "name", type: "string"}
        ],
      proxy: new GeoExt.data.proxy.Protocol({
            protocol: new OpenLayers.Protocol.WFS({
                url: "http://IP/geoserver/wfs&quot;,
                featureType: "myLayer",
                featureNS: "http://mapmap.org",
                srsName: "EPSG:3857",
                version: "1.1.0"
            })
        }),
    autoLoad: true
    }),
    sm: new GeoExt.selection.FeatureModel(),
        width: 320,
    columns: [
        {header: "id", dataIndex: "id"},
        {header: "name", dataIndex: "name"}
    ]
    });

        *//window to display grid *
  var gridWindow = new Ext.Window({
              items: [
                     gridPanel
                       ]
            }).show();

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-export-vector-features-to-file-tp5002155p5002880.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

On 19/09/2012 8:15 p.m., Shadin wrote:

*Layer features are not being retrieved.. I got empty grid in window. would
anyone take a look and let me know if I miss something ?*

Using firebug or similar, can you see whether this go results in a post
request to geoserver? I am guessing not in which case the problem is not
with geoserver. This does not look appropriate to the geoserver list. I
think you should take this to the geoext group.

Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.