Hi Uday,
I just reproduced the steps and successfully loaded it to QGIS. no error in
the file.
Please go through all the explanations given in the thread. They've been
VERY basic.
If you're still not able to do it correctly, then you need to give some
exact details so that someone can help you. Like :
- what is size of saved file - if it's not around 39mb (some computers
calculate bytes differently (1024 vs 1000) so bit difference may be there
but explainable) - then you don't have the actual data file and you've
saved something else and are on wrong track
- what is extension of saved file - if it's not .geojson then you're on
wrong track.
- open the file in a text editor like VSCode and share the content up till
: " line 8 column 1" where you're getting the error. And if it's not
looking like:
{"type":"FeatureCollection", "features": [
{"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[71.2702884145729,23
....
... then you're on wrong track.
Sometimes it's just a messed-up download due to network issues and simply
repeating the download again solves it.
Do try looking up online for what the .geojson format looks like, compare
etc to catch out any obvious mistakes.
If you're convinced that you're following everything properly and still
getting it wrong, then make a screen recording, upload to youtube and share
the link so you can show exact process and get feedback.
--
Cheers,
Nikhil VJ
https://nikhilvj.co.in
On Sun, Apr 30, 2023 at 10:14 PM [email protected] <[email protected]>
wrote:
> Hello all,
>
> QGIS throws error when i tried to open these files. Even geojson.io is
> throwing up an error - "Invalid JSON file: SyntaxError: JSON.parse:
> unexpected character at line 8 column 1 of the JSON data". I am new to GIS
> and intersted to learn. Kindly look into this, as you have time. Any help
> is highly appreciated.
>
> Uday.
>
> On Friday, 11 November 2022 at 12:40:13 UTC+5:30 Nikhil VJ wrote:
>
>> Hi Rahul,
>>
>> Once you see the:
>>
>>> It is just opening a long list of lat and longs of feature polygon
>>>
>>
>> .. press Ctrl+S on your keyboard.
>> Save it to your computer. ensure that the file has extension as
>> ".geojson".
>>
>> That is the shapefile. There's various formats - this one is .geojson.
>> Devdatta mentioned another format which would be the .shp etc. All are
>> equally usable, all depends on your next step.
>>
>> Open QGIS or ArcGIS and drag-drop this in, you'll see it on map.
>> Or, go on https://geojson.io and drag-drop it there, you'll see it on
>> map.
>>
>> --
>> Cheers,
>> Nikhil VJ
>> https://nikhilvj.co.in
>>
>> On Tue, Nov 8, 2022 at 11:25 AM Devdatta Tengshe <[email protected]>
>> wrote:
>>
>>> Rahul,
>>>
>>> This data is in GeoJSON format, and not shapefile.
>>>
>>> Once you download the data in GeoJSON format, you can then convert it to
>>> a Shapefile using a GIS tool like QGIS, or one of many online convertors.
>>>
>>> Regards,
>>> Devdatta
>>>
>>>
>>> On Tue, 8 Nov 2022 at 10:38, Rahul Dhiman <[email protected]>
>>> wrote:
>>>
>>>> Hello Akula. First of all thankyou for taking time to create this shape
>>>> file and making our lives easier. Please can anybody tell me how to
>>>> download the data, as when I am clicking download. It is just opening a
>>>> long list of lat and longs of feature polygon. How I can download the shape
>>>> file?
>>>>
>>>> Regards,
>>>> Rahul
>>>>
>>>> On Monday, 22 August 2022 at 08:26:49 UTC+5:30 [email protected]
>>>> wrote:
>>>>
>>>>> Thank you!!!
>>>>>
>>>>> On Mon, Jul 11, 2022, 11:31 AM [email protected] <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I have updated INDIAN-DISTRICTS shapefile with all new districts
>>>>>> even including newly formed Andhra Pradesh districts counting a total of
>>>>>> 755 districts.
>>>>>>
>>>>>>
>>>>>> https://github.com/datta07/INDIAN-SHAPEFILES/blob/master/INDIA/INDIA_DISTRICTS.geojson
>>>>>>
>>>>>> Regards,
>>>>>> Akula Guru Datta
>>>>>> akuladatta.github.io
>>>>>>
>>>>>> --
>>>>>>
>>>>> Datameet is a community of Data Science enthusiasts in India. Know
>>>>>> more about us by visiting http://datameet.org
>>>>>> ---
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "datameet" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>>
>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/datameet/c586dac0-8513-4668-9eeb-d6181b7f1fc2n%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/datameet/c586dac0-8513-4668-9eeb-d6181b7f1fc2n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>> Datameet is a community of Data Science enthusiasts in India. Know more
>>>> about us by visiting http://datameet.org
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "datameet" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/datameet/ba012d6f-1686-430f-b440-417ec03e51cbn%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/datameet/ba012d6f-1686-430f-b440-417ec03e51cbn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> Datameet is a community of Data Science enthusiasts in India. Know more
>>> about us by visiting http://datameet.org
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "datameet" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/datameet/CAOQOUMtDEDaTWMDPLbyZ8BQERRRCRUjUwQ_nU8vOMCmQCS6uFw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/datameet/CAOQOUMtDEDaTWMDPLbyZ8BQERRRCRUjUwQ_nU8vOMCmQCS6uFw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> Datameet is a community of Data Science enthusiasts in India. Know more
> about us by visiting http://datameet.org
> ---
> You received this message because you are subscribed to the Google Groups
> "datameet" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/datameet/7e8c7dd8-a69c-494c-81e3-30a6a92c8cf9n%40googlegroups.com
> <https://groups.google.com/d/msgid/datameet/7e8c7dd8-a69c-494c-81e3-30a6a92c8cf9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
Datameet is a community of Data Science enthusiasts in India. Know more about
us by visiting http://datameet.org
---
You received this message because you are subscribed to the Google Groups
"datameet" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/datameet/CAH7jeuM4EZ89uNs3v9pY%2Bq9NNY%3DFyqfSfYcNKDCLfD4TeQ8mDA%40mail.gmail.com.