cocoahero / android-geojson Goto Github PK
View Code? Open in Web Editor NEWA complete GeoJSON implementation for Android.
License: MIT License
A complete GeoJSON implementation for Android.
License: MIT License
There is no way to define a Point with only two coordinates (x and y) and to obtain a "coordinates" JSON array with only 2 elements
Hi Jonathan,
I had my project configured with the following Gradle dependency:
compile 'com.cocoahero.android:geojson:1.0.+@aar'
And today my project compilation failed over the sdk level change:
com.cocoahero.android\geojson\1.0.1\AndroidManifest.xml:3] Main manifest has <uses-sdk android:targetSdkVersion='19'> but library uses targetSdkVersion='22' :app:processDebugManifest FAILED
For now I've changed my dependency to:
compile 'com.cocoahero.android:geojson:1.0.0'
Thanks.
Hi.
I think a very useful use case is able to move from GeoJSON structures GoogleMaps v2.
Something like myPoint.toGoogleMaps()
-> return a type Marker.
https://developer.android.com/reference/com/google/android/gms/maps/model/package-summary.html
Are there any plans to distribute this library via Maven Central so that it's easier to include in projects?
In a FeatureColletion using MultiPolygon, setOnFeatureClickListener, GeoJsonFeature param is null.
Example json:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"propriedade": "23036",
"nome_proprietario": "JOSE ROBERTO",
"area_total_prop": "71.14",
"nro_talhao": "1703",
"area_plantada": "18.1",
"torta_filtro": "NAO"
},
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[-49.093281151176,-20.113384173253],
[-49.093589253393,-20.113875294144],
[-49.09724089999,-20.112772191604],
[-49.096097349992,-20.110911183269],
[-49.094404572973,-20.110548321387],
[-49.092427668842,-20.111557516503],
[-49.092447776772,-20.112041951144],
[-49.093281151176,-20.113384173253]
]
],
[
[
[-49.090133616659,-20.107955749929],
[-49.089998202273,-20.108017962333],
[-49.093699012767,-20.110877210873],
[-49.094735683325,-20.108718633268],
[-49.092524366659,-20.108224949932],
[-49.091873983325,-20.107157633264],
[-49.090133616659,-20.107955749929]
]
]
]
}
},
]}
Please release a jar version to maven. I'm trying to bind a library in Xamarin that has geojson as a depency. Unfortunately it can't consume aar files but it can consume jars.
Like the attached file, after embedding a image data that is encoded to Base64 as one of properties in GeoJSON, the GeoJSON is downloaded to Android device and I tried to parse the GeoJSON. But it spends too much time to parse even though it's just 6 Features in the FeatureCollection. How can I overcome this issue?
Because here the attachment of geojson file extension is not permitted, instead I attached a link to download the GeoJSON (http://download.samarkandtour.org/en_shopping_20151002.geojson).
disregard. gid <> id
Please give use some examples for parsing GeoJSON. The example in Readme is useless for me
Library parses my geojson files properties well. I am not finding a way to get the coordinates out of the geometry area though?
Geometry g = parsed.getFeatures().get(i).getGeometry();
g.type() will give me polygon or multipolygon, but I am missing how I am to see the actual coordinates.
Thanks
I would like to use your library with Retrofit. This requires a converter factory which is used to introduce the parser to Retrofit.
// Retrofit 2 example with Gson
new Retrofit.Builder()
.baseUrl("https://raw.githubusercontent.com")
.addConverterFactory(GsonConverterFactory.create())
.build();
You can find Retrofit converters for other parsers here and use them as a starting point. It would be great if you can provide the converter factory.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.