Re: pom file

19 messages Options
Embed this post
Permalink
mbedward

Re: pom file

Reply Threaded More More options
Print post
Permalink
Hi Darmawan,

Please send your questions, code snippets etc. to the user list
because, as Jody says, none of us are in a position to give private
assistance.  Also, when you send your queries to the list you have a
much better chance of getting a useful answer :-)

I've just had a look at your pom.xml and tested it with a clean system
here by removing the jars that Quickstart needs from my system before
building the app using your pom file. It all worked fine. Maven
downloaded the GeoTools 2.6-M3 jars and the MigLayout library.

Your pom.xml contains a lot of extra stuff that has been generated by
Netbeans and is not really necessary but it didn't interfere with the
build.

So, I'm guessing that the problems that you're having must be caused
by your local setup.

>From your previous posts it seemed that everything builds ok (ie.
maven says 'Build successful') but then you get a class not found
error when running the Quickstart app - is that still the case ?

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
dadar

Re: pom file

Reply Threaded More More options
Print post
Permalink
Oh, I see
then how do I post my question in user list??
have to post it in http://n2.nabble.com/Re-pom-file-td3758856.html#a3758856 ?is that right?
that's right michael. I get the error when I running the Quickstart and choose the shape file. after I choose the file then I get error
here is the error:
Exception in thread "main" java.lang.NoClassDefFoundError: net/miginfocom/swing/MigLayout
        at org.geotools.swing.JMapFrame.initComponents(JMapFrame.java:262)
        at org.geotools.swing.JMapFrame.showMap(JMapFrame.java:119)
        at com.mycompany.cobacoba.Quickstart.main(Quickstart.java:43)
Caused by: java.lang.ClassNotFoundException: net.miginfocom.swing.MigLayout
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 3 more

And Jody said if I want to ask I should post in user list, is she means I post in this n2.nabble.com??
sorry about before

Darmawan

mbedward wrote:
Hi Darmawan,

Please send your questions, code snippets etc. to the user list
because, as Jody says, none of us are in a position to give private
assistance.  Also, when you send your queries to the list you have a
much better chance of getting a useful answer :-)

I've just had a look at your pom.xml and tested it with a clean system
here by removing the jars that Quickstart needs from my system before
building the app using your pom file. It all worked fine. Maven
downloaded the GeoTools 2.6-M3 jars and the MigLayout library.

Your pom.xml contains a lot of extra stuff that has been generated by
Netbeans and is not really necessary but it didn't interfere with the
build.

So, I'm guessing that the problems that you're having must be caused
by your local setup.

>From your previous posts it seemed that everything builds ok (ie.
maven says 'Build successful') but then you get a class not found
error when running the Quickstart app - is that still the case ?

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: pom file

Reply Threaded More More options
Print post
Permalink
2009/10/3 dadar wrote:
> then how do I post my question in user list??

Well, you just replied to the list then :-)  Presumably you have
subscribed to the list ?  If not, see the link to the user list on
this page:

http://geotools.org/getinvolved.html

> that's right michael. I get the error when I running the Quickstart and
> choose the shape file. after I choose the file then I get error
> here is the error:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> net/miginfocom/swing/MigLayout

Please try this:

In Netbeans, clean and build your project.

In the Projects window expand the libraries element of your project.
You should see a long list of jars.

At the top of the list you should see GeoTools 2.6-M3 jars that were
specified in your pom.xml: gt-main, gt-shapefile, gt-epsg-hsql,
gt-swing.  Below these should be a long list of other jars that these
modules use.

Scan the list and look for one called miglayout-3.7-swing.jar and tell
me if you find it or not.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
dadar

Re: pom file

Reply Threaded More More options
Print post
Permalink
I have checked it and there is miglayout-3.7-swing.jar in the libraries

Darmawan

mbedward wrote:
2009/10/3 dadar wrote:
> then how do I post my question in user list??

Well, you just replied to the list then :-)  Presumably you have
subscribed to the list ?  If not, see the link to the user list on
this page:

http://geotools.org/getinvolved.html

> that's right michael. I get the error when I running the Quickstart and
> choose the shape file. after I choose the file then I get error
> here is the error:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> net/miginfocom/swing/MigLayout

Please try this:

In Netbeans, clean and build your project.

In the Projects window expand the libraries element of your project.
You should see a long list of jars.

At the top of the list you should see GeoTools 2.6-M3 jars that were
specified in your pom.xml: gt-main, gt-shapefile, gt-epsg-hsql,
gt-swing.  Below these should be a long list of other jars that these
modules use.

Scan the list and look for one called miglayout-3.7-swing.jar and tell
me if you find it or not.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: pom file

Reply Threaded More More options
Print post
Permalink
> I have checked it and there is miglayout-3.7-swing.jar in the libraries
>

So far, so good !

Now please see if you can expand the miglayout element in the project
and view the packages in the library and the classes within them. If
you can that means the library has been installed on your system.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
dadar

Re: pom file

Reply Threaded More More options
Print post
Permalink
When I click + button in miglayout-3.7-swing.jar there are classes within them.
Like AC.class,CC.class,Grid.class and many other

Darmawan

mbedward wrote:
> I have checked it and there is miglayout-3.7-swing.jar in the libraries
>

So far, so good !

Now please see if you can expand the miglayout element in the project
and view the packages in the library and the classes within them. If
you can that means the library has been installed on your system.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: pom file

Reply Threaded More More options
Print post
Permalink
2009/10/3 dadar wrote:
>
> When I click + button in miglayout-3.7-swing.jar there are classes within
> them.
> Like AC.class,CC.class,Grid.class and many other
>

That's good. It means that Maven actually did download the library for
you when building the app.

Next question is how are you trying to run the app ? From within
Netbeans or from the command line ? The reason I ask is that it looks
like you've got a classpath problem.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
dadar

Re: pom file

Reply Threaded More More options
Print post
Permalink
I run the app from Netbeans

Darmawan

mbedward wrote:
2009/10/3 dadar wrote:
>
> When I click + button in miglayout-3.7-swing.jar there are classes within
> them.
> Like AC.class,CC.class,Grid.class and many other
>

That's good. It means that Maven actually did download the library for
you when building the app.

Next question is how are you trying to run the app ? From within
Netbeans or from the command line ? The reason I ask is that it looks
like you've got a classpath problem.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: pom file

Reply Threaded More More options
Print post
Permalink
2009/10/3 dadar wrote:
>
> I run the app from Netbeans
>

Then I'm afraid it looks like there is something wrong with your
Netbeans setup. But just to confirm that try running the app from the
command line (I think you said that you have maven 2.0.9 installed on
your system).

In a terminal window / command box, go to the top directory of your
project (containing the pom.xml) and type:

mvn exec:java -Dexec.mainClass=org.geotools.demo.Quickstart

(edit as required if you used a different package and/or class name)

Hopefully, the app will run properly.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
dadar

Re: pom file

Reply Threaded More More options
Print post
Permalink
In reply to this post by mbedward
Yeah I can run it from cmd. Finally :)
but I must run it from Netbeans for my final assignment. how do you think I should do to repair this problem Michael??
and I want to ask something. when I try zoom-in for the second time there is nothing in the panel.but if I zoom-out there is no problem. is that an error??
and if I'm using gt, if I click some area can I know what is that area??and change the color of another area when I click the area??

Darmawan

mbedward wrote:
2009/10/3 dadar wrote:
>
> When I click + button in miglayout-3.7-swing.jar there are classes within
> them.
> Like AC.class,CC.class,Grid.class and many other
>

That's good. It means that Maven actually did download the library for
you when building the app.

Next question is how are you trying to run the app ? From within
Netbeans or from the command line ? The reason I ask is that it looks
like you've got a classpath problem.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: pom file

Reply Threaded More More options
Print post
Permalink
2009/10/3 dadar wrote:
>
> Yeah I can run it from cmd. Finally :)

OK - so the app is fine and the missing class is not missing.

> but I must run it from Netbeans for my final assignment. how do you think I
> should do to repair this problem Michael??

I don't really know but if it was me I'd re-install Netbeans and
upgrade to the latest version if you don't already have it. Someone
else here might have a better idea. Also, you might want to check out
the Netbeans forums to see if anyone has reported similar problems:

http://www.netbeans.org/community/lists/top.html

> and I want to ask something. when I try zoom-in for the second time there is
> nothing in the panel.but if I zoom-out there is no problem. is that an
> error??

I'm not sure quite what you're seeing there and of course I don't have
your shapefile :)  The app is working fine for me and others so far.

> and if I'm using gt, if I click some area can I know what is that area??and

Choose the info tool on the toolbar (second from the right) and click
on the feature you want to identify.

> change the color of another area when I click the area??

You are leaping into rendering Styles there :)  If you are brave you
can look at the MapDisplayLab example:

http://geotools.org/examples/displaylab.html

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
dadar

Re: pom file

Reply Threaded More More options
Print post
Permalink
OMG that is nice!! :)
btw if I combine this quickmap source with my source code can it work??my source might be in jpanel or jframe.
and actually I need to access the data that I get when I click some area with info tool into an array without displaying it. can I do that??
I have been trying to uninstall the netbeans and reinstall it again but the error is still the same
I'll try to install netbeans 6.7.1 in Monday because the file is in my college
My point is when I click some area, I'm doing some calculation in another area. after that the result of the calculation is an area. so I'll change the color of the area into another color without click on that area. is it hard to do that??

Darmawan

mbedward wrote:
2009/10/3 dadar wrote:
>
> Yeah I can run it from cmd. Finally :)

OK - so the app is fine and the missing class is not missing.

> but I must run it from Netbeans for my final assignment. how do you think I
> should do to repair this problem Michael??

I don't really know but if it was me I'd re-install Netbeans and
upgrade to the latest version if you don't already have it. Someone
else here might have a better idea. Also, you might want to check out
the Netbeans forums to see if anyone has reported similar problems:

http://www.netbeans.org/community/lists/top.html

> and I want to ask something. when I try zoom-in for the second time there is
> nothing in the panel.but if I zoom-out there is no problem. is that an
> error??

I'm not sure quite what you're seeing there and of course I don't have
your shapefile :)  The app is working fine for me and others so far.

> and if I'm using gt, if I click some area can I know what is that area??and

Choose the info tool on the toolbar (second from the right) and click
on the feature you want to identify.

> change the color of another area when I click the area??

You are leaping into rendering Styles there :)  If you are brave you
can look at the MapDisplayLab example:

http://geotools.org/examples/displaylab.html

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: pom file

Reply Threaded More More options
Print post
Permalink
2009/10/4 dadar wrote:
>
> btw if I combine this quickmap source with my source code can it work??my
> source might be in jpanel or jframe.

Sorry, I don't think I understand what you're asking there

> and actually I need to access the data that I get when I click some area
> with info tool into an array without displaying it. can I do that??

If you study the MapDisplayLab example you will see how it identifies
the feature that was clicked on without using the info tool. Once you
have identified the feature you can retrieve whatever attributes it
contains. The key concepts to understand here are SimpleFeatureType
and SimpleFeature. I recommend that you first look at this example for
an introduction to these...

http://geotools.org/examples/csv2shp.html

> My point is when I click some area, I'm doing some calculation in another
> area. after that the result of the calculation is an area. so I'll change
> the color of the area into another color without click on that area. is it
> hard to do that??
>

It's not hard if you know how to do it :-)

I'm afraid that I can't write your code for you but if you study the
examples you will learn about the of the basic concepts required to do
what you describe.

Hope this helps.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
dadar

Re: pom file

Reply Threaded More More options
Print post
Permalink
what I mean is I have my calculation algorithm in another class. can I combine it with this geotools class?? like if I click on some area then another area will change the color

okay. I'll try to study the class first. can I ask to you if I have some trouble with the source that I don't understand??

Darmawan

mbedward wrote:
2009/10/4 dadar wrote:
>
> btw if I combine this quickmap source with my source code can it work??my
> source might be in jpanel or jframe.

Sorry, I don't think I understand what you're asking there

> and actually I need to access the data that I get when I click some area
> with info tool into an array without displaying it. can I do that??

If you study the MapDisplayLab example you will see how it identifies
the feature that was clicked on without using the info tool. Once you
have identified the feature you can retrieve whatever attributes it
contains. The key concepts to understand here are SimpleFeatureType
and SimpleFeature. I recommend that you first look at this example for
an introduction to these...

http://geotools.org/examples/csv2shp.html

> My point is when I click some area, I'm doing some calculation in another
> area. after that the result of the calculation is an area. so I'll change
> the color of the area into another color without click on that area. is it
> hard to do that??
>

It's not hard if you know how to do it :-)

I'm afraid that I can't write your code for you but if you study the
examples you will learn about the of the basic concepts required to do
what you describe.

Hope this helps.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: pom file

Reply Threaded More More options
Print post
Permalink
2009/10/4 dadar wrote:
>
> okay. I'll try to study the class first. can I ask to you if I have some
> trouble with the source that I don't understand??
>

Yes - please study the examples first and refer back to them as you
write your own code. You will find that they answer a lot of your
questions. Once you have done that you are, of course, welcome to come
back to the list for explanation or advice about the GeoTools-related
parts of your code.

Hope this helps.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
dadar

Re: pom file

Reply Threaded More More options
Print post
Permalink
Michael, I have some trouble understanding the source
when I open my shapefile and choose an area with info tools it contains code and name of the region
when I read MapDisplayLab.java I think when using "select" feature we read the position of the area to void selectFeatures. I don't get it using which variable to access the name and code of the area. can you explain it to me??

filter = ff.contains(ff.property(geometryAttributeName), ff.literal(point));
what is ff in the code above??

and can you explain to me what is this code for
FeatureCollection<SimpleFeatureType, SimpleFeature> selectedFeatures =
                    featureSource.getFeatures(filter);

            FeatureIterator<SimpleFeature> iter = selectedFeatures.features();
            Set<FeatureId> IDs = new HashSet<FeatureId>();

sorry, if I troubling you. thank you

Darmawan

mbedward wrote:
2009/10/4 dadar wrote:
>
> okay. I'll try to study the class first. can I ask to you if I have some
> trouble with the source that I don't understand??
>

Yes - please study the examples first and refer back to them as you
write your own code. You will find that they answer a lot of your
questions. Once you have done that you are, of course, welcome to come
back to the list for explanation or advice about the GeoTools-related
parts of your code.

Hope this helps.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
dadar

Re: pom file

Reply Threaded More More options
Print post
Permalink
In reply to this post by mbedward
Oh I forget to ask something
can I get the center coordinate (x,y) from an area??

Darmawan

mbedward wrote:
2009/10/4 dadar wrote:
>
> okay. I'll try to study the class first. can I ask to you if I have some
> trouble with the source that I don't understand??
>

Yes - please study the examples first and refer back to them as you
write your own code. You will find that they answer a lot of your
questions. Once you have done that you are, of course, welcome to come
back to the list for explanation or advice about the GeoTools-related
parts of your code.

Hope this helps.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: pom file

Reply Threaded More More options
Print post
Permalink
In reply to this post by dadar
2009/10/4 dadar wrote:
>
> Michael, I have some trouble understanding the source

You are really diving in at the deep end ! GeoTools is a very big
library and many of the concepts and usages will be new to you. I
think you need to take it slowly and study the examples and the
related pages in the GeoTools wiki.

> filter = ff.contains(ff.property(geometryAttributeName), ff.literal(point));
> what is ff in the code above??

An instance of FilterFactory2. You will find it defined at the top of
the class...

    /*
     * Factories that we will use to create style and filter objects
     */
    private StyleFactory sf = CommonFactoryFinder.getStyleFactory(null);
    private FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(null);
    private GeometryFactory geomFactory =
JTSFactoryFinder.getGeometryFactory(null);

> and can you explain to me what is this code for
> FeatureCollection<SimpleFeatureType, SimpleFeature> selectedFeatures =
>                    featureSource.getFeatures(filter);
>
>            FeatureIterator<SimpleFeature> iter =
> selectedFeatures.features();
>            Set<FeatureId> IDs = new HashSet<FeatureId>();
>

Have a look at these related pages in the user guide for more background:

http://docs.codehaus.org/display/GEOTDOC/02+Filter
http://docs.codehaus.org/display/GEOTDOC/Filter+Examples
http://docs.codehaus.org/display/GEOTDOC/06+FeatureSource

Hope this helps.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
mbedward

Re: pom file

Reply Threaded More More options
Print post
Permalink
In reply to this post by dadar
2009/10/5 dadar wrote:
>
> can I get the center coordinate (x,y) from an area??
>

What sort of area ? ReferencedEnvelope, Polygon, screen area, something else ?

You need to be as specific as you can when posting your questions.
Also, it's a good idea to post with a relevant subject header (rather
than pom file) so that you attract the attention of other list
members.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users