Re: [datameet] Re: Location of all protected heritage monuments in India

2018-11-04 Thread Nikhil VJ
Hi,

I came across http://gk.historic.place/ , a historic places map/atlas that
runs on historical places data saved in OpenStreetMap. It needs the proper
tags to be set in OSM to recognize them.
It would be cool to import all or parts of this ASI monuments dataset to
OSM and make it appear on that global map of historical places.

I'm not doing it, just putting the idea out there for interested folks to
take up. It may also make a cool project.
Here's a blog post explaining

what to do. (Forgive the php error messages on the page, scroll down for
the content),

Addendum:
Just cross-posting again from the other thread, Arun has made a QGIS script
that does the job of extracting Bhuvan's metadata out to columns from
within QGIS itself.
Here's his script 
with instructions, and here's the message thread
 where
it's posted.

--
Cheers,
Nikhil VJ
+91-966-583-1250
Pune, India
http://nikhilvj.co.i n

-- 
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 datameet+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [datameet] Re: Location of all protected heritage monuments in India

2018-10-28 Thread Nikhil VJ
Hi All,

Devdatta posted on another thread a python program he made for converting
even lines and polygons to .geojson format and it extracts the metadata too.
Link to conversation:
https://groups.google.com/d/msg/datameet/XTF4_P-nxU8/LS0_d85YBwAJ
Program link: https://github.com/devdattaT/GeoRSSConverter

Coincidentally I was also making something along the same lines over the
weekend and didn't notice the update there.
So here's another path up the mountain:
https://github.com/answerquest/georss2geojson-metadata-rescue

We've worked with different libraries, and I'm posting mine too for these
reasons:
- I've used a 'feedparser' module that does most of the grunt work of
converting the XML to geojson formatted objects. Which gave me time to:
- Used geojson and geojson_utils packages that can be taken forward for
programmatically doing GIS-type operations like merging separated parts
into multi-polygon (which is something mentioned about Bhuvan's data),
computing distance and area, detecting intersections etc
- Parsed the numbers in the metadata even if they're like: "-3.34e-4". So
the output .geojson shapefile has numeric fields if the metadata was
carrying it, one can directly use them to render choropleth etc. See a bad
example .
- Did a "right hand rule" rectification that was needed to produce valid
GeoJSON that checks out on geojsonlint.com . (not critical but some places
still need it)
- Save an additional CSV where the metadata is laid out in a neat table,
and if it's a point locations file, then the csv will have lat-long columns
and can be used directly for mapping, like I did with the asi-monuments
data previously .

I've made it in a python 3 Jupyter Notebook ; We could
make this into a user-friendly website or a EXE program that runs on
windows, but that will take some work. Contact if interested.


*Extra: *
1. Here's a site that makes embeddable choropleth maps without coding
needed, and can import the numbers from outside: https://app.datawrapper.de
(yes, QGIS can do it too, but single-task-focus brings user-friendliness)
2. And here are two sites that convert shapefiles between various formats:
http://ogre.adc4gis.com, https://geoconverter.hsr.ch/ (they don't rescue
the trapped metadata of course, that's peculiar to Bhuvan)


--
Cheers,
Nikhil VJ
+91-966-583-1250
Pune, India
http://nikhilvj.co.in


On Wed, Oct 17, 2018 at 10:57 AM Sashikumar N 
wrote:

> HI Nikhil,
> Cool and neat solution, Thankyou. just a quick question, what if the WMS
> layer is a line or polygon, what has to be changed in the python script?
>
> regards
> sashi
>
> On Wednesday, October 17, 2018 at 10:05:34 AM UTC+5:30, Nikhil VJ wrote:
>>
>> Here you go,
>>
>> https://github.com/answerquest/asi-monuments-xml2csv
>>
>> It's in a CSV now and you can drag-drop it on geojson.io for preview,
>> and convert it to other formats from there.
>>
>> All metadata encountered in the xml is saved in respective columns.
>>
>> The python script used is there too, in a jupyter notebook (.ipynb) file.
>> Github will display it nicely.
>>
>> -Nikhil VJ
>> Pune, India
>>
>>
>> On Tuesday, October 16, 2018 at 2:42:43 PM UTC+5:30, Arun Ganesh wrote:
>>>
>>> Found the Bhuvan geoserver listing which has the asi layers:
>>> http://bhuvan5.nrsc.gov.in/bhuvan/web/?wicket:bookmarkablePage=:org.geoserver.web.demo.MapPreviewPage
>>>
>>> They have disabled WFS so its not possible to download the shapefiles,
>>> but it looks the WMS GeoRSS output gives the vectors in an xml format.
>>>
>>> Monument locations:
>>> http://bhuvan5.nrsc.gov.in/bhuvan/asi/wms?service=WMS=1.1.0=GetMap=asi:monuments2==68.963,8.076,96.005,32.976=512=471=EPSG:4326=application%2Frss%2Bxml
>>>
>>> The file opens great in Qgis, but the feature properties are formatted
>>> as an HTML list. If this can be cleaned up, we can have the exact
>>> shapefiles.
>>>
>>> On Tue, Oct 16, 2018 at 12:59 PM Sashikumar N 
>>> wrote:
>>>
 Scrapping WMS layer is not possible, (i don't know if there is a way to
 do it). But if your interest is only few entities, you can use 'Tools' ->
 'Draw'  to mark/draw and download them as shapefile from the Bhuvan itself.

 On Monday, October 15, 2018 at 1:31:03 PM UTC+5:30, Arun Ganesh wrote:
>
>
>
> On Mon, Oct 15, 2018 at 11:50 AM Sashikumar N 
> wrote:
>
>> Bhuvan has a WMS layer of all ASI monuments, please check
>>
>
> Thanks, found it here:
> https://bhuvan-app1.nrsc.gov.in/culture_monuments/
>
> Its fantastic to browse around and should be shared more widely. Is
> there a way to get the features as vectors?
>
 --
 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 

Re: [datameet] Re: Location of all protected heritage monuments in India

2018-10-17 Thread Naveen Francis
We have lot of work ... too many datasets are released

https://data.gov.in/catalog/bhuvan-applications
https://data.gov.in/catalog/bhuvan-geoportal-nrscisro


On Wednesday, 17 October 2018 23:01:58 UTC+5:30, Arun Ganesh wrote:
>
> Excellent Nikhil! 
>
> Yesterday was playing with the Bhuvan WMS layers and built a simple 
> interface to explore the data: https://publicmap.github.io/bites/asi-map/
>
> With these shapefiles, no longer have to rely on the really slow Bhuvan 
> layers. Going to hack on this in my spare time.
>
>
>

-- 
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 datameet+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [datameet] Re: Location of all protected heritage monuments in India

2018-10-17 Thread Arun Ganesh
Excellent Nikhil!

Yesterday was playing with the Bhuvan WMS layers and built a simple
interface to explore the data: https://publicmap.github.io/bites/asi-map/

With these shapefiles, no longer have to rely on the really slow Bhuvan
layers. Going to hack on this in my spare time.

-- 
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 datameet+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [datameet] Re: Location of all protected heritage monuments in India

2018-10-16 Thread Sashikumar N
HI Nikhil,
Cool and neat solution, Thankyou. just a quick question, what if the WMS 
layer is a line or polygon, what has to be changed in the python script?

regards
sashi

On Wednesday, October 17, 2018 at 10:05:34 AM UTC+5:30, Nikhil VJ wrote:
>
> Here you go,
>
> https://github.com/answerquest/asi-monuments-xml2csv
>
> It's in a CSV now and you can drag-drop it on geojson.io for preview, and 
> convert it to other formats from there.
>
> All metadata encountered in the xml is saved in respective columns.
>
> The python script used is there too, in a jupyter notebook (.ipynb) file. 
> Github will display it nicely.
>
> -Nikhil VJ
> Pune, India
>
>
> On Tuesday, October 16, 2018 at 2:42:43 PM UTC+5:30, Arun Ganesh wrote:
>>
>> Found the Bhuvan geoserver listing which has the asi layers: 
>> http://bhuvan5.nrsc.gov.in/bhuvan/web/?wicket:bookmarkablePage=:org.geoserver.web.demo.MapPreviewPage
>>
>> They have disabled WFS so its not possible to download the shapefiles, 
>> but it looks the WMS GeoRSS output gives the vectors in an xml format. 
>>
>> Monument locations: 
>> http://bhuvan5.nrsc.gov.in/bhuvan/asi/wms?service=WMS=1.1.0=GetMap=asi:monuments2==68.963,8.076,96.005,32.976=512=471=EPSG:4326=application%2Frss%2Bxml
>>
>> The file opens great in Qgis, but the feature properties are formatted as 
>> an HTML list. If this can be cleaned up, we can have the exact shapefiles.
>>
>> On Tue, Oct 16, 2018 at 12:59 PM Sashikumar N  
>> wrote:
>>
>>> Scrapping WMS layer is not possible, (i don't know if there is a way to 
>>> do it). But if your interest is only few entities, you can use 'Tools' -> 
>>> 'Draw'  to mark/draw and download them as shapefile from the Bhuvan itself. 
>>>
>>> On Monday, October 15, 2018 at 1:31:03 PM UTC+5:30, Arun Ganesh wrote:



 On Mon, Oct 15, 2018 at 11:50 AM Sashikumar N  
 wrote:

> Bhuvan has a WMS layer of all ASI monuments, please check
>

 Thanks, found it here:  
 https://bhuvan-app1.nrsc.gov.in/culture_monuments/

 Its fantastic to browse around and should be shared more widely. Is 
 there a way to get the features as vectors?

>>> -- 
>>> 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 datameet+u...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
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 datameet+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [datameet] Re: Location of all protected heritage monuments in India

2018-10-16 Thread Nikhil VJ
Here you go,

https://github.com/answerquest/asi-monuments-xml2csv

It's in a CSV now and you can drag-drop it on geojson.io for preview, and 
convert it to other formats from there.

All metadata encountered in the xml is saved in respective columns.

The python script used is there too, in a jupyter notebook (.ipynb) file. 
Github will display it nicely.

-Nikhil VJ
Pune, India


On Tuesday, October 16, 2018 at 2:42:43 PM UTC+5:30, Arun Ganesh wrote:
>
> Found the Bhuvan geoserver listing which has the asi layers: 
> http://bhuvan5.nrsc.gov.in/bhuvan/web/?wicket:bookmarkablePage=:org.geoserver.web.demo.MapPreviewPage
>
> They have disabled WFS so its not possible to download the shapefiles, but 
> it looks the WMS GeoRSS output gives the vectors in an xml format. 
>
> Monument locations: 
> http://bhuvan5.nrsc.gov.in/bhuvan/asi/wms?service=WMS=1.1.0=GetMap=asi:monuments2==68.963,8.076,96.005,32.976=512=471=EPSG:4326=application%2Frss%2Bxml
>
> The file opens great in Qgis, but the feature properties are formatted as 
> an HTML list. If this can be cleaned up, we can have the exact shapefiles.
>
> On Tue, Oct 16, 2018 at 12:59 PM Sashikumar N  > wrote:
>
>> Scrapping WMS layer is not possible, (i don't know if there is a way to 
>> do it). But if your interest is only few entities, you can use 'Tools' -> 
>> 'Draw'  to mark/draw and download them as shapefile from the Bhuvan itself. 
>>
>> On Monday, October 15, 2018 at 1:31:03 PM UTC+5:30, Arun Ganesh wrote:
>>>
>>>
>>>
>>> On Mon, Oct 15, 2018 at 11:50 AM Sashikumar N  
>>> wrote:
>>>
 Bhuvan has a WMS layer of all ASI monuments, please check

>>>
>>> Thanks, found it here:  
>>> https://bhuvan-app1.nrsc.gov.in/culture_monuments/
>>>
>>> Its fantastic to browse around and should be shared more widely. Is 
>>> there a way to get the features as vectors?
>>>
>> -- 
>> 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 datameet+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 datameet+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [datameet] Re: Location of all protected heritage monuments in India

2018-10-16 Thread Arun Ganesh
Found the Bhuvan geoserver listing which has the asi layers:
http://bhuvan5.nrsc.gov.in/bhuvan/web/?wicket:bookmarkablePage=:org.geoserver.web.demo.MapPreviewPage

They have disabled WFS so its not possible to download the shapefiles, but
it looks the WMS GeoRSS output gives the vectors in an xml format.

Monument locations:
http://bhuvan5.nrsc.gov.in/bhuvan/asi/wms?service=WMS=1.1.0=GetMap=asi:monuments2==68.963,8.076,96.005,32.976=512=471=EPSG:4326=application%2Frss%2Bxml

The file opens great in Qgis, but the feature properties are formatted as
an HTML list. If this can be cleaned up, we can have the exact shapefiles.

On Tue, Oct 16, 2018 at 12:59 PM Sashikumar N 
wrote:

> Scrapping WMS layer is not possible, (i don't know if there is a way to do
> it). But if your interest is only few entities, you can use 'Tools' ->
> 'Draw'  to mark/draw and download them as shapefile from the Bhuvan itself.
>
> On Monday, October 15, 2018 at 1:31:03 PM UTC+5:30, Arun Ganesh wrote:
>>
>>
>>
>> On Mon, Oct 15, 2018 at 11:50 AM Sashikumar N 
>> wrote:
>>
>>> Bhuvan has a WMS layer of all ASI monuments, please check
>>>
>>
>> Thanks, found it here:
>> https://bhuvan-app1.nrsc.gov.in/culture_monuments/
>>
>> Its fantastic to browse around and should be shared more widely. Is there
>> a way to get the features as vectors?
>>
> --
> 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 datameet+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 datameet+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [datameet] Re: Location of all protected heritage monuments in India

2018-10-16 Thread Sashikumar N
Scrapping WMS layer is not possible, (i don't know if there is a way to do 
it). But if your interest is only few entities, you can use 'Tools' -> 
'Draw'  to mark/draw and download them as shapefile from the Bhuvan itself. 

On Monday, October 15, 2018 at 1:31:03 PM UTC+5:30, Arun Ganesh wrote:
>
>
>
> On Mon, Oct 15, 2018 at 11:50 AM Sashikumar N  > wrote:
>
>> Bhuvan has a WMS layer of all ASI monuments, please check
>>
>
> Thanks, found it here:  https://bhuvan-app1.nrsc.gov.in/culture_monuments/
>
> Its fantastic to browse around and should be shared more widely. Is there 
> a way to get the features as vectors?
>

-- 
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 datameet+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [datameet] Re: Location of all protected heritage monuments in India

2018-10-15 Thread Arun Ganesh
On Mon, Oct 15, 2018 at 11:50 AM Sashikumar N 
wrote:

> Bhuvan has a WMS layer of all ASI monuments, please check
>

Thanks, found it here:  https://bhuvan-app1.nrsc.gov.in/culture_monuments/

Its fantastic to browse around and should be shared more widely. Is there a
way to get the features as vectors?

-- 
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 datameet+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[datameet] Re: Location of all protected heritage monuments in India

2018-10-15 Thread Sashikumar N
Bhuvan has a WMS layer of all ASI monuments, please check


On Sunday, October 14, 2018 at 2:54:55 AM UTC+5:30, Arun Ganesh wrote:
>
> Does anyone have a shapefile of all the protected monuments in the 
> country? 
>
> The Wikipedia editors have done a wonderful job of compiling a comprehensive 
> list of ASI and state protected monuments 
> 
>  
> but this lacks location information. There are also an amazing collection 
> of free photographs thanks to the Wiki Loves Monuments photo contest  
> 
>
> Only recently discovered quite a few monuments within Mumbai that i never 
> knew existed and such a dataset can help promote more awareness of our 
> cultural treasures. It's a shame that this information is not more easily 
> accessible.
>
>
>

-- 
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 datameet+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.