[Geoserver-users] Adding JP2 raster layer to server

Hello,

i have jp2 files width maps, and for each of them 4 border points (lat,lon).
F.e:
52.700178,6.277880
52.662452,6.277880
52.662452,6.301401
52.700178,6.301401

When I'm adding it to GeoServer using GDAL extension (JP2ECW - JP2K (ECW)
Coverage Format)
and inserting coordinates to layer publishing settings as borders, map in
OpenLayers preview is flipped vertically, and preview in Google Earth via
KML displays view from attachment
ScreenShot379.png
<http://osgeo-org.1560.x6.nabble.com/file/n5090126/ScreenShot379.png&gt;
Source jp2 file: NL-AsnDA_0181_14a_2_001.jp2
<http://osgeo-org.1560.x6.nabble.com/file/n5090126/NL-AsnDA_0181_14a_2_001.jp2&gt;

Where i can find any instructions how to correctly import/prepare jp2 raster
layer?
What data sholud be in native borders - currently this are dimensions in
pixels?
ScreenShot380.png
<http://osgeo-org.1560.x6.nabble.com/file/n5090126/ScreenShot380.png&gt;

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Adding-JP2-raster-layer-to-server-tp5090126.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

I have just did a quick look to your JP2 image but it seems to me that it’s not georectified.

···

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Wed, Nov 20, 2013 at 12:41 PM, t.przysiwek <t.przysiwek@anonymised.com> wrote:

Hello,

i have jp2 files width maps, and for each of them 4 border points (lat,lon).
F.e:
52.700178,6.277880
52.662452,6.277880
52.662452,6.301401
52.700178,6.301401

When I’m adding it to GeoServer using GDAL extension (JP2ECW - JP2K (ECW)
Coverage Format)
and inserting coordinates to layer publishing settings as borders, map in
OpenLayers preview is flipped vertically, and preview in Google Earth via
KML displays view from attachment
ScreenShot379.png
<http://osgeo-org.1560.x6.nabble.com/file/n5090126/ScreenShot379.png>
Source jp2 file: NL-AsnDA_0181_14a_2_001.jp2
<http://osgeo-org.1560.x6.nabble.com/file/n5090126/NL-AsnDA_0181_14a_2_001.jp2>

Where i can find any instructions how to correctly import/prepare jp2 raster
layer?
What data sholud be in native borders - currently this are dimensions in
pixels?
ScreenShot380.png
<http://osgeo-org.1560.x6.nabble.com/file/n5090126/ScreenShot380.png>


View this message in context: http://osgeo-org.1560.x6.nabble.com/Adding-JP2-raster-layer-to-server-tp5090126.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks, but now i have problem with gdalwarp:

returns:
ERROR 1: Failed to compute GCP transform: Not enough points available

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Adding-JP2-raster-layer-to-server-tp5090126p5090503.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Mmm… I think that the 2 points contained on your input files aren’t enough to create a warp…

Wondering if wouldn’t be better if you convert that file to a geotiff, add more GCPs and then georectify it with gdalwarp.

Daniele

···

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Thu, Nov 21, 2013 at 4:17 PM, t.przysiwek <t.przysiwek@anonymised.com> wrote:

Thanks, but now i have problem with gdalwarp:

returns:
ERROR 1: Failed to compute GCP transform: Not enough points available


View this message in context: http://osgeo-org.1560.x6.nabble.com/Adding-JP2-raster-layer-to-server-tp5090126p5090503.html

Sent from the GeoServer - User mailing list archive at Nabble.com.


Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi,

thanks for help. Using this tutorial:
http://www.fsdeveloper.com/wiki/index.php?title=GeoTIFF_file_creation_with_GDAL

i can make GeoTiffs from my jp2 files that works with geoserver.
Problem is that this files are 40 times larger than jp2.
Is there any solution to add geo metadata to jp2 file or copy metadata from
another file similar to: geotifcp?

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Adding-JP2-raster-layer-to-server-tp5090126p5091187.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi,

Georectification through GCPs implies some warping of pixels therefore I don’t think that it’s only matter of adding metadata but there’s the need of “working on” pixel values.

Did you try with some TIFF compression methods?

Something like JPEG using YCbCr Photometric interpration, or LZW, or DEFLATE…

Not sure you will get the same output size of JP2 (which provides very good compression) but you can surely improve the current size in case you didn’t compress.

Please, let us know.
Cheers,
Daniele

···

==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Tue, Nov 26, 2013 at 8:50 AM, t.przysiwek <t.przysiwek@anonymised.com> wrote:

Hi,

thanks for help. Using this tutorial:
http://www.fsdeveloper.com/wiki/index.php?title=GeoTIFF_file_creation_with_GDAL

i can make GeoTiffs from my jp2 files that works with geoserver.
Problem is that this files are 40 times larger than jp2.
Is there any solution to add geo metadata to jp2 file or copy metadata from
another file similar to: geotifcp?


View this message in context: http://osgeo-org.1560.x6.nabble.com/Adding-JP2-raster-layer-to-server-tp5090126p5091187.html

Sent from the GeoServer - User mailing list archive at Nabble.com.


Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi,

thanks for your help.

I got a lot of jp2 files (about 5000) generated via Kakadu and if possible I
would like to not manipulate on pixels and just batch insert geolocation
data inside. The only data I've got for files, are coordinates like:
52.700178,6.277880
52.662452,6.277880
52.662452,6.301401
52.700178,6.301401

In my opinion, solution suggested by Rahkonen Jukka (GML attach 1.1) is what
I need, but how to correctly generate gml file, f.e. calculate offsetVector:

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Adding-JP2-raster-layer-to-server-tp5090126p5091405.html
Sent from the GeoServer - User mailing list archive at Nabble.com.