If you look at the bottom of that program there is a
method createSimpleFeature which creates random points for the test code.
It should show you how to correctly create features from your polygon
coordinates,

You will also need to change


schema = DataUtilities.createType("", "Location",
"locations:Point:srid=4326," + // <- the geometry attribute:
// Point type
"name:String," + // <- a String attribute
"number:Integer" );

to build a polygon instead of a point.

Ian

On Wed, Mar 25, 2015 at 11:17 AM Lejdel <lejde...@live.com> wrote:

> Thank you for your reply , please, where i can enter the coordinates of my
> polygons
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.
> nabble.com/Polygon-to-Shapefile-tp5195100p5195344.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------
> ------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to