|
From: Sami D. <sk...@fr...> - 2005-09-23 00:10:41
|
Re
OK, actually, the method that has a metadata parameter is
AttributeTypeFactory.newInstance().
public static AttributeType newAttributeType(String name,
Class clazz,
boolean isNillable,
int fieldLength,
Object defaultValue)
ok, so I can put true to isNillable, but what does fieldLenght mean ?
and my previous question is still valid :
> - What is the string that I am supposed to pass to
> MemoryDataStore.getFeatureSource(String) ?
Thanks a lot,
Sami Dalouche
Quoting Sami Dalouche <sk...@fr...>:
> Hi,
>
> sorry to bother you once again, but I can't get this to run...
>
> - All FeatureTypeFactory methods are deprecated. Looks like we are supp=
osed
> to
> use FeatureTypeBuilder, but javadoc says that a builder instance is
> instanciated thanks to a FeatureTypeFactory.newInstance() method, which=
is
> deprecated...
> - Even inside deprecated methods, I don't see any CoordinateReferenceSy=
stem
> parameter
> - What is the string that I am supposed to pass to
> MemoryDataStore.getFeatureSource(String) ?
>
> Thanks a lot,
> Sami Dalouche
>
> Quoting Jody Garnett <jga...@re...>:
>
> > Sami Dalouche wrote:
> >
> > >Hi,
> > >
> > >I tried the MemoryDataStore approach, but don't really understand th=
e
> String
> > I'm
> > >supposed to pass to getFeatureSource..Javadoc doesn't help me either=
...
> > >
> > >So, I tried the approach explained on :
> > >http://www.geotools.org/The+Map
> > >
> > >it does display points, but does not seem to display them where I ex=
pect
> > them
> > >to.
> > >With the coordinates that appear here :
> > >Point point2 =3D geomFac.createPoint(new Coordinate(10.0, 10.0));
> > >are these coordinates supposed to be latitude / longitude ? If not, =
what
> is
> > the
> > >way to specify latitudes / longitudes ?
> > >
> > >
> > When you construct your FeaureType (of the feature you are about to a=
dd
> > to the MemoryDataStore) be sure to include a valid
> > CoordinateReferenceSystem object representing lat long - EPSG:4326 te=
nds
> > to work fine. I think there is even a java constant somewhere around
> > with this common value.
> >
> > CoordainteReferenceSystem crs =3D CRS.decode("EPSG:4326);
> >
> > You will need to assoicate this with your GeometryAttribute as the
> > "metadata" paraemter provided to the FeatureTypeFactory.
> > Cheers,
> > Jody
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by:
> > Tame your development challenges with Apache's Geronimo App Server.
> > Download it for free - -and be entered to win a 42" plasma tv or your=
very
> > own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo=
.php
> > _______________________________________________
> > Geotools-gt2-users mailing list
> > Geo...@li...
> > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> >
> >
>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your v=
ery
> own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.p=
hp
> _______________________________________________
> Geotools-gt2-users mailing list
> Geo...@li...
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
|