Monday, 1 January 2018

java - How to add Opencarto to a Geotools project?


I've installed geotools through maven (and m2ecplise) but I'm not able to add opencarto library to my project. (As you can guess, I'm new to java)


I tried by adding opencarto's main folder as library through the Project panel, but still, maven is not proposing me opencarto as dependency when I try to find it.


Any idea of what I'm doing wrong?


(this is probably a question for you Julien. I sent you a mail through sourceforge. I'm not sure you got it ... anyway, it's a good thing to make noise around opencarto since it seems very interesting!)



Answer



Maven can only handle libraries that are deployed on a maven repository, and Opencarto is not deployed anywhere, so you cannot get it with maven. To use it, you may use one of these methods:





  1. you download an opencarto jar from there and include it in your eclipse project (you also need jts, xstream and xpp3_min)




  2. you checkout the snapshot version of opencarto from the SVN as a new eclipse project, and add this project to your project's build path.




Good luck! (and thanks for using my lib - you are the first!)


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...