Re: [Geotools-gt2-users] How to add polygons on existing map?

2013-01-15 Thread Michael Bedward
Hello, Again, it's hard to know without knowing more about the other parts of your code and your data. If you can send me a *small* example app (off-list or via a paste site) which displays the problem I'll have a look at it and see if it's a gt-swing problem. Michael On 16 January 2013 16:12,

Re: [Geotools-gt2-users] How to add polygons on existing map?

2013-01-15 Thread Boided
Hi, Actually after creating the Points layer , I am adding it to my MapContent. I have created this layer on some event (for eg: jump to a particular lat/lon point) and then added this layer to the MapContent by map.addLayer(layer) method.. thats it. do i need to add something else also?

Re: [Geotools-gt2-users] generating large map bitmaps?

2013-01-15 Thread Michael Bedward
Hi Akos, Andrea, Jody and others here are rendering gurus and I hope they will follow with more expert advice, but I'll get the ball rolling... If the destination image fits into available memory then yes, simply create a Graphics2D instance from the image and pass that to the renderer. If the d

Re: [Geotools-gt2-users] How to add polygons on existing map?

2013-01-15 Thread Michael Bedward
Hello, Sorry, but it's hard to answer your question because you don't describe or show how you are using the Layer that your method creates, or describe the other layers and viewport settings associated with your MapContent. I can't see anything obviously wrong with your method, although I haven'

Re: [Geotools-gt2-users] Parsing failed for TimePeriod: java.lang.ClassCastExeption. Is this a bug?

2013-01-15 Thread hda...@gmail.com
Thanks, I did what you suggested, the JIRA number is GEOT-4371 - Parsing failed for TimePeriod Cheers, ...-H -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Parsing-failed-for-TimePeriod-java-lang-ClassCastExeption-Is-this-a-bug-tp5027026p5027695.html Sent from the geotoo

[Geotools-gt2-users] generating large map bitmaps?

2013-01-15 Thread Ákos Maróy
Hi, I'd like to create considerably large bitmaps by rendering SLD-styled layers using the geotools API. The rendering part looks straightforward, with a DataSource, Style created via SLDParser, StreamingRenderer, FeatureLayer, MapContent, etc. objects. But, it seems that creating large bitmaps us

[Geotools-gt2-users] GML 3.1.1 bindings for encoding Geometry types in GeoTools 8.3

2013-01-15 Thread Jurrian Hartveldt
Dear GeoTools users, I've successfully created GeoTools (8.3) bindings for parsing and encoding XML bindings as described in their tutorial: http://docs.geotools.org/latest/userguide/library/xml/internal/bindings.html I can parse the XML data + GML 3.1.1 geometries successfully, including combin

Re: [Geotools-gt2-users] How to add polygons on existing map?

2013-01-15 Thread Boided
Hi guys, I tried the above example for adding the polygon on a map.. but my new layer is not getting displayed on the map.. instead the point is displayed when i click reset and that too out of the map.. what could be the reason for this? below is the code.. public static Layer getPoin

[Geotools-gt2-users] Shapefile export from PostGIS

2013-01-15 Thread Ziegler Stefan
Hi I do have some problems when trying to export some data from PostGIS into Shapefile directory datastore (see code below). After some try and error I think it has something to do with the position of the geometry column in PostGIS. If the primary key is the first and the geometry column the