Re: Geotools-gt2-users Digest, Vol 40, Issue 32

9 messages Options
Embed this post
Permalink
Tom Williamson

Re: Geotools-gt2-users Digest, Vol 40, Issue 32

Reply Threaded More More options
Print post
Permalink


Some feedback for you -

I started out with the "Quickstart" example which works great (at least as
far as printing out the version number).   Then I moved on to the
ShapeLab.java example (using the same Netbeans project).

The JMapPane class could not be found, using the same POM.XML build file as
the Quickstart.

On a hunch I added "gt-swing" as a dependency:

        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-swing</artifactId>
            <version>${geotools.version}</version>
        </dependency>

Now it finds the JMapPane class, but chokes on the ZoomIn, ZoomOut etc
members of the JMapPane:


org/geotools/demo/ShapeLab.java:[162,41] cannot find symbol

could not parse error message:   symbol:   variable ZoomIn
  location: class JMapPane

I hope this helps you.   I really like GeoTools and am looking forward to
actually using it.  :-)



> From: Michael Bedward [mailto:[hidden email]]
> Sent: 19 September 2009 10:50
> To: Andy Turner
> Cc: [hidden email]
> Subject: Re: [Geotools-gt2-users] Problem getting started with GeoTools
> 2.6 M2
>
>> I've still not made progress, but I'll be patient and wait a few days
>> then have another try.
>>
>
> G'day Andy,
>
> If the corrected pom didn't help I'd be keen to hear what sort of
> problems you're still having. Jody and I are trying to whip the
> quickstart and example pages and code into shape at the moment so any
> feedback would be very helpful.
>
> cheers
> 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: Geotools-gt2-users Digest, Vol 40, Issue 32

Reply Threaded More More options
Print post
Permalink
Hello Tom,

Sorry for this confusion. We're in the midst of updating the example
pages and code right now, driven by the needs of GeoTools
presentations at the upcoming FOSS4G conference, and things are a bit
volatile. For instance, I'm just about to change the Quickstart page
again.

There will be a 2.6-M3 milestone release in the next few days and the
new Quckstart and Examples pages will be in sync with that.  In the
meantime, please post any questions on the list here and we'll do our
best to help you out.

Thanks for the feedback your patience :)

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
Tom Williamson

Re: Geotools-gt2-users Digest, Vol 40, Issue 32

Reply Threaded More More options
Print post
Permalink
Thanks for the quick response.   I'll stay out of the way for a few days and
wait for the dust to settle.   Hope the conference goes well for you.

Tom

----- Original Message -----
From: "Michael Bedward" <[hidden email]>
To: "Tom Williamson" <[hidden email]>; "geotools users"
<[hidden email]>
Sent: Tuesday, September 22, 2009 7:02 PM
Subject: Re: [Geotools-gt2-users] Geotools-gt2-users Digest, Vol 40, Issue
32


> Hello Tom,
>
> Sorry for this confusion. We're in the midst of updating the example
> pages and code right now, driven by the needs of GeoTools
> presentations at the upcoming FOSS4G conference, and things are a bit
> volatile. For instance, I'm just about to change the Quickstart page
> again.
>
> There will be a 2.6-M3 milestone release in the next few days and the
> new Quckstart and Examples pages will be in sync with that.  In the
> meantime, please post any questions on the list here and we'll do our
> best to help you out.
>
> Thanks for the feedback your patience :)
>
> 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
Jody Garnett-2

Re: Geotools-gt2-users Digest, Vol 40, Issue 32

Reply Threaded More More options
Print post
Permalink
Actually Tom could we ask you to test a draft version of the
"quickstart" document? we have two sets of instructions one for
eclipse and one for netbeans... let me know and I can email you a copy
off list.

Jody

On Wed, Sep 23, 2009 at 1:36 PM, Tom Williamson <[hidden email]> wrote:

> Thanks for the quick response.   I'll stay out of the way for a few days and
> wait for the dust to settle.   Hope the conference goes well for you.
>
> Tom
>
> ----- Original Message -----
> From: "Michael Bedward" <[hidden email]>
> To: "Tom Williamson" <[hidden email]>; "geotools users"
> <[hidden email]>
> Sent: Tuesday, September 22, 2009 7:02 PM
> Subject: Re: [Geotools-gt2-users] Geotools-gt2-users Digest, Vol 40, Issue
> 32
>
>
>> Hello Tom,
>>
>> Sorry for this confusion. We're in the midst of updating the example
>> pages and code right now, driven by the needs of GeoTools
>> presentations at the upcoming FOSS4G conference, and things are a bit
>> volatile. For instance, I'm just about to change the Quickstart page
>> again.
>>
>> There will be a 2.6-M3 milestone release in the next few days and the
>> new Quckstart and Examples pages will be in sync with that.  In the
>> meantime, please post any questions on the list here and we'll do our
>> best to help you out.
>>
>> Thanks for the feedback your patience :)
>>
>> 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
>

------------------------------------------------------------------------------
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: Geotools-gt2-users Digest, Vol 40, Issue 32

Reply Threaded More More options
Print post
Permalink
2009/9/26 Tom Williamson wrote:
> I forgot to mention, I'm using Netbeans.

Hi Tom,

It would be great for us if you could try out the Netbeans side of the
course notes. They cover the same example application as the web page
(http://geotools.org/quickstart.html) but also discuss working with
Netbeans + maven or Netbeans + manually installed jars.

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
Tom Williamson

Proofing Netbeans Quickstart (was: Re: Geotools-gt2-users Digest, Vol 40, Issue 32)

Reply Threaded More More options
Print post
Permalink
Got as far as the second example, and it looks like there might be some
dependencies missing.   Here is the build output:

NetBeans: Executing
'F:\JavaSoftware\apache-maven-2.2.1\bin\mvn.bat -Dnetbeans.execution=true
clean install'
NetBeans:      JAVA_HOME =C:\Program Files\Java\jdk1.6.0_14
Scanning for projects...
------------------------------------------------------------------------
Building gttest1
   task-segment: [clean, install]
------------------------------------------------------------------------
[clean:clean]
Deleting directory C:\Users\tomw\Documents\NetBeansProjects\gttest1\target
[resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
Copying 0 resource
[compiler:compile]
Compiling 3 source files to
C:\Users\tomw\Documents\NetBeansProjects\gttest1\target\classes
------------------------------------------------------------------------
[ERROR]BUILD FAILURE
------------------------------------------------------------------------
Compilation failure

org/geotools/demo/Quickstart.java:[15,24] cannot find symbol
symbol  : class FileDataStore
location: package org.geotools.data

org/geotools/demo/Quickstart.java:[17,23] package org.geotools.map does not
exist

org/geotools/demo/Quickstart.java:[18,23] package org.geotools.map does not
exist

org/geotools/demo/Quickstart.java:[19,25] package org.geotools.swing does
not exist

org/geotools/demo/Quickstart.java:[20,30] package org.geotools.swing.data
does not exist

org/geotools/demo/Quickstart.java:[34,20] cannot find symbol
symbol  : variable JFileDataStoreChooser
location: class org.geotools.demo.Quickstart

org/geotools/demo/Quickstart.java:[39,8] cannot find symbol
symbol  : class FileDataStore
location: class org.geotools.demo.Quickstart

org/geotools/demo/Quickstart.java:[39,49] getDataStore(java.net.URL) in
org.geotools.data.FileDataStoreFinder cannot be applied to (java.io.File)

org/geotools/demo/Quickstart.java:[43,8] cannot find symbol
symbol  : class MapContext
location: class org.geotools.demo.Quickstart

org/geotools/demo/Quickstart.java:[43,29] cannot find symbol
symbol  : class DefaultMapContext
location: class org.geotools.demo.Quickstart

org/geotools/demo/Quickstart.java:[47,8] cannot find symbol
symbol  : variable JMapFrame
location: class org.geotools.demo.Quickstart


------------------------------------------------------------------------
For more information, run Maven with the -e switch
------------------------------------------------------------------------
Total time: 3 seconds
Finished at: Fri Sep 25 20:11:15 MST 2009
Final Memory: 12M/22M
------------------------------------------------------------------------



----- Original Message -----
From: "Michael Bedward" <[hidden email]>
To: "Tom Williamson" <[hidden email]>; "geotools users"
<[hidden email]>
Sent: Friday, September 25, 2009 4:32 PM
Subject: Re: [Geotools-gt2-users] Geotools-gt2-users Digest, Vol 40, Issue
32


> 2009/9/26 Tom Williamson wrote:
>> I forgot to mention, I'm using Netbeans.
>
> Hi Tom,
>
> It would be great for us if you could try out the Netbeans side of the
> course notes. They cover the same example application as the web page
> (http://geotools.org/quickstart.html) but also discuss working with
> Netbeans + maven or Netbeans + manually installed jars.
>
> 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: Proofing Netbeans Quickstart (was: Re: Geotools-gt2-users Digest, Vol 40, Issue 32)

Reply Threaded More More options
Print post
Permalink
Hi Tom,

Oops ! That error is due to code changes since 2.6-M2 was released.
Another example of the current creative chaos :-)

It's probably best to leave the web page as it is for the moment
because we will be releasing 2.6-M3 shortly which will fix that
problem.  Meanwhile, you can get the quickstart app working by using
the pom.xml below which uses the GeoTools snapshot development version
and specifies the snapshot repository.

Thanks for bearing with us !

Michael

    <project xmlns="http://maven.apache.org/POM/4.0.0"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>org.geotools.demo</groupId>
      <artifactId>example</artifactId>
      <packaging>jar</packaging>
      <version>1.0-SNAPSHOT</version>
      <name>example</name>
      <url>http://maven.apache.org</url>
      <properties>
        <geotools.version>2.6-SNAPSHOT</geotools.version>
      </properties>
      <dependencies>
        <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>org.geotools</groupId>
          <artifactId>gt-main</artifactId>
          <version>${geotools.version}</version>
        </dependency>
      </dependencies>
      <repositories>
        <repository>
          <id>maven2-repository.dev.java.net</id>
          <name>Java.net repository</name>
          <url>http://download.java.net/maven/2</url>
        </repository>
        <repository>
          <id>osgeo</id>
          <name>Open Source Geospatial Foundation Repository</name>
          <url>http://download.osgeo.org/webdav/geotools/</url>
        </repository>
        <repository>
          <id>osgeo-snapshots</id>
          <name>Snapshot Repository</name>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
          <url>http://repo.opengeo.org/</url>
        </repository>
      </repositories>
    </project>

------------------------------------------------------------------------------
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
Tom Williamson

Re: Proofing Netbeans Quickstart (was: Re: Geotools-gt2-users Digest, Vol 40, Issue 32)

Reply Threaded More More options
Print post
Permalink
I had to add gt-swing to get it to compile, but it worked!   Here's the
final pom.xml:


<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.mycompany</groupId>
    <artifactId>gttest1</artifactId>
    <packaging>jar</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>gttest1</name>
    <url>http://maven.apache.org</url>
    <properties>
        <geotools.version>2.6-SNAPSHOT</geotools.version>
    </properties>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.0.2</version>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-main</artifactId>
            <version>${geotools.version}</version>
        </dependency>
        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-shapefile</artifactId>
            <version>${geotools.version}</version>
        </dependency>
        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-epsg-hsql</artifactId>
            <version>${geotools.version}</version>
        </dependency>
        <dependency>
            <groupId>org.geotools</groupId>
            <artifactId>gt-swing</artifactId>
            <version>${geotools.version}</version>
        </dependency>
    </dependencies>
    <repositories>
        <repository>
            <id>maven2-repository.dev.java.net</id>
            <name>Java.net repository</name>
            <url>http://download.java.net/maven/2</url>
        </repository>
        <repository>
            <id>osgeo</id>
            <name>Open Source Geospatial Foundation Repository</name>
            <url>http://download.osgeo.org/webdav/geotools/</url>
        </repository>
        <repository>
          <id>osgeo-snapshots</id>
          <name>Snapshot Repository</name>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
          <url>http://repo.opengeo.org/</url>
        </repository>

    </repositories>
</project>


----- Original Message -----
From: "Michael Bedward" <[hidden email]>
To: "Tom Williamson" <[hidden email]>
Cc: "geotools users" <[hidden email]>
Sent: Friday, September 25, 2009 9:01 PM
Subject: Re: Proofing Netbeans Quickstart (was: Re: [Geotools-gt2-users]
Geotools-gt2-users Digest, Vol 40, Issue 32)


> Hi Tom,
>
> Oops ! That error is due to code changes since 2.6-M2 was released.
> Another example of the current creative chaos :-)
>
> It's probably best to leave the web page as it is for the moment
> because we will be releasing 2.6-M3 shortly which will fix that
> problem.  Meanwhile, you can get the quickstart app working by using
> the pom.xml below which uses the GeoTools snapshot development version
> and specifies the snapshot repository.
>
> Thanks for bearing with us !
>
> Michael
>
>    <project xmlns="http://maven.apache.org/POM/4.0.0"
>            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>            xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
>      <modelVersion>4.0.0</modelVersion>
>      <groupId>org.geotools.demo</groupId>
>      <artifactId>example</artifactId>
>      <packaging>jar</packaging>
>      <version>1.0-SNAPSHOT</version>
>      <name>example</name>
>      <url>http://maven.apache.org</url>
>      <properties>
>        <geotools.version>2.6-SNAPSHOT</geotools.version>
>      </properties>
>      <dependencies>
>        <dependency>
>          <groupId>junit</groupId>
>          <artifactId>junit</artifactId>
>          <scope>provided</scope>
>        </dependency>
>        <dependency>
>          <groupId>org.geotools</groupId>
>          <artifactId>gt-main</artifactId>
>          <version>${geotools.version}</version>
>        </dependency>
>      </dependencies>
>      <repositories>
>        <repository>
>          <id>maven2-repository.dev.java.net</id>
>          <name>Java.net repository</name>
>          <url>http://download.java.net/maven/2</url>
>        </repository>
>        <repository>
>          <id>osgeo</id>
>          <name>Open Source Geospatial Foundation Repository</name>
>          <url>http://download.osgeo.org/webdav/geotools/</url>
>        </repository>
>        <repository>
>          <id>osgeo-snapshots</id>
>          <name>Snapshot Repository</name>
>          <snapshots>
>            <enabled>true</enabled>
>          </snapshots>
>          <url>http://repo.opengeo.org/</url>
>        </repository>
>      </repositories>
>    </project>


------------------------------------------------------------------------------
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: Proofing Netbeans Quickstart (was: Re: Geotools-gt2-users Digest, Vol 40, Issue 32)

Reply Threaded More More options
Print post
Permalink
Thanks very much Tom !

If you're keen there are two other pages example pages that are ready
to look at:

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

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

cheers
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