Questions tagged [geotools]

GeoTools is an open source Java library that provides tools for geospatial data (http://geotools.org). Questions about programming using GeoTools are on topic here, while questions on geographic issues (while using GeoTools) should be asked on https://gis.stackexchange.com.

For questions about how to complete geographic tasks using the GeoTools library you may want to ask on https://gis.stackexchange.com/ to get answers, if your question focuses on programming issues with GeoTools then ask on this site.

565 questions
0
votes
1 answer

How to get all attribute names in SimpleFeature?

How to get all attribute names in SimpleFeature? I find no appropriate method. I can get all attributes by getAttributes, but I will loose names information. I can get attribute by name with getAttribute, but I should know a name first. So where is…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

geotools 10 RC1 + hsqldb 2.3

I'm currently working on a Swing project that uses hsqldb 2.3 as an optional database... This project has a map, and geotools also uses hsqldb, however it uses hsqldb 1.8. I tried to put them both working together but I get this exception: "Caused…
Shoyo
  • 349
  • 2
  • 9
0
votes
0 answers

GeoTools DirectLayer Class Issues

I'm working with DirectLayer to try and create a tool that I can use to draw boxes on a map that will be used to highlight features. I'm looking for a way to make features that will resize and move with zoom and pan operations and not cause issues…
NolanPower
  • 409
  • 3
  • 11
0
votes
1 answer

Which Geotools jar contains the "Encoder" class?

I am trying to export a JTS object to a KML file. I found here that this could be done using the Encoder class, however I can't seem to find the jar file that contains the given class. I am using maven, adding a repository is not an option, I must…
Zoltán
  • 21,321
  • 14
  • 93
  • 134
0
votes
1 answer

OpenTripPlanner getting started tutorial error

I'm trying to install OpenTripPlanner following the official tutorial. I've correctly cloned the git repository, then I import the project in Eclipse but it is unable to build all the packages. One of the error is "The import org.geotools cannot be…
Yuri
  • 365
  • 6
  • 13
0
votes
1 answer

Run geotools on web server?

I am trying run geotools on the web with postgis database and have been searching around how to run geotools in Java. What i found is geotools with applets. Does anyone know what is the best way to get geotools run on the web server. Is it possible…
Asma.O
  • 455
  • 2
  • 7
  • 19
0
votes
1 answer

How to include shapefile in swing application

I am new to gis based project. I am using netbeans IDE to include my shapefiles and i am sure that I have imported necessary jars to include shapefile. but its not working .when i run my application i am getting an null pointer exception in the…
0
votes
1 answer

GeoTools dependency not found by the m2e Eclipse plugin

I need to use GeoTools in a JAVA-Project I am developing using Eclipse and the m2e plugin. I have configured the following repository in my pom.xml: osgeo Open Source Geospatial Foundation Repository
Genti Saliu
  • 2,643
  • 4
  • 23
  • 43
0
votes
1 answer

How to write GML parser with Geotools?

I wrote a Parser for a GML file from the OS Mastermap with geotools 8.4. With one part I still have a problem. This sniplet of the xsd:
Burkhard
  • 14,596
  • 22
  • 87
  • 108
0
votes
1 answer

How to resort a collection in Java?

I try make a project to write data from .mif/.tab files to Data Base using GDAL/OGR. I do: SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(dbFeatureType); SimpleFeatureCollection collection = FeatureCollections.newCollection(); while…
Kliver Max
  • 5,107
  • 22
  • 95
  • 148
0
votes
3 answers

insert geospatial datatype( mutipolygon) in mysql with java( jdbc)

I am using geotools library to extract the location information. With that I am getting an object of type class com.vividsolutions.jts.geom.MultiPolygon I now want to store this field in my mysql table with a jdbc connection . When I directly try…
Prabesh Shrestha
  • 2,732
  • 4
  • 29
  • 44
0
votes
1 answer

Visual edit geographic data with geotools

With JMapFrame I have features for visualizing my geographic data, but I don´t know how to add tools for editing this data, as with a GIS application. Is it possible to do this? Regards, Augusto
-1
votes
1 answer

How can I split a MultyPolygon in JTS into Polygons?

I am using JTS and I have one big Multypolygon with seperated Areas. How can I get a List of Polygons representing these seperated areas. Thanks in Advance Lukas
-1
votes
1 answer

What is the difference between GDAL and GeoTools?

I need to develop GIS-related content in Java environment. I want to know whether the GDAL library and GeoTools are functionally the same. Can you use GeoTools directly to implement most of the functionality of GDAL?
-1
votes
2 answers

How to split a large JTS polygon into multiple 1 km by 1 km geometries?

I am using Java, Geotools and JTS. I have the envelope geometry of a large polygon's geometry. I want to split it up into a collection of polygons that are all 1 km by 1 km wide. Any idea for how to do this? Thank you. Peter
Peter
  • 21
  • 3
1 2 3
37
38