Hot answers tagged

12

There is no direct route to convert an image into a shapefile format. Your jpg map has no spatial reference. You can load it into arcmap but it won't know where to put it. In order to tell arcmap where it belongs in space you have to provide geographic reference points, hence the term 'georeferencing'. In ArcGIS this is done via the Georeferencing ...


12

There are many free tools like: gdal rasterize Map Tyler it is easy to do with Python and modules like Shapely and a simple for loop: But in Python, the reference is Mapnik and Getting Started In Python You create a map (width and height in pixels, background color, etc) You create Styles which determines how the data is rendered You add a datasource ...


11

In the Help for Supported raster dataset file formats it says: ArcCatalog only recognizes the .jpg file extension by default. To add .jpeg or .jpe files to ArcMap without renaming them, add those file extensions to ArcCatalog or drag those files from Windows Explorer into your map.


9

By default an RGB image will be written to an RGB color model JPEG image, but this is not actually the most efficient way of writing to JPEG. It is better to convert to the YCbCr color space, and encode that. This is in fact the typical form of standalone JPEGs and what GDAL will produce when writing to a free standing JPEG file. Compressing a 4K x 2.6K ...


7

QGIS has a plugin called "Photo2Shape" that will convert the geotagged coordinates of the photo into a shapefile. You can then use the "eVis" plugin to set up hotlinks to the photos themselves, and launch a photo viewer by clicking on the attribute field.


7

This is currently not supported. The only way you are able to do this is to embed or link a png in a SVG file. Adding support for loading other image formats shouldn't be too hard for a future version.


7

You can make ArcCatalog recognize .jpeg files by adding it as a File Type in ArcCatalog options. Inside ArcCatalog: From the main menu choose: Customize Select ArcCatalog Options Under the File Types tab choose New Type... Enter "jpeg" and "JPEG Image" .jpeg images will now display in ArcCatalog. UPDATE: For ArcMap, you have to separately add .jpeg as ...


6

When you save your JPEG in GIMP, expand the 'Advanced Options' when the 'Export as JPEG' dialog box comes up. Un-check the 'Progressive' box and then click 'Export'. Your JPEG is then readable in QGIS. "Progressive" changes the encoding to display the image at increasingly higher quality levels until the image is fully loaded. QGIS is expecting standard ...


6

You have a few options for getting the road as a vector. You could download the Open Street Map road layer. This has been prepared by Geofabrik. You'd have to select out the road you're after. You could digitise the road manually. This involves creating a new polyline layer and tracing the road. It looks like you'll need to create a point layer too, ...


5

(1) and (2) are possible with eVis plugin (Documentation). Ad (3): You should be able to use Field Calculator to add the path to the filenames you already in attribute table. Field calculator is described here: http://www.qgis.org/wiki/Calculating_field_values. You can use + operator to concatenate strings.


5

Have a look on d.out.file command. See that page and format option. BMP is available.


5

I suspect that there are a great number of factors that go into the choice of image format and compression scheme: Image dimensions Bit depth Image complexity (images with large areas of similar colors may actually compress better by a lossless codec than a lossy codec, and some codecs handle complex, detailed areas better than others) Multi-band support ...


5

There is now a plugin for Leaflet that handles this. Leaflet.print


4

Yes there is, but before that, what software do you have available? To georeference a non georeferenced jpeg you will need to know/have one of two sources of information. 1) Access to vector or raster data that covers the same geographical area in the jpeg 2) Knowledge of the geographical extents of the jpeg (ie: Lat/Long cooridinates or UTM coordinates) ...


4

You need to include empty quotes for parameters you aren't changing. Since resolution is the 6th parameter, you shouldn't place it directly after parameter 2 (out_jpeg). The empty quotes are place markers. Example: arcpy.mapping.ExportToJPEG(mxd, project, "", "", "", resolution = 200) You don't need to put quotes in for parameters after the last one you ...


4

There are two Visual Studio snippets that exports the active view as a JPEG: Create JPEG (hi-resolution) from ActiveView Snippet : Creates a .jpg (JPEG) file from IActiveView using a high resolution exporting option. Default values of 96 DPI are overwritten to 300 used for the image creation. Create JPEG from ActiveView Snippet : Creates a ...


4

You could add all of the layers to a mxd, then loop through them and run arcpy.mapping.ExportToJPEG(map_document, out_jpeg, {data_frame}, {df_export_width}, {df_export_height}, {resolution}, {world_file}, {color_mode}, {jpeg_quality}, {progressive}) for each layer in the map.


4

QuickMapServices plugin with contributed services added in Settings for the aerial background. Photo2Shape or Geotag and import photos to get a point layer from exif gps coordinates. Duplicate the point layer and change styling from dot symbol to arrow symbol (not nice, but an arrow). Set "Angle" for the simple marker to the imported compass field. Python ...


4

Gps Prune is a nice, peformant tool (java) to work with photos - especially since an export as csv is quick, to further process in qgis. Not sure about working with the angle etc.


4

ESRI provides the extension of ArcScan and you can complete Automatic Vectorization to create content. This of course does require you to do a bit of manual work. but less than re-digitzing. To turn ArcScan on: click Customize>Extensions Turn on ArcScan Right Click the grey space on your toolbar (where no other tools are). select ArcScan ...


4

It seems a known issue, and there is a solution for that. Check Bug: Picture symbol legend patches, there are some instructions on how to solve this issue from ESRI help.


3

If you are using ArcGIS 10.1 then the new RasterClassifiedSymbology class of arcpy.mapping may be what you need to look at.


3

This is old but I had the same error "PageLayoutObject: Error in executing ExportToJPEG". The problem for me was that I was trying to write to a folder that didn't exist. Once I created the folder, it worked fine. This also makes me think that if you had some other kind of permissions problem that didn't let you write to the output file it might also be ...


3

Increasing compression above 25 often results in a severe performance degradation of the PNG encoder, thought with png8 I've observed less of it. Doing the same with JPEG results in a degradation in image quality, did not measure performance but it seemed similar by the naked eye.


3

How about using GDAL? It is available via FWTools (easier install) on Windows, via apt-get on Ubuntu, and via a binary for OSX. Once you have GDAL just go ahead and use: gdal_translate -of JP2OpenJPEG <input> <output> or gdal_translate -of JPEG2000 <input> <output> The above command uses the built in JP2 format conversion. ...


3

I had posted a question on creating images from vector data that you might find useful. The accepted answer, the combination of shapely, ogr, matplotlib, and numpy seems like it would work nicely for you.


3

You could integrate Mapnik for rendering the images.


3

This similar question has answers that use FME to convert DWG to JPG. The process will be similar for converting shapefiles. This example has example workspaces you can download. FME is well suited to handling batch processes. For example, you can point the reader to a folder and it will include all shapefiles in the folder. I created a simple ...


3

Oh, I did this yesterday with counties in Montana! Is it too late to answer? Assuming you've already used Split to make a shapefile for each census tract, I found that it was easy (lazy) to handle them in a Group Layer. Assuming that's the only Group Layer in your document, don't be shy about opening up the ArcPy window and entering: # Setup, defining a ...


3

You can also try the GIS icon library by Robert Szczepanek: http://robert.szczepanek.pl/icons.php



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