Hi Franco,
at the end, the prj file is nothing more than a txt file with .prj
extension.
Therefore you can create it simply using any text editor you have (as an
instance, notepad on windows or vi, nano, gedit, ... on linux) and paste
the WKT content on it.

The prj you need may looks like the attached file.
Supposing your geotiff file is called "mygeotiff.tif" just make sure to
rename "sample.prj" to "mygeotiff.prj" and put it beside "mygeotiff.tif".

Hope this helps.
Cheers,
Daniele



On Thu, Apr 14, 2016 at 5:16 PM, Franco Minutiello <
franco.minutie...@darts.it> wrote:

> On 14/04/2016 16:14, Daniele Romagnoli wrote:
>
> Hi Franco,
>
> On Thu, Apr 14, 2016 at 4:00 PM, Franco Minutiello <
> <franco.minutie...@darts.it>franco.minutie...@darts.it> wrote:
>
>> Any news about geotiff tags? I found a possible workaround using
>> gldal_translate using png formato plus pgw file, but it's a workaround...
>>
>  You may also consider adding a .prj file beside your geotiff file
> containing the WKT definition of your CRS. Note that the name of that prj
> file should match the name of your geotiff beside the different extension.
>
> Is there any tool ti create prj file>
>
> It seems you are using an EPSG:3857 right? (You can paste the WKT from
> here: http://epsg.io/3857) yes. the request is made with reference system
> EPSG:900913, that is an alternatice code of EPSG:3857
>
> geotiff files are creted by geoserver using Google mercator as coordinate
>> system.
>>
>
> Could you clarify this statement? Are you saying that the GeoTiff you are
> trying to configure has been previously created by a GeoServer request
> asking for GeoTIFF output format?
>
> Yes thats's true. Here is an example of the getMap parameters
>
> Request: getMap
>         Format = image/geotiff
>         Crs = PROJCS["WGS84 / Google Mercator",
>   GEOGCS["WGS 84",
>     DATUM["World Geodetic System 1984",
>       SPHEROID["WGS 84", 6378137.0, 298.257223563,
> AUTHORITY["EPSG","7030"]],
>       AUTHORITY["EPSG","6326"]],
>     PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
>     UNIT["degree", 0.017453292519943295],
>     AXIS["Longitude", EAST],
>     AXIS["Latitude", NORTH],
>     AUTHORITY["EPSG","4326"]],
>
>   PROJECTION["Mercator_1SP"],
>   PARAMETER["semi_minor", 6378137.0],
>   PARAMETER["latitude_of_origin", 0.0],
>   PARAMETER["central_meridian", 0.0],
>   PARAMETER["scale_factor", 1.0],
>   PARAMETER["false_easting", 0.0],
>   PARAMETER["false_northing", 0.0],
>   UNIT["m", 1.0],
>   AXIS["x", EAST],
>   AXIS["y", NORTH],
>   AUTHORITY["EPSG","900913"]]
>         Bbox = SRSEnvelope[981591.0 : 989587.0, 5533960.0 : 5538963.0]
>         RemoteOwsType = null
>         RemoteOwsURL = null
>         Env = {}
>         FormatOptions = {}
>         Angle = 0.0
>         CQLFilter = null
>         Elevation = []
>         FeatureId = null
>         StartIndex = null
>         ViewParams = null
>         Width = 1024
>         Height = 768
>         Palette = null
>         BgColor = java.awt.Color[r=255,g=255,b=255]
>         Tiled = false
>         FeatureVersion = null
>         SRS = EPSG:900913
>         Styles = [StyleImpl[ name=srs_rainfall]]
>         MaxFeatures = null
>         Layers = [org.geoserver.wms.MapLayerInfo@80e34550]
>         Transparent = true
>         StyleFormat = sld
>         Interpolations = []
>         SldBody = null
>         ValidateSchema = false
>         Sld = null
>         StyleUrl = null
>         TilesOrigin = null
>         Exceptions = SE_XML
>         StyleBody = null
>         SldVersion = null
>         StyleVersion = null
>         ScaleMethod = null
>         Buffer = 0
>         Time = []
>         Filter = null
>         Filters = null
>         RawKvp = {TRANSPARENT=TRUE, BBOX=981591,5533960,989587,5538963,
> VERSION=1.1.1, FORMAT=image/geotiff, SERVICE=WMS, HEIGHT=768,
> REQUEST=GetMap, LAYERS=srs:srs_layer, STYLES=, SRS=EPSG:900913, WIDTH=1024}
>         Get = true
>         BaseUrl = http://vsrs-01:8080/geoserver/
>         RequestCharset = UTF-8
>         Version = 1.1.1
>         Request = GetMap
>
>
> Please, let us know.
>
> Cheers,
> Daniele
>
>
>
>
>>
>>
>> Thanks
>>
>>  Franco
>>
>> On 12/04/2016 16:23, Franco Minutiello wrote:
>>
>>
>> here is the gdalinfo output
>>
>> Size is 1024, 768
>> Coordinate System is:
>> PROJCS["WGS84 / Google Mercator",
>>     GEOGCS["WGS 84",
>>         DATUM["WGS_1984",
>>             SPHEROID["WGS 84",6378137,298.257223563,
>>                 AUTHORITY["EPSG","7030"]],
>>             AUTHORITY["EPSG","6326"]],
>>         PRIMEM["Greenwich",0],
>>         UNIT["degree",0.0174532925199433],
>>         AUTHORITY["EPSG","4326"]],
>>     PROJECTION["Mercator_1SP"],
>>     PARAMETER["central_meridian",0],
>>     PARAMETER["scale_factor",1],
>>     PARAMETER["false_easting",0],
>>     PARAMETER["false_northing",0],
>>     UNIT["metre",1,
>>         AUTHORITY["EPSG","9001"]]]
>> Origin = (981591.000000000000000,5538963.000000000000000)
>> Pixel Size = (7.808593750000000,-6.514322916666667)
>> Metadata:
>>   AREA_OR_POINT=Area
>>   TIFFTAG_RESOLUTIONUNIT=1 (unitless)
>>   TIFFTAG_XRESOLUTION=1
>>   TIFFTAG_YRESOLUTION=1
>> Image Structure Metadata:
>>   INTERLEAVE=PIXEL
>> Corner Coordinates:
>> Upper Left  (  981591.000, 5538963.000) (  8d49' 4.02"E, 44d39'55.73"N)
>> Lower Left  (  981591.000, 5533960.000) (  8d49' 4.02"E, 44d38' 0.24"N)
>> Upper Right (  989587.000, 5538963.000) (  8d53'22.60"E, 44d39'55.73"N)
>> Lower Right (  989587.000, 5533960.000) (  8d53'22.60"E, 44d38' 0.24"N)
>> Center      (  985589.000, 5536461.500) (  8d51'13.31"E, 44d38'57.99"N)
>> Band 1 Block=1024x8 Type=Byte, ColorInterp=Red
>>   NoData Value=0
>> Band 2 Block=1024x8 Type=Byte, ColorInterp=Green
>>   NoData Value=0
>> Band 3 Block=1024x8 Type=Byte, ColorInterp=Blue
>>   NoData Value=0
>> Band 4 Block=1024x8 Type=Byte, ColorInterp=Alpha
>>   NoData Value=0
>>
>> Franco
>>
>> On 12/04/2016 14:11, Daniele Romagnoli wrote:
>>
>> Hi Franco,
>> Do you have any chance to run gdalinfo on that file and report back the
>> output?
>> (I wonder if there is an issue with the CoordinateReferenceSystem, such
>> as some missing elements defining it).
>>
>> Please, let us know.
>> Cheers,
>> Daniele
>>
>>
>>
>> On Tue, Apr 12, 2016 at 12:32 PM, Franco Minutiello <
>> franco.minutie...@darts.it> wrote:
>>
>>> HI all,
>>>
>>> I have problem with image mosaic plugin using geotiff.
>>> The geoserver version is 2.8.1.
>>> The same configurartion works with tiff copied from  snow time series
>>> examples.
>>> in the page "Add Raster Data Source" I saw the following error:
>>> "Could not list layers for this store, an error occurred retrieving
>>> them: Failed to create reader from file:workspaces/.... and hints null"
>>>
>>> I think there's a problem involving geotiff data tags.
>>> This is the exception encoutered
>>>
>>> 2016-04-12 12:27:37,001 ERROR [imagemosaic.Utils] -
>>> java.lang.NullPointerException
>>>         at
>>> org.geotools.gce.imagemosaic.RasterManager$SpatialDomainManager.prepareCoverageSpatialElements(RasterManager.java:203)
>>>         at
>>> org.geotools.gce.imagemosaic.RasterManager$SpatialDomainManager.<init>(RasterManager.java:178)
>>>         at
>>> org.geotools.gce.imagemosaic.RasterManager.initialize(RasterManager.java:1472)
>>>         at
>>> org.geotools.gce.imagemosaic.ImageMosaicConfigHandler.indexingPostamble(ImageMosaicConfigHandler.java:410)
>>>         at
>>> org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker$MosaicDirectoryWalker.<init>(ImageMosaicDirectoryWalker.java:132)
>>>         at
>>> org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker.run(ImageMosaicDirectoryWalker.java:196)
>>>         at
>>> org.geotools.gce.imagemosaic.Utils.createMosaic(Utils.java:359)
>>>         at
>>> org.geotools.gce.imagemosaic.Utils.checkSource(Utils.java:1237)
>>>         at
>>> org.geotools.gce.imagemosaic.ImageMosaicReader.initReaderFromURL(ImageMosaicReader.java:516)
>>>         at
>>> org.geotools.gce.imagemosaic.ImageMosaicReader.<init>(ImageMosaicReader.java:468)
>>>         at
>>> org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:483)
>>>         at
>>> org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:103)
>>>         at
>>> org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1441)
>>>         at
>>> org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1369)
>>>         at
>>> org.geoserver.catalog.impl.CoverageStoreInfoImpl.getGridCoverageReader(CoverageStoreInfoImpl.java:59)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>         at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>         at java.lang.reflect.Method.invoke(Method.java:606)
>>>         at
>>> org.geoserver.catalog.impl.ModificationProxy.invoke(ModificationProxy.java:146)
>>>
>>> this is the listgeo output for the tif file
>>>
>>> Geotiff_Information:
>>>    Version: 1
>>>    Key_Revision: 1.2
>>>    Tagged_Information:
>>>       ModelTransformationTag (4,4):
>>>          7.80859375        0                 0                 981591
>>>          0                 -6.51432291666667 0                 5538963
>>>          0                 0                 0                 0
>>>          0                 0                 0                 1
>>>       End_Of_Tags.
>>>    Keyed_Information:
>>>       GTModelTypeGeoKey (Short,1): ModelTypeProjected
>>>       GTRasterTypeGeoKey (Short,1): RasterPixelIsArea
>>>       GeographicTypeGeoKey (Short,1): GCS_WGS_84
>>>       ProjectedCSTypeGeoKey (Short,1): User-Defined
>>>       PCSCitationGeoKey (Ascii,24): "WGS84 / Google Mercator"
>>>       ProjectionGeoKey (Short,1): User-Defined
>>>       ProjCoordTransGeoKey (Short,1): CT_Mercator
>>>       ProjLinearUnitsGeoKey (Short,1): Linear_Meter
>>>       ProjLinearUnitSizeGeoKey (Double,1): 1
>>>       ProjNatOriginLongGeoKey (Double,1): 0
>>>       ProjNatOriginLatGeoKey (Double,1): 0
>>>       ProjFalseEastingGeoKey (Double,1): 0
>>>       ProjFalseNorthingGeoKey (Double,1): 0
>>>       ProjScaleAtNatOriginGeoKey (Double,1): 1
>>>       End_Of_Keys.
>>>    End_Of_Geotiff.
>>>
>>> Projection Method: CT_Mercator
>>>    ProjNatOriginLatGeoKey: 0.000000 (  0d 0' 0.00"N)
>>>    ProjNatOriginLongGeoKey: 0.000000 (  0d 0' 0.00"E)
>>>    ProjScaleAtNatOriginGeoKey: 1.000000
>>>    ProjFalseEastingGeoKey: 0.000000 m
>>>    ProjFalseNorthingGeoKey: 0.000000 m
>>> GCS: 4326/WGS 84
>>> Datum: 6326/World Geodetic System 1984
>>> Ellipsoid: 7030/WGS 84 (6378137.00,6356752.31)
>>> Prime Meridian: 8901/Greenwich (0.000000/  0d 0' 0.00"E)
>>> Projection Linear Units: 9001/metre (1.000000m)
>>>
>>> Corner Coordinates:
>>> Upper Left    (  981591.000, 5538963.000)  (  8d49' 4.02"E,
>>> 44d39'55.73"N)
>>> Lower Left    (  981591.000, 5533960.000)  (  8d49' 4.02"E, 44d38'
>>> 0.24"N)
>>> Upper Right   (  989587.000, 5538963.000)  (  8d53'22.60"E,
>>> 44d39'55.73"N)
>>> Lower Right   (  989587.000, 5533960.000)  (  8d53'22.60"E, 44d38'
>>> 0.24"N)
>>> Center        (  985589.000, 5536461.500)  (  8d51'13.31"E,
>>> 44d38'57.99"N)
>>>
>>> Thanks
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Find and fix application performance issues faster with Applications
>>> Manager
>>> Applications Manager provides deep performance insights into multiple
>>> tiers of
>>> your business applications. It resolves application problems quickly and
>>> reduces your MTTR. Get your free trial!
>>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>>> _______________________________________________
>>> Geoserver-users mailing list
>>> Geoserver-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>>
>>>
>>
>>
>> --
>> ==
>> GeoServer Professional Services from the experts! Visit
>> <http://goo.gl/it488V>http://goo.gl/it488V for more information.
>> ==
>>
>> Ing. Daniele Romagnoli
>> Senior Software Engineer
>>
>> GeoSolutions S.A.S.
>> Via di Montramito 3/A
>> 55054  Massarosa (LU)
>> Italy
>> phone: +39 0584 962313 <%2B39%200584%20962313>
>> fax:      +39 0584 1660272
>>
>> <http://www.geo-solutions.it>http://www.geo-solutions.it
>> <http://twitter.com/geosolutions_it>http://twitter.com/geosolutions_it
>>
>> -------------------------------------------------------
>>
>> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>>
>> Le informazioni contenute in questo messaggio di posta elettronica e/o
>> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
>> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
>> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
>> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
>> darcene notizia via e-mail e di procedere alla distruzione del messaggio
>> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
>> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
>> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
>> principi dettati dal D.Lgs. 196/2003.
>>
>>
>>
>> The information in this message and/or attachments, is intended solely
>> for the attention and use of the named addressee(s) and may be confidential
>> or proprietary in nature or covered by the provisions of privacy act
>> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
>> Code).Any use not in accord with its purpose, any disclosure, reproduction,
>> copying, distribution, or either dissemination, either whole or partial, is
>> strictly forbidden except previous formal approval of the named
>> addressee(s). If you are not the intended recipient, please contact
>> immediately the sender by telephone, fax or e-mail and delete the
>> information in this message that has been received in error. The sender
>> does not give any warranty or accept liability as the content, accuracy or
>> completeness of sent messages and accepts no responsibility  for changes
>> made after they were sent or for other risks which arise as a result of
>> e-mail transmission, viruses, etc.
>>
>>
>>
>> --
>> Franco Minutiello - darts engineering srl
>> Tel: +39 010 0980171 <%2B39%20010%200980171> Fax:+39 010 0980184
>> <%2B39%20010%200980184>
>> s-mail: Piazza della Vittoria, 9/3 16121 Genova (Italy)
>> e-mail: franco.minutie...@darts.it
>> AVVERTENZE AI SENSI DEL D.LGS 196/2003
>> <http://www.darts.it/DARTS-Mail-Disclaimer.html>
>>
>>
>> ------------------------------------------------------------------------------
>> Find and fix application performance issues faster with Applications Manager
>> Applications Manager provides deep performance insights into multiple tiers 
>> of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free 
>> trial!https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>>
>>
>>
>> _______________________________________________
>> Geoserver-users mailing 
>> listGeoserver-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
>>
>>
>>
>
>
> --
> ==
> GeoServer Professional Services from the experts! Visit
> http://goo.gl/it488V for more information.
> ==
>
> Ing. Daniele Romagnoli
> Senior Software Engineer
>
> GeoSolutions S.A.S.
> Via di Montramito 3/A
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax:      +39 0584 1660272
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
> *AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*
>
> Le informazioni contenute in questo messaggio di posta elettronica e/o
> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
> darcene notizia via e-mail e di procedere alla distruzione del messaggio
> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
> principi dettati dal D.Lgs. 196/2003.
>
>
>
> The information in this message and/or attachments, is intended solely for
> the attention and use of the named addressee(s) and may be confidential or
> proprietary in nature or covered by the provisions of privacy act
> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
> Code).Any use not in accord with its purpose, any disclosure, reproduction,
> copying, distribution, or either dissemination, either whole or partial, is
> strictly forbidden except previous formal approval of the named
> addressee(s). If you are not the intended recipient, please contact
> immediately the sender by telephone, fax or e-mail and delete the
> information in this message that has been received in error. The sender
> does not give any warranty or accept liability as the content, accuracy or
> completeness of sent messages and accepts no responsibility  for changes
> made after they were sent or for other risks which arise as a result of
> e-mail transmission, viruses, etc.
>
>
>
> --
> Franco Minutiello - darts engineering srl
> Tel: +39 010 0980171 Fax:+39 010 0980184
> s-mail: Piazza della Vittoria, 9/3 16121 Genova (Italy)
> e-mail: franco.minutie...@darts.it
> AVVERTENZE AI SENSI DEL D.LGS 196/2003
> <http://www.darts.it/DARTS-Mail-Disclaimer.html>
>



-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

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

-------------------------------------------------------

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

Attachment: sample.prj
Description: Binary data

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to