Hi,

my problem is to find the Geotools way to perform the PostGIS function 
"ST_GeographyFromText".

SimpleFeatureCollection featureCollection = FeatureCollections.newCollection();
Point geom = JTSFactoryFinder.getGeometryFactory(null).createPoint(new 
Coordinate(longitude, latitude));

featureBuilder.add(geom);

featureBuilder.add(geog); ??????

featureCollection.add(featureBuilder.buildFeature(null));

my table:

CREATE TABLE points
(
 fid serial NOT NULL,
 wkb_geometry geometry NOT NULL,
  wkb_geography geography(PointZ,4326) NOT NULL
  CONSTRAINT fid_pkey PRIMARY KEY (fid)
)

Thanks in advance,
Daniel
________________________________

Daniel Tuerk, Software Architect
Phone: +49 89 45 23 47 - 214
PGP-Fingerprint: F530B24F06047CE967BE739F15DD03CB4E9E400B

jambit GmbH
Erika-Mann-Str. 63, 80636 M?nchen
Phone: +49 89 45 23 47 - 0 Fax: +49 89 45 23 47 - 70

http://www.jambit.com where innovation works

Gesch?ftsf?hrer: Peter F. Fellinger, Markus Hartinger
Sitz: M?nchen; Registergericht: M?nchen, HRB 129139
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to