Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rasterdata offsets #1190

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ public Coverage build() {
opts.add( IMAGE_INDEX, "" + i );
opts.add( OPT_FORMAT, "tiff" );
opts.add( CRS, crs.getAlias() );
if ( config.getOriginLocation() != null ) {
opts.add( RasterIOOptions.GEO_ORIGIN_LOCATION,
config.getOriginLocation().toString().toUpperCase() );
}

AbstractRaster raster = RasterFactory.loadRasterFromFile( metadata.getLocation().resolveToFile( file ),
opts, metadata );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,17 @@
<element name="CRS" type="string" minOccurs="0" />
</sequence>
<!-- value assigned to the no data pixels (e.g the background) -->
<attribute name="originLocation" default="center" type="raster:OriginLocation" />
<attribute name="nodata" type="decimal" />
<attribute name="configVersion" type="string" use="optional"/>
</complexType>
</element>

<simpleType name="OriginLocation">
<restriction base="string">
<enumeration value="center" />
<enumeration value="outer" />
</restriction>
</simpleType>

</schema>
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ configuration:
A Raster can have several attributes:

* The originLocation attribute can have the values center or outer to
declare the pixel origin of the coverage.
declare the pixel origin of the coverage. If omitted, center is used
as origin location.
* The nodata attribute can be optionally used to declare a nodata value.
* The readWorldFiles parameter can have the values true or false to
indicate if worlfiles will be read. Default value is true.
Expand Down Expand Up @@ -129,6 +130,10 @@ pyramid as its value.
pyramid as EPSG code.
* As in Raster, the nodata attribute can be optionally used to declare a
nodata value.
* As in Raster, the originLocation attribute can have the values center
or outer to declare the pixel origin of the coverage. If omitted, center
is used as origin location.


=== Oracle GeoRaster

Expand Down