Hot answers tagged

25

The coordinates are in MGRS (Military Grid Reference System) which is a projected coordinate system. Those coordinates give you an accuracy of 0.1 meters since there are 10 trailing digits. You can batch convert the coordinates in online websites like this The first 3 charcters are the "grid zone desiganation" : 38R the next two characters are the 100,...


18

It is not a string format. It is a binary format using integers, double precission and special bytes used for flags. What you see as output above is not the internal format but the wkb format represented as hex numbers The internal format is described here: http://trac.osgeo.org/postgis/browser/trunk/liblwgeom/g_serialized.txt The document is written ...


10

Those files are Receiver Independent Exchange Format (RINEX). Which is an open source standard for raw satellite navigation system data. For more information about the file format standards refer to this document. That document is quite thorough but a (very) brief description of the files: 18 in the file extension refers to two digit year the data was ...


9

There is no universal vector format in GIS. However, some formats are proprietary and other are openly specified (like the shapefile) so that they can be read and/or written by other softwares (if they decide to implement). For data sharing, the best solution to date is to use shapefile, which is now the most widespread format. Shapefile is however an old ...


9

I would do this by selecting Decimal with Suffix for the format and at the bottom of the Map Grid Properties select 0 for Coordinate Precision.


7

You need to add an interval of time to the date. This interval can can be hard coded or read from another field now() + to_interval('3 month') oldDate + to_interval( myIntervalIntegerValue || ' month')


7

A one liner to get all drivers (GDAL + OGR) (more or less 210 drivers) python -c "from osgeo import gdal;print('\n'.join(sorted([gdal.GetDriver(i).GetDescription() for i in range(gdal.GetDriverCount())])))" You can also filter drivers to get only GDAL one using the following (or you will not get the same number of drivers output as gdal_translate -...


6

This is part of the raison d'être of the OGC. Regarding vector data you may wish to look into these standards: Geographic Markup Language (GML) - an XML grammar for the storage of geographical features. It serves as an open interchange format for the transaction of geo-spatial data between different software. Web Feature Service (WFS) - provides an ...


6

Malaysia uses Cassini projections per state for cadastral mapping. For Kuala Lumpur, the Selangor grid would be the right one. The EPSG registry lists these codes: 3380 GDM2000 / Selangor Grid 4393 Kertau 1968 / Selangor Grid Unfortunately, both do not fit to your coordinates, and the second has not even found its way into the PROJ.4/GDAL software. Neither ...


6

In your grid properties first make sure to choose EPSG:4326 as CRS, then choose "custom" as coordinate format and click on the expression button next to it: Now use this expression: abs(@grid_number) || '°' || -- concat absolute grid number (without -) with ° if(@grid_number=0,'', -- if grid number is 0, dont use a suffix if( @...


6

You can use PyQGIS: from datetime import datetime as dt lyr = QgsProject.instance().mapLayersByName('New scratch layer')[0] fieldnames = ['date', 'date_from', 'date_to'] indices = [lyr.fields().indexFromName(fn) for fn in fieldnames[1:]] #Find indices for the fields to update attrmap = {} #A dictionary to hold the new values for f in lyr.getFeatures(): ...


5

The newest and most promising that exists is OGC GeoPackage. The standard was published in February, 2014 and it will take some time before GIS programs support it properly but the list of implementations at http://www.geopackage.org/ is growing fast. There are already well known programs on the list, including ArcGIS, GDAL, and GeoServer. Unlike GML which ...


5

You're not looking at the right place. OpenLayers 3 (latest version) API docs are at http://openlayers.org/en/v3.9.0/apidoc/. It is, by the way, an excellent documentation. You will use text field (top-left) to search for everything available in the library. A ol.geom.Polygon can't be styled. You will apply a style to the feature that holds polygon. Look ...


5

Bring back Field Format to default (yyyy-MM-dd) setting and customize the Widget Display only.


5

The resulting file is bigger because it has no compression. JPEG compression resulted in image degradation because it is a lossy compression method, LZW and DEFLATE are lossless (input value will always = output value). Lossy compression methods are good for data where filesize is more important than absolute data integrity, such as a stretched aerial ...


5

Checking the Python docs I see: gdal.GetDriverCount(), returns an int gdal.GetDriver(int i), returns a Driver() gdal.Driver(), has ShortName and LongName attributes So chaining them together: import gdal def list_drivers(): n = gdal.GetDriverCount() for i in range(n): driver = gdal.GetDriver(i) print('{:03d}: {} - {}'.format(i, ...


5

You can create new columns from your original columns in the Field calculator of QGIS. From what I see in your original format you can try things in my screenshot. we parse the text of the original field and put in a new date field. it's better to store these thing in a date format field and use a format "YY.MM.DD" to show it if you absolutely want ...


5

Despite a nice answer from @Maximilien jaffrès, I will suggest another formula: For min "date_from" i.e. the ancient date: format_date( to_date( datetime_from_epoch( array_min( array_foreach( string_to_array("dates", '/'), -- here define the field with dates epoch( ...


4

I believe these dates come from Excel and represent days since Jan 1, 1900. From the Office Help: Note: Excel stores dates as sequential serial numbers so that they can be used in calculations. January 1, 1900 is serial number 1, and January 1, 2008 is serial number 39448 because it is 39,447 days after January 1, 1900. You will need to change the ...


4

There is no gdal driver for the native format of the raster package (gri + grd), that is why you cannot directly open it in QGIS. One workaround to open data in QGIS without duplicating them is to create an additional header file using the hdr() function of the raster package. library(raster) b <- brick('/path/to/file.grd') hdr(b, format = 'ENVI') ...


4

The Raster calculator from the menu toolbar does not have the option to specify the output raster type. But if you go to the Raster calculator from Processing toolbox -> GDAL -> Raster miscellaneous -> Raster calculator, it will give you the option to specify the Output raster type as you can see below:


4

Earth Engine handles time for their assets in Unix Epoch Time (Miliseconds since 1970). This is the format you get from image.get("system:time_start"). For filtering and other functions thats also the format which has to be passed to system:time_start. Here's a bit of sample code to show how you can convert between date formats: https://code.earthengine....


4

You can also use pyqgis: from dateutil.relativedelta import * #https://stackoverflow.com/questions/35066588/is-there-a-simple-way-to-increment-a-datetime-object-one-month-in-python/35067328 lyr = QgsProject.instance().mapLayersByName('Refactored')[0] #Change to match your data datefield = 'datefield' #Change monthfield = 'months' #Change duefield = '...


3

This can be accomplished by taking full advantage of the format function you're already using. In its basic form (e.g. '{0}'.format(var)), the value returned is equivalent to str(var). However, by adding stuff inside the curly braces, you can tweak the formatting quite extensively -- see PEP 3101. For your specific example, try this: LogFile("Feature {0} ...


3

OSGeo has a Public Geodata for the UK list. The second link is for boundary data. You may also want to look at data.gov.uk Boundary-Line data


3

From the Defining feature class properties documentation Additional rules: Names must begin with a letter, not a number or special character such as an asterisk (*) or percent sign (%). Names should not contain spaces. If you have a two-part name for your table or feature class, connect the words with an underscore (_), for example, garbage_routes. Names ...


3

I use 7zip, can only comment on using that to reassemble split archive. All 8 files must be in the same directory. I just created a split archive of 14 parts (10 MB each) from one image gallery (140 MB) and then put it back together to test the process. Select first file (stuff.zip.[1_8].dat in your case), right click, select 7zip, "Extract to". If that ...


3

Use MMQGIS plugin It is available from the Manage and Install Plugins item, search for mmqgis These tools will appear with their own menu item MMQGIS, use the Import / Export | Geometry Export to CSV. Two files will be created. You want the "nodes" Once you have this new file in a spreadsheet, move the columns around. Then the next steps depend on the ...


3

Officially, OpenLayers only supports SLD version 1.0.0 for now (patch welcome). I'm not sure this version of the SLD standard officially supports Filters version 1.1.0. That's the official standard point of view. In the real world however, your WMS service probably do support it. So to force OpenLayers SLD version 1.0.0 to use Filters version 1.1.0, you can ...


3

symbolization applies to the 'top' level of geometry; that is, points are points and symbolized as such; polylines are polylines and symbolized as such; same with polygons. So in this case you could either select those polygons that meet your condition of tangency, and treat those polygons differently in symbology, or you need to get these particular ...


Only top voted, non community-wiki answers of a minimum length are eligible