Nevermind, I just saw the module names in the demo code ...<br><br><div class="gmail_quote">On Wed, Feb 2, 2011 at 16:02, Brian Schlining <span dir="ltr"><<a href="mailto:bschlining@gmail.com">bschlining@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Martin,<div><br></div><div>My code is not finding the following imports:</div><div><br></div><div><div>import org.geotoolkit.referencing.CRS</div>
<div>import org.geotoolkit.referencing.crs.DefaultGeographicCRS</div><div>
import org.geotoolkit.geometry.DirectPosition2D</div><div><br></div><div>I'm referencing your Maven repo at <a href="http://maven.geotoolkit.org/" target="_blank">http://maven.geotoolkit.org/</a> and including the following:</div>
<div>
group = "org.geotoolkit", module = "geotoolkit", version="3.16"</div><div>group = "org.opengis", module = "geoapi-pending", version="2.3-M9"</div><div><br></div>
<div>So I'm finding the opengis API with no problem, but I think I'm referencing the wrong geotoolkit module (there's a ton of them). Can you point me at ones I need to include the above classes?</div><div><br>
</div><div>Thanks</div><div>B<br><br></div><br><div class="gmail_quote"><div class="im">On Wed, Feb 2, 2011 at 15:29, Martin Desruisseaux <span dir="ltr"><<a href="mailto:martin.desruisseaux@geomatys.fr" target="_blank">martin.desruisseaux@geomatys.fr</a>></span> wrote:<br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Brian<br>
<br>
Le 03/02/11 00:19, Brian Schlining a écrit :<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a positions defined using latitude and longitude (WGS84) that I'd like to convert to UTM Zone 10N eastings and northings. How do I go about doing that using Geotoolkit?<br>
</blockquote></div>
On <a href="http://www.geotoolkit.org/demos/index.html" target="_blank">http://www.geotoolkit.org/demos/index.html</a> there is a (unfortunately very small) set of demo. The "Demonstration applets" are broken for now, but the "Demonstration code" are okay. The CoordinateConversion demo should give you a starting point. Take any method from this demo and set source/target CRS as below:<br>
<br>
sourceCRS = DefaultGeographicCRS.WGS84;<br>
targetCRS = CRS.decode("EPSG:32610");<br>
<br>
The following page may be worth a look: <a href="http://www.geotoolkit.org/modules/referencing/faq.html" target="_blank">http://www.geotoolkit.org/modules/referencing/faq.html</a><br>
Please let me know if you have any other issue!<br>
<br>
Regards,<br>
<br>
Martin<br>
<br>
_______________________________________________<br>
Geotoolkit mailing list<br>
<a href="mailto:Geotoolkit@lists.osgeo.org" target="_blank">Geotoolkit@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geotoolkit" target="_blank">http://lists.osgeo.org/mailman/listinfo/geotoolkit</a><br>
</blockquote></div></div></div><br><br clear="all"><div class="im"><br>-- <br>~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <br>Brian Schlining<br><a href="mailto:bschlining@gmail.com" target="_blank">bschlining@gmail.com</a><br>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ <br>Brian Schlining<br><a href="mailto:bschlining@gmail.com">bschlining@gmail.com</a><br>