Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I want to have a gridPanel with feature geometry. But i cant image how to do this. I have a FeatureStore

                            st = new GeoExt.data.FeatureStore({
                                layer: myVecLayer,
                                fields: [
                                    {name: 'id', type: 'int'},
                                    {name: 'mydata', type: 'String'}
                                ],
                                 proxy: new GeoExt.data.ProtocolProxy({
                                    protocol: new OpenLayers.Protocol.WFS({
                                        version: "1.0.0",
                                        srsName:"EPSG:900913",
                                        url: "http://localhost:8080/geoserver/wfs",
                                        featureType: "filedata_temp",
                                        featureNS: "http://www.opengeospatial.net/cite",
                                        filter:Ffilter
                                    })
                                }),
                                autoLoad: true
                            });

How to get geometry from this? And separate this to X and Y?

i know that i gonna get WKT from FeatureStore and parse it to coordinates, but what next?
use another store to put coordinates to it?

share|improve this question
    
can u give some explanation that you want to get geometry of your objects when clicking or another way? which way u want to get geometry? –  Aragon Aug 2 '12 at 6:35
    
Object selected by filter and in FeatureStore only one feature. Select without map clicking. I want get geometry to edit it in grid. –  Kliver Max Aug 2 '12 at 6:37
    
I use this.1 get WKT from feature. 2 Parse it in string array. 3 Add this data to Ext.ArrayStore. 3 Add store to grid. Maybe geoext has standart methods to work with geometry? –  Kliver Max Aug 3 '12 at 3:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.