<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Design: Instances of Geometry do not have a Spatial Reference in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/design-instances-of-geometry-do-not-have-a-spatial/m-p/94572#M278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We do not really understand why the implemented geometries (Point, Envelope, Polygon and so on) do not have a spatial reference. For each spatial operation on geometries you have to know the spatial reference of each. So we come up with defining our on class wrapping the geometry implementation and offering the access to the corresponding spatial reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
public class SpatialGeometry {

 private final Geometry geometry;
 private final SpatialReference spatialReference;
 
 public SpatialGeometry(Geometry geometry, SpatialReference spatialReference) {
&amp;nbsp; this.geometry = geometry;
&amp;nbsp; this.spatialReference = spatialReference;
 }
 
 public static SpatialGeometry createWgs84Geometry(Geometry geometry) {
&amp;nbsp; return new SpatialGeometry(geometry, SpatialReference.create(SpatialReferenceCode.Wgs84.getCode()));
 }
 .
 .
 . 

 public Geometry getGeometry() {
&amp;nbsp; return geometry;
 }

 public SpatialReference getSpatialReference() {
&amp;nbsp; return spatialReference;
 }
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be nice to get some feedback why the geometries are implemented without having a spatial reference.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2012 22:44:59 GMT</pubDate>
    <dc:creator>Jan-Tschada</dc:creator>
    <dc:date>2012-04-09T22:44:59Z</dc:date>
    <item>
      <title>Design: Instances of Geometry do not have a Spatial Reference</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/design-instances-of-geometry-do-not-have-a-spatial/m-p/94572#M278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We do not really understand why the implemented geometries (Point, Envelope, Polygon and so on) do not have a spatial reference. For each spatial operation on geometries you have to know the spatial reference of each. So we come up with defining our on class wrapping the geometry implementation and offering the access to the corresponding spatial reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
public class SpatialGeometry {

 private final Geometry geometry;
 private final SpatialReference spatialReference;
 
 public SpatialGeometry(Geometry geometry, SpatialReference spatialReference) {
&amp;nbsp; this.geometry = geometry;
&amp;nbsp; this.spatialReference = spatialReference;
 }
 
 public static SpatialGeometry createWgs84Geometry(Geometry geometry) {
&amp;nbsp; return new SpatialGeometry(geometry, SpatialReference.create(SpatialReferenceCode.Wgs84.getCode()));
 }
 .
 .
 . 

 public Geometry getGeometry() {
&amp;nbsp; return geometry;
 }

 public SpatialReference getSpatialReference() {
&amp;nbsp; return spatialReference;
 }
}
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be nice to get some feedback why the geometries are implemented without having a spatial reference.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 22:44:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/design-instances-of-geometry-do-not-have-a-spatial/m-p/94572#M278</guid>
      <dc:creator>Jan-Tschada</dc:creator>
      <dc:date>2012-04-09T22:44:59Z</dc:date>
    </item>
  </channel>
</rss>

