Hello Doeslei,

Firstly, I've moved your question from the developer list to the user
list. Please subscribe to the user list if you are not already a
member: http://docs.geotools.org/latest/userguide/welcome/userlistguide.html

> I was like in this tutorial, but I'm not finding the library
> org.geotools.data.postgis.PostgisNGDataStoreFactory, nor the command
> Map <String, Object> connectionParameters wizard.getConnectionParameters =
> ();
> Is there another component I'm missing? or is some library that I forgot to
> include? Thanks for the input of all.

It sounds like you do not have the necessary modules (jars) included.
You mentioned previously that you are using NetBeans but didn't say
whether you are using Maven as your build tool or adding jars manually
to your project. If you are using Maven you need to include both the
gt-jdbc-postgis and gt-swing modules for that tutorial to work.

Ah !  Looking at that tutorial page it seems that the instructions for
including those modules in your maven pom.xml file have disappeared.
I'll fix that up now.

In general, with any GeoTools module you can look it up in the user
manual and find out how to specify it in your project. The PostGIS
module page shows the dependency entry which should be in your maven
pom.xml file:

http://docs.geotools.org/latest/userguide/library/jdbc/postgis.html

When you are not sure what GeoTools module a class belongs to you can
usually find it listed in the top section of the javadoc page for the
class. For example, the PostGISNGDataStoreFactory page:

http://docs.geotools.org/latest/javadocs/org/geotools/data/postgis/PostgisNGDataStoreFactory.html

lists the following:

Module:
modules/plugin/jdbc-postgis (gt-jdbc-postgis.jar)

If you are not using Maven I strongly encourage you to do so because
GeoTools is hard without it and NetBeans has excellent support for
Maven projects.

Please let us know if this helps.

Michael

------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to