|
|
|
Lee Goddard-3
|
I am new to GeoTools, and would like to use the
org.geotools.renderer.geom.Polygon class in my Maven project. I have tried all the repositories I could find with Google, but to no avail. Not sure what I am doing wrong. Could somebody kindly help me out by supply the pom.xml repository and dependency nodes? Many thansk in anticipation Lee ------------------------------------------------------------------------------ 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
|
Have a look at the quickstart; it lists the repositories needed to
grab geotools. The org.geotools.renderer.geom.Polygon class is a Java shape that is created just for rendering. The more useful object is a JTS Polygon .... Cheers Jody On Mon, Oct 5, 2009 at 7:36 PM, Lee Goddard <[hidden email]> wrote: > I am new to GeoTools, and would like to use the > org.geotools.renderer.geom.Polygon class in my Maven project. > > I have tried all the repositories I could find with Google, but to no > avail. Not sure what I am doing wrong. > > Could somebody kindly help me out by supply the pom.xml repository and > dependency nodes? > > Many thansk in anticipation > Lee > > > ------------------------------------------------------------------------------ > 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
|
Hello Lee,
Just to follow up on Jody's reply - here is the link to the Quickstart example http://geotools.org/quickstart.html Michael 2009/10/5 Jody Garnett <[hidden email]>: > Have a look at the quickstart; it lists the repositories needed to > grab geotools. > > The org.geotools.renderer.geom.Polygon class is a Java shape that is > created just for rendering. The more useful object is a JTS Polygon > .... > > Cheers > Jody > ------------------------------------------------------------------------------ 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 |
||||||||||||||||
|
Lee Goddard-3
|
Thanks, Michael. I replied to Jody earlier by mistake, meant to send the
following to the list: Thanks for the reply. There are no line breaks or unexpected chars in the cut and paste, which is into a POM that otherwise is fine. Looking at the error, it says the source of the problem is not my own POM, but that for "Project ID: org.opengis:geoapi" - the rest of the report is beyond me, though it seems to suggest that the metadata file used for the snapshots is illegal XML. Indeed, check the XML, I see the same error (in IE). I deleted the local cache directory specified, added the repos listed on http://docs.codehaus.org/display/GEOTDOC/03+First+Project#03FirstProject-POM.XML Then ran mvn clean resources:resouces package, and I get the below: am I wrong in thinking this is the file? [ERROR] BUILD ERROR [INFO] Error building POM (may not be this project's POM). Project ID: org.opengis:geoapi Reason: Error getting POM for 'org.opengis:geoapi' from the repository: Unable to read local copy of metadata: Cannot read metadata from 'C:\Users\Lee\.m2\repo itory\org\opengis\geoapi\2.2-SNAPSHOT\maven-metadata-osgeo-snapshots.xml': start tag unexpected character ; (position: TEXT seen ...ument.body.offsetWidth;\n\t t\t\t};\n\t\t\t\tfor (x=0; x<bannersizes.length;... @41:36) org.opengis:geoapi:pom:2.2-SNAPSHOT for project org.opengis:geoapi I deleted the dir contents, re-ran, and now get a different error: Downloading: http://repo.osgeo.org//org/geotools/gt-main/2.6/gt-main-2.6.jar [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '3ceb76faca8e07003b79927ce3966790ffff4e78'; remote = '<html> <head> <title>OpenDNS</title> </head> <body' - RETRYING Downloading: http://repo.osgeo.org//org/geotools/gt-main/2.6/gt-main-2.6.jar 2K downloaded [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '3ceb76faca8e07003b79927ce3966790ffff4e78'; remote = '<html> <head> <title>OpenDNS</title> </head> <body' - IGNORING [INFO] [compiler:compile] [INFO] Compiling 32 source files to C:\dev\src\bbc-earth\trunk\target\classes [ERROR] BUILD FAILURE [INFO] Compilation failure error: error reading C:\Users\Lee\.m2\repository\org\geotools\gt-main\2.6\gt-main-2.6.jar; error in opening zip file OpenDNS is my DNS server, and it is telling me the repo at http://repo.osgeo.org does not exist. Any thoughts appreciated. Jody Garnett wrote: > Looks like you are getting your pom xml files messed up with a cut and > paste? Cutting and pasting from a web browser is hard as it sometimes > dumps extra stuff in there... I would delete stuff until your pom is > valid again and the put it together bit by bit > > > Jody > > On Mon, Oct 5, 2009 at 8:48 PM, Lee Goddard <[hidden email]> wrote: > >> Thanks, Jody. I've been having problems with the POM nodes on that >> page. >> When I add them, they produce: >> >> [ERROR] BUILD ERROR >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Error building POM (may not be this project's POM). >> >> >> Project ID: org.opengis:geoapi >> >> Reason: Error getting POM for 'org.opengis:geoapi' from the repository: >> Unable to read local copy of metadata: Cannot read metadata from >> 'C:\Users\Lee\.m2\repoitory\org\opengis\geoapi\2.2-SNAPSHOT\maven-metadata-osgeo-snapshots.xml': >> >> start tag unexpected character ; (position: TEXT seen >> ...ument.body.offsetWidth;\n\t >> t\t\t};\n\t\t\t\tfor (x=0; x<bannersizes.length;... @41:36) >> org.opengis:geoapi:pom:2.2-SNAPSHOT >> for project org.opengis:geoapi >> >> >> Also, thanks for the JTS Polygon tip - I'll check it out. I'm trying to >> reduce huge KML files by merging polygons and dropping those within >> other >> polygons. I'm not rendering, so appreciate the tip. >> >> Thanks for your help >> Lee >> >> Jody Garnett wrote: >> >>> Have a look at the quickstart; it lists the repositories needed to >>> grab geotools. >>> >>> The org.geotools.renderer.geom.Polygon class is a Java shape that is >>> created just for rendering. The more useful object is a JTS Polygon >>> .... >>> >>> Cheers >>> Jody >>> >>> On Mon, Oct 5, 2009 at 7:36 PM, Lee Goddard <[hidden email]> wrote: >>> >>> >>>> I am new to GeoTools, and would like to use the >>>> org.geotools.renderer.geom.Polygon class in my Maven project. >>>> >>>> I have tried all the repositories I could find with Google, but to no >>>> avail. Not sure what I am doing wrong. >>>> >>>> Could somebody kindly help me out by supply the pom.xml repository and >>>> dependency nodes? >>>> >>>> Many thansk in anticipation >>>> Lee >>>> >>>> ------------------------------------------------------------------------------ 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
|
Hi Lee
I figued out one of the problems you are reporting - the open geo repository is having trouble today; the DNS renewal is in process and has not arrived yet. Try commenting out that repository; and at least for today we will need to stick to non SNAPSHOT repositories. Jody On 05/10/2009, at 11:45 PM, Lee Goddard wrote: > Thanks, Michael. I replied to Jody earlier by mistake, meant to send > the > following to the list: > > > Thanks for the reply. > > There are no line breaks or unexpected chars in the cut and paste, > which > is into a POM that otherwise is fine. > > Looking at the error, it says the source of the problem is not my own > POM, but that for "Project ID: org.opengis:geoapi" - the rest of the > report is beyond me, though it seems to suggest that the metadata file > used for the snapshots is illegal XML. Indeed, check the XML, I see > the > same error (in IE). > > I deleted the local cache directory specified, added the repos > listed on > http://docs.codehaus.org/display/GEOTDOC/03+First+Project#03FirstProject-POM.XML > > > Then ran mvn clean resources:resouces package, and I get the below: > am I > wrong in thinking this is the file? > > [ERROR] BUILD ERROR > [INFO] Error building POM (may not be this project's POM). > Project ID: org.opengis:geoapi > Reason: Error getting POM for 'org.opengis:geoapi' from the > repository: > Unable to read local copy of metadata: Cannot read metadata from > 'C:\Users\Lee\.m2\repo > itory\org\opengis\geoapi\2.2-SNAPSHOT\maven-metadata-osgeo- > snapshots.xml': > start tag unexpected character ; (position: TEXT seen > ...ument.body.offsetWidth;\n\t > t\t\t};\n\t\t\t\tfor (x=0; x<bannersizes.length;... @41:36) > org.opengis:geoapi:pom:2.2-SNAPSHOT > for project org.opengis:geoapi > > I deleted the dir contents, re-ran, and now get a different error: > > > Downloading: http://repo.osgeo.org//org/geotools/gt-main/2.6/gt-main-2.6.jar > [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = > '3ceb76faca8e07003b79927ce3966790ffff4e78'; remote = '<html> > <head> > <title>OpenDNS</title> > </head> > > <body' - RETRYING > Downloading: http://repo.osgeo.org//org/geotools/gt-main/2.6/gt-main-2.6.jar > 2K downloaded > [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = > '3ceb76faca8e07003b79927ce3966790ffff4e78'; remote = '<html> > <head> > <title>OpenDNS</title> > </head> > > <body' - IGNORING > [INFO] [compiler:compile] > [INFO] Compiling 32 source files to > C:\dev\src\bbc-earth\trunk\target\classes > [ERROR] BUILD FAILURE > [INFO] Compilation failure > error: error reading > C:\Users\Lee\.m2\repository\org\geotools\gt-main\2.6\gt-main-2.6.jar; > error in opening zip file > > OpenDNS is my DNS server, and it is telling me the repo at > http://repo.osgeo.org does not exist. > > Any thoughts appreciated. > > > Jody Garnett wrote: >> Looks like you are getting your pom xml files messed up with a cut >> and >> paste? Cutting and pasting from a web browser is hard as it sometimes >> dumps extra stuff in there... I would delete stuff until your pom is >> valid again and the put it together bit by bit >> >> >> Jody >> >> On Mon, Oct 5, 2009 at 8:48 PM, Lee Goddard <[hidden email]> >> wrote: >> >>> Thanks, Jody. I've been having problems with the POM nodes on that >>> page. >>> When I add them, they produce: >>> >>> [ERROR] BUILD ERROR >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Error building POM (may not be this project's POM). >>> >>> >>> Project ID: org.opengis:geoapi >>> >>> Reason: Error getting POM for 'org.opengis:geoapi' from the >>> repository: >>> Unable to read local copy of metadata: Cannot read metadata from >>> 'C:\Users\Lee\.m2\repoitory\org\opengis\geoapi\2.2-SNAPSHOT\maven- >>> metadata-osgeo-snapshots.xml': >>> >>> start tag unexpected character ; (position: TEXT seen >>> ...ument.body.offsetWidth;\n\t >>> t\t\t};\n\t\t\t\tfor (x=0; x<bannersizes.length;... @41:36) >>> org.opengis:geoapi:pom:2.2-SNAPSHOT >>> for project org.opengis:geoapi >>> >>> >>> Also, thanks for the JTS Polygon tip - I'll check it out. I'm >>> trying to >>> reduce huge KML files by merging polygons and dropping those within >>> other >>> polygons. I'm not rendering, so appreciate the tip. >>> >>> Thanks for your help >>> Lee >>> >>> Jody Garnett wrote: >>> >>>> Have a look at the quickstart; it lists the repositories needed to >>>> grab geotools. >>>> >>>> The org.geotools.renderer.geom.Polygon class is a Java shape that >>>> is >>>> created just for rendering. The more useful object is a JTS Polygon >>>> .... >>>> >>>> Cheers >>>> Jody >>>> >>>> On Mon, Oct 5, 2009 at 7:36 PM, Lee Goddard <[hidden email]> >>>> wrote: >>>> >>>> >>>>> I am new to GeoTools, and would like to use the >>>>> org.geotools.renderer.geom.Polygon class in my Maven project. >>>>> >>>>> I have tried all the repositories I could find with Google, but >>>>> to no >>>>> avail. Not sure what I am doing wrong. >>>>> >>>>> Could somebody kindly help me out by supply the pom.xml >>>>> repository and >>>>> dependency nodes? >>>>> >>>>> Many thansk in anticipation >>>>> Lee >>>>> >>>>> > > > > ------------------------------------------------------------------------------ > 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 |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |