[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-users] is it possible to select many features with CQL then move those features as a group?
|
Hi Jody,
Thank you for quick response. Unfortunately, I'm still unable to
accomplish the multi-feature move; comments follow below:
Quoting Jody Garnett <jody.garnett@xxxxxxxxx>:
I believe so; here is one idea:
- select the features using a filter
- right click on the selection (on the Map or in the Table Editor) and
choose copy
- paste the features into a new scratch layer (see walkthrough 2 for
how to set up a scratch layer)
- in the scratch use the edit feature tool to edit multiple features
(you may be able to draw a box; or you may need to select several
features by holding down shift?)
That is the crux of the matter -- exactly how do you edit multiple
features? You cannot hold down shift, or ctrl+shift, or alt+ctrl, or
any other combination I can find to select multiple features.
Additionally, I cannot see how to "draw a box" with the edit feature
tool. If I have a feature selected, I can then draw a box, but that
doesn't select more features; in fact, nothing changes.
Here is a better ideas:
- Select the features and export the selection to a new shapefile
An UnformattableObjectException raises when I try that:
org.geotools.referencing.wkt.UnformattableObjectException: Invalid WKT format.
at
org.geotools.referencing.wkt.Formattable.toWKT(Formattable.java:186)
at
org.geotools.referencing.wkt.Formattable.toWKT(Formattable.java:149)
at
org.geotools.referencing.wkt.Formattable.toWKT(Formattable.java:128)
at
org.geotools.referencing.wkt.Formattable.toWKT(Formattable.java:110)
at
org.geotools.data.shapefile.ShapefileDataStore.createSchema(ShapefileDataStore.java:833)
However, I can try the reshape on a scratch layer.
- open that new shapefile and choose the reshape operation
- when you fill in the blanks for reshape you will see something like
"the_geom=the_geom"; see if there is a function you can call to move
the geometry "the_geom=move( the_geom, 3.0, 3.0 )"
move doesn't exist, as I get a vague error about MoveFunction not
existing. It seems like functions for scaling, rotating, and
translating should exist.
- If a function does not exist for this purpose we should make you
one... (you can check the function list in the user guide under the
"Concepts" page)
I am currently unable to access any user documentation on
udig.refractions.net, as the refractions.net web server is throwing a
Proxy Error:
---
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /confluence/display/EN/Home.
Reason: Error reading from remote server
Apache/2.0.53 (Fedora) Server at udig.refractions.net Port 80
---
So, I can't check if there's a function out there to translate.
Any additional comments or ideas on how to move multiple features as a
group would be greatly appreciated!
Regards,
bishop
Bishop Bettini wrote:
Hi All,
I am using v1.1-rc14 on Linux. I have a shape file that has many
small features. I would like to select many of features using CQL,
then treat the selection as a "group" for editing. Specifically,
I want to move all selected features to a different location.
I've checked the online help, this list archive, asked on IRC, and
made a general google search. I saw only one reference to where
"Jesse demonstrated this", but I can't see if or how it's possible.
So, is this possible? If so, how?
--
Bishop Bettini
ideacode, Inc.
(main) +1 919 341 5170 / (fax) +1 919 521 4100
Visit us on the web at:
ideacode.com Professional software research and development
reviewmysoftware.com Improve sales! Review your software before you release
bytejar.com Solutions to those annoying development problems