qgis

How to convert png to geotiff?

懵懂的女人 提交于 2021-02-20 11:22:48
问题 I have a PNG image file.I want to convert it to GeoTiff. I installed QGIS software but i can not use it and i dont know how to Georeference the image. Please help me. is there any online software ? 回答1: This is a pretty good tutorial with step by step instructions on how to georeference an image in the GUI. http://www.qgistutorials.com/en/docs/georeferencing_basics.html 回答2: If you wish to do it instantly, the quickest option will be via the link below: https://mygeodata.cloud/converter/png

How to convert png to geotiff?

…衆ロ難τιáo~ 提交于 2021-02-20 11:22:26
问题 I have a PNG image file.I want to convert it to GeoTiff. I installed QGIS software but i can not use it and i dont know how to Georeference the image. Please help me. is there any online software ? 回答1: This is a pretty good tutorial with step by step instructions on how to georeference an image in the GUI. http://www.qgistutorials.com/en/docs/georeferencing_basics.html 回答2: If you wish to do it instantly, the quickest option will be via the link below: https://mygeodata.cloud/converter/png

Count number of points in multipolygon shapefile using Python

最后都变了- 提交于 2021-02-16 08:56:15
问题 I have a polygon shapefile of the U.S. made up of individual states as their attribute values. In addition, I have arrays storing latitude and longitude values of point events that I am also interested in. Essentially, I would like to 'spatial join' the points and polygons (or perform a check to see which polygon [i.e., state] each point is in), then sum the number of points in each state to find out which state has the most number of 'events'. I believe the pseudocode would be something like

Count number of points in multipolygon shapefile using Python

帅比萌擦擦* 提交于 2021-02-16 08:53:06
问题 I have a polygon shapefile of the U.S. made up of individual states as their attribute values. In addition, I have arrays storing latitude and longitude values of point events that I am also interested in. Essentially, I would like to 'spatial join' the points and polygons (or perform a check to see which polygon [i.e., state] each point is in), then sum the number of points in each state to find out which state has the most number of 'events'. I believe the pseudocode would be something like

Building QGIS for Windows with mingw and Cmake?

做~自己de王妃 提交于 2021-02-10 19:32:31
问题 Does anyone knows how to build QGIS for Windows with mingw and Cmake? Having that I have all required dependencies installed. 回答1: I found a really nice workaround at: http://www.webalice.it/marco.pasetti/qgis+grass/BuildFromSource.html 来源: https://stackoverflow.com/questions/3760395/building-qgis-for-windows-with-mingw-and-cmake

Building QGIS for Windows with mingw and Cmake?

痞子三分冷 提交于 2021-02-10 19:31:34
问题 Does anyone knows how to build QGIS for Windows with mingw and Cmake? Having that I have all required dependencies installed. 回答1: I found a really nice workaround at: http://www.webalice.it/marco.pasetti/qgis+grass/BuildFromSource.html 来源: https://stackoverflow.com/questions/3760395/building-qgis-for-windows-with-mingw-and-cmake

Importing vector “.shp” file in NetLogo

浪尽此生 提交于 2021-01-28 06:54:28
问题 I digitized the roads of an area from Google Earth, Saved them to .Kml format, Then I opened this kml data file in QGIS 2.1 and converted it into ESRI shape file in WGS84 CRS. The file is successfully converted to shape file. But when I imported this file in NetLogo, a run-time error occurred which is "Extension exception: unsupported shape type 13 error while observer running GIS:LOAD-DATASET" My code is gis:load-coordinate-system (word "Roads.prj") to setup let paths-dataset gis:load

Postgis + boost::geometry + C++

荒凉一梦 提交于 2021-01-28 04:41:24
问题 I have the following wtk: POLYGON((0 0, 10 0, 10 11, 11 10, 0 10)) In boost::geometry we can get this polygon representation using boost::geometry::dsv(polygon," "," "," "); How I can apply postgis st_makevalid function to a boost::geometry polygon? I suppose it something like: #include "libpq/libpq-fs.h" #include "../libpq-fe.h" . . . std::string geom = "POLYGON" + boost::geometry::dsv(multipoly," "," "," "); res = PQexecParams(conn, "SELECT st_makevalid(geom) FROM .... I do not want to

Arabic labels do not display correctly in Geoserver

对着背影说爱祢 提交于 2021-01-24 08:17:13
问题 I have geoserver installed with Tomcat and the text labeling do not display correctly . where can i set the Arabic encoding in geosever? the labeling appear well in QGIS but when i publish it in geoserver i get this problem . ]1 The shape file Here Is the SLD : <?xml version="1.0" encoding="UTF-8"?> <sld:StyledLayerDescriptor xmlns="http://www.opengis.net/sld" xmlns:sld="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" version="1.0.0">

Drag window to the edge to resize

隐身守侯 提交于 2021-01-05 11:29:56
问题 I'm working on a plugin for QGIS and i'm using QtCreator. I wanted to implement a function that allows the user to drag the window to the edge of the screen to resize it (such as ordinary windows). My setup being a multiple screen desktop, I came up with this code: from PyQt5 import QtCore, QtGui tracking = False class Window(QtGui.QWidget): def __init__(self): super(Window, self).__init__() self.timer = QtCore.QTimer(self) self.timer.setInterval(50) self.timer.timeout.connect(self.Resize)