I am not sure why this is a problem. The geometries that can be used
are any JTS geometry com.vividsolutions.geom.* (I think that is the
package name). So you can create the geometry and do a feature query
using that geometry. We normally use bbox because it is more
efficient but it can be any. For circles the DWithin might be a good
filter to use because it receives all the features within a certain
area.
The trick is to remember that the coordinates must be in the same CRS
as the layer you are querying. Some useful classes are:
CRS.findMathTransform (I think there is a getViewportToLayer transform
on the layer class as well)
JTS (It has various transform methods for transforming geometries and
envelopes)
There is a Class for calculating ground distance as well but I forget
the name right now... GeodeticCalculator perhaps.
Jesse
On 20-Feb-09, at 10:12 AM, Sameera Abeysinghe wrote:
Yes
some thing like the info tool but the default info tool the
boundaries or the area of the the information presented has to be
dynamic
Ex: if we go to country layer and select a country using info tool
they will give information about the country hear the country
boundaries are predefined
my problem is I need the user to specify this boundary lets say the
boundary is a circle and I need the user to specify the radius
Thank You
On Wed, Feb 18, 2009 at 9:06 PM, Jesse Eichar <[email protected]
> wrote:
Hi
So as I understand you need the information at a point on the map
like we are doing for the info view correct? You can create a Tool
and with the ToolContext (getContext()) you can create a bbox in the
correct projection for the layer being queried. Then you can get
the features from within that BBox. I think there may be methods on
the ToolContext to help with that.
Take a look at the code examples we have:
http://svn.refractions.net/udig/udig/branches/1.1.x/udig/tutorials/net.refractions.udig.tutorials.examples/src/net/refractions/udig/tutorials/examples/
Jesse
On 17-Feb-09, at 10:52 AM, Sameera Abeysinghe wrote:
Hi,
when I click on the map I need to get all the information about
every thing within a X meters redious from the point I clicked. X
is variable given by the user.
How can I do this?
Where can I put an list box or text box to input X?
What tools can I use?
I am new to uDig
Thank You
--
Sameera Abeysinghe
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
--
Sameera Abeysinghe
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel