Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Insight Map Creator - Raster Filter Shapefile

Insight Map Creator - Raster Filter Shapefile 12 years 9 months ago #1838

  • gpiverson
  • gpiverson's Avatar
  • Offline
From seeing a lot of non ideal practice being recommended as an ideal work around, this is a quick tutorial on one of the raster advanced options. This option is used to target raster tiles and avoid black borders as well as keep data sizes in check. This method is the recommended mode for addressing this.

In order to fully remove black borders, you'll generally want to use a base raster layer in addition to your raster data. This could be Blue Marble, some variation on LandSat7, or whatever your satellite imagery preference is. It could even be an image with nothing but a base color. The sample I used is from Natural Earth.

In my sample process, I processed 256m to 8192m resolution all in one run. I set a shapefile with the extents I wanted to capture. I then used an internal process to break down the imagery just to show what is actually created. This shapefile can contain any number of polygon features. The best way to think of this is the shapefile is a filter...any area that wouldn't have raster generated won't have raster generated just because it intersects with the polygon. It must both have valid imagery and be in the shapefile extents if a shapefile is provided. Any raster tile touching or contained within the polygon will be included in the end result.
Attachments:
Last Edit: 12 years 9 months ago by gpiverson.
The administrator has disabled public write access.

Insight Map Creator - Raster Filter Shapefile 12 years 9 months ago #1840

  • Meggs1
  • Meggs1's Avatar
  • Offline
Thanks for the explanation - Coming from a low knowledge base I'm starting to understand this a bit more. Making useful maps can be addictive...
The administrator has disabled public write access.

Insight Map Creator - Raster Filter Shapefile 12 years 9 months ago #1851

  • DannyGeysen
  • DannyGeysen's Avatar
  • Offline
Thank you Gregory for this enlightening contribution. Nice to know how to do it the right way.
Lowrance ProStaff
The administrator has disabled public write access.

Insight Map Creator - Raster Filter Shapefile 12 years 6 months ago #2617

  • travisgriggs
  • travisgriggs's Avatar
  • Offline
For folks using Global Mapper, I just wanted to add that the "Create New Area Feature" of Global Mapper won't work. You have to use "Create New Line Feature," draw an actual polygon whose first and last points connect, then export that polygon as a vector shapefile.

If you attempt to use a vector area as a shapefile filter, IMC will not recognize it. Instead, it simply completes the project in just a few seconds with no output.

Just a heads up!
The administrator has disabled public write access.

Insight Map Creator - Raster Filter Shapefile 12 years 6 months ago #2688

  • alain
  • alain's Avatar
  • Offline
thanks for the info
The administrator has disabled public write access.

Insight Map Creator - Raster Filter Shapefile 12 years 6 months ago #2689

  • AnglingCharts
  • AnglingCharts's Avatar
  • Offline
Very strange, I make ALL my charts with GM13, and use area shapefiles created with area objects all the time. Sounds like a datum, attribute or projection issue ?

T
http://www.anglingcharts.com/

Mucking about in boats
Last Edit: 12 years 6 months ago by AnglingCharts.
The administrator has disabled public write access.

Insight Map Creator - Raster Filter Shapefile 12 years 6 months ago #2693

  • alain
  • alain's Avatar
  • Offline
how I proceed with GM13









tiles select
IMC automatically limit max resolution

Last Edit: 12 years 6 months ago by alain.
The administrator has disabled public write access.

Insight Map Creator - Raster Filter Shapefile 12 years 6 months ago #2694

  • AnglingCharts
  • AnglingCharts's Avatar
  • Offline
Try setting your layer attributes ? Put the overlaying object on a higher layer than the background object. Change your attribute names from U_LIMITE and L_LIMITE to U_LIMIT and L_LIMIT.
You probably have the correct attribute settings for a polyline, which are being inherited by the subsequent polygon when you convert it.

T
http://www.anglingcharts.com/

Mucking about in boats
Last Edit: 12 years 6 months ago by AnglingCharts.
The administrator has disabled public write access.

Insight Map Creator - Raster Filter Shapefile 12 years 6 months ago #2695

  • gpiverson
  • gpiverson's Avatar
  • Offline
Trevor, I don't think that's his problem.

For the Raster Filter, the attribution is irrelevant.

The potential problems (ignoring standard raster issues because he gets it working with other methods):

M/Z Attribution

some applications have decided to start exporting PolygonZ shapefiles rather than Polygon shapefiles by default.

Since Z and M are unused by my application and M is pretty much unused by every GIS application in the universe, I don't bother to process these. There's a number of other issues with the geometry like being twice as large in computer memory, twice as large on your computer (which is a problem with a limited size format like SHP), twice as long to read, and substantially longer to use any GIS functions on.

There's 3 options and I went with the easiest:
- Reject any Z/M geometries (what it does now)
- Strip all Z/M geometries and turn them into regular geometries
- Rewrite all my Geometric Functions to handle 3D geometries and measures.

This should warn you and not apply a filter. In general, this happens on any geometry that isn't a Polygon.

Projection Issues

Self Explanatory for most of it but the filter polygon does need to be in the same projection that the raster inputs are.

This will legitimately produce no output unless your raster tiles are around 0 N,0 E

No Polygons Actually Exported

If the shapefile has the proper attribution but no entries in the file, it will produce no output with no warning because that's what the shapefile is telling it to do.
Last Edit: 12 years 6 months ago by gpiverson.
The administrator has disabled public write access.

Insight Map Creator - Raster Filter Shapefile 12 years 6 months ago #2696

  • Matt
  • Matt's Avatar
  • Offline
One other possibility is that you are either not generating the vector and raster layers at the same time in the IMC, which would result in you not having the overlay tags set in the at5.xml file, or that you are not generating this file at all? I believe that means your area features won't show on top of rater - although I stand to be corrected.
The administrator has disabled public write access.

Insight Map Creator - Raster Filter Shapefile 12 years 6 months ago #2697

  • gpiverson
  • gpiverson's Avatar
  • Offline
Matt wrote:
One other possibility is that you are either not generating the vector and raster layers at the same time in the IMC, which would result in you not having the overlay tags set in the at5.xml file, or that you are not generating this file at all? I believe that means your area features won't show on top of rater - although I stand to be corrected.

That doesn't matter.

The draw over raster function is independent of the raster layer it is going to render over.
The administrator has disabled public write access.

Insight Map Creator - Raster Filter Shapefile 12 years 6 months ago #2698

  • Matt
  • Matt's Avatar
  • Offline
OK- thanks Greg. Actually I was thinking of a slightly different scenario, where you might have > 1 set of AT5 vector files, and I think they all need to be generated together to create a single at5.xml. Is there any way of merging the xml files? I have done it once or twice by hand and it seemed to work OK, but it's not the easiest solution. I think it could be useful for cases where you have some very large AT5 vector sets, such as OSM for a large area, and want to combine them with smaller custom maps.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
SCROLL TO TOP