Geographic Information Systems Asked by mahendra maid on January 30, 2021
I want all hotel list in that polygon, so I am using the Google Place API to fetch hotel info. But Google Place gives only 60 records limit, so thought to get all lat long with 1 km distance in that polygon, so I can search Google Place with 1 km, and I will get all results.
Solution I tried:
I want above yellow lat long which are separated with 1 km in that polygon
Need list of Lat long as below yellow dot.
My data
{
"type": "FeatureCollection",
"name": "Test",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "Name": "Test", "description": null }, "geometry": { "type": "Polygon", "coordinates":
[ [ [ 76.95921132064926, 28.462199988668662 ], [ 76.963367015913107, 28.454396340060121 ], [ 76.96406171244611, 28.448923074655479 ],
[ 76.979506480632438, 28.4628132424059 ], [ 76.968779231398202, 28.469906308302541 ], [ 76.961281573952363, 28.472337211248551 ],
[ 76.95921132064926, 28.462199988668662 ] ] ] } }
]
}
In QGIS, load your KML polygon layer, no need to convert to GeoJSON first. Then go to Vector > Research Tools > Regular points
take the extent from your layer, choose an output CRS which uses metres, say EPSG:3857, and select your spacing (to match your grid you'd want 500m), you can choose to write a file or just create a temporary layer, and run.
Creates the grid
Then export your grid as CSV (I chose WKT format for geometry) using EPSG:4326, gives:
WKT,id
"POINT (76.9592113206492 28.4723372112485)",0
"POINT (76.9637028970698 28.4723372112485)",1
"POINT (76.9681944734904 28.4723372112485)",2
"POINT (76.972686049911 28.4723372112485)",3
"POINT (76.9771776263316 28.4723372112485)",4
"POINT (76.9592113206492 28.4683888289614)",5
"POINT (76.9637028970698 28.4683888289614)",6
"POINT (76.9681944734904 28.4683888289614)",7
"POINT (76.972686049911 28.4683888289614)",8
"POINT (76.9771776263316 28.4683888289614)",9
"POINT (76.9592113206492 28.4644402991291)",10
"POINT (76.9637028970698 28.4644402991291)",11
"POINT (76.9681944734904 28.4644402991291)",12
"POINT (76.972686049911 28.4644402991291)",13
"POINT (76.9771776263316 28.4644402991291)",14
"POINT (76.9592113206492 28.4604916217651)",15
"POINT (76.9637028970698 28.4604916217651)",16
"POINT (76.9681944734904 28.4604916217651)",17
"POINT (76.972686049911 28.4604916217651)",18
"POINT (76.9771776263316 28.4604916217651)",19
"POINT (76.9592113206492 28.4565427968824)",20
"POINT (76.9637028970698 28.4565427968824)",21
"POINT (76.9681944734904 28.4565427968824)",22
"POINT (76.972686049911 28.4565427968824)",23
"POINT (76.9771776263316 28.4565427968824)",24
"POINT (76.9592113206492 28.4525938244943)",25
"POINT (76.9637028970698 28.4525938244943)",26
"POINT (76.9681944734904 28.4525938244943)",27
"POINT (76.972686049911 28.4525938244943)",28
"POINT (76.9771776263316 28.4525938244943)",29
Answered by nmtoken on January 30, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP