Code Monkey home page Code Monkey logo

android-geojson's People

Contributors

bleege avatar cocoahero avatar ligi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-geojson's Issues

Missing how to get the coordinates?

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

Documentation

Please give use some examples for parsing GeoJSON. The example in Readme is useless for me

Was the android sdk level change in 1.0.1 intentional?

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.

Retrofit integration

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.

Too much time to parse a GeoJSON including a big property.

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).

setOnFeatureClickListener not get proprieties from Multipolygon

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]
]
]
]
}
},
]}

Release jar to maven

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.

Points with no altitude

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.