Hi,
I checked the coordinate refernece system (crs) of the feature type its the
right one, the epsg database works
PROJCS["DHDN / Gauss-Kruger zone 2",
GEOGCS["DHDN",
DATUM["Deutsches Hauptdreiecksnetz",
SPHEROID["Bessel 1841", 6377397.155, 299.1528128,
AUTHORITY["EPSG","7004"]],
TOWGS84[612.4, 77.0, 440.2, -0.054, 0.057, -2.797, 0.5259752559300956],
AUTHORITY["EPSG","6314"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH],
AUTHORITY["EPSG","4314"]],
PROJECTION["Transverse Mercator", AUTHORITY["EPSG","9807"]],
PARAMETER["central_meridian", 6.0],
PARAMETER["latitude_of_origin", 0.0],
PARAMETER["scale_factor", 1.0],
PARAMETER["false_easting", 2500000.0],
PARAMETER["false_northing", 0.0],
UNIT["m", 1.0],
AXIS["Easting", EAST],
AXIS["Northing", NORTH],
AUTHORITY["EPSG","31466"]]
how can I check the crs of the feature collection? the code snippet on geotools
doesn't work
http://communitymapbuilder.org/display/GEOTDOC/08+FeatureCollection
I want to check that, because I think that the feature collection doesn't bear
it. Or can I define a global crs on the feature collection?
Regards,
Daniel
Subject: Re: [Geotools-gt2-users] FeatureCollection in Geotools 2.4.2
From: [email protected]
Date: Tue, 27 Apr 2010 02:04:21 +1000
CC: [email protected]
To: [email protected]
Make sure you have an "epsg" jar in the mix; you can also go through all the
codes and see if 31466 is even defined. When you use an older version of
geotools you are often using a very old EPSG database.
Jody
On 27/04/2010, at 1:25 AM, Daniel Moraru wrote:
Hi List,
I am bounded by an application on geotools version 2.4.2 and have to make a
Feature Collection.
My Problem is that the application doesn’t recognize the CRS. I tried two
possible ways (see code line 5 and 6) to set the CRS to the feature type and so
to the feature collection, but nothing works.
I have points with each a single value and all the same coordinate reference
system CRS. How can I put all this data in a FeatureCollection?
My code:
1 FeatureCollection collection = FeatureCollections.newCollection();
2 FeatureTypeBuilder featurebuilder = FeatureTypeBuilder.newInstance("TEST");
3 CoordinateReferenceSystem coordrs = CRS.decode("EPSG:31466");
4 FeatureType type = null;
5 type = DataUtilities.createType("stype = DataUtilities.createSubType(type,
null, coordrs);os", "geom:Point,crs:String,value:Double");
6 type = DataUtilities.createSubType(type, null, coordrs);
7 collection.add(type.create(new Object[] {geomFactory.createPoint(new
Coordinate(xcoord,ycoord)),time, obs}));
How would you do it?
Regards
Daniel
Ihre Daten brauchen Platz? SkyDrive gibt Ihnen 25 GB - gratis!
------------------------------------------------------------------------------
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
_________________________________________________________________
http://redirect.gimas.net/?n=M1004xWin72
Windows 7 - Alles was Du brauchst und noch viel mehr!------------------------------------------------------------------------------
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users