[Geoserver-users] How to get metadata of a SHP file

Hello everybody

What command-line tool may I use to get the metadata (bound coords, area
covered...) of a SHP or a TAB file?

Thanks a lot in advance

Hi,

Try ogrinfo, it comes for example with extremely useful FWTools package from fwtools.maptools.org.

-Jukka Rahkonen-

-----Alkuperäinen viesti-----
Lähettäjä: Jorge [mailto:jorge.arevalo@anonymised.com]
Lähetetty: ke 7.1.2009 18:05
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] How to get metadata of a SHP file

Hello everybody

What command-line tool may I use to get the metadata (bound coords, area
covered...) of a SHP or a TAB file?

Thanks a lot in advance

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Jukka

In fact, I'm using ogrinfo, but I can't find the correct parameters.
Other tools, like Global Mapper, show this info, but I need a
command-line tool.

Thanks anyway :slight_smile:

Rahkonen Jukka escribió:

Hi,

Try ogrinfo, it comes for example with extremely useful FWTools package from fwtools.maptools.org.

-Jukka Rahkonen-

-----Alkuperäinen viesti-----
Lähettäjä: Jorge [mailto:jorge.arevalo@anonymised.com]
Lähetetty: ke 7.1.2009 18:05
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] How to get metadata of a SHP file

Hello everybody

What command-line tool may I use to get the metadata (bound coords, area
covered...) of a SHP or a TAB file?

Thanks a lot in advance

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
"Afirmo con total convicción que la religión cristiana organizada como Iglesia ha sido y es aún la principal enemiga del progreso moral en el mundo"

"La religión se basa, pienso, principal y primariamente en el miedo. El miedo es el padre de la crueldad, y por tanto no es sorprendente que crueldad y religión han ido tomadas de la mano. La ciencia puede ayudarnos a superar este cobarde temor en que ha vivido la humanidad por tantas generaciones."

(Bertrand Russell)

Hi,

Is it anything else than a command line tool? Anyway, for getting basic info about shapefile do:

C:\data>ogrinfo -summary temp.shp temp
INFO: Open of `temp.shp'
      using driver `ESRI Shapefile' successful.

Layer name: temp
Geometry: Polygon
Feature Count: 18
Extent: (3385998.357693, 6676168.437985) - (3386517.531951, 6676554.808779)
Layer SRS WKT:
PROJCS["Transverse_Mercator",
    GEOGCS["International 1909 (Hayford)",
        DATUM["unknown",
            SPHEROID["intl",6378388,297]],
        PRIMEM["Greenwich",0],
        UNIT["Degree",0.017453292519943295]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",27],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",3500000],
    PARAMETER["false_northing",0],
    UNIT["Meter",1]]

-Jukka Rahkonen-

-----Alkuperäinen viesti-----
Lähettäjä: Jorge [mailto:jorge.arevalo@anonymised.com]
Lähetetty: ke 7.1.2009 19:06
Vastaanottaja: Rahkonen Jukka
Kopio: geoserver-users@lists.sourceforge.net
Aihe: Re: [Geoserver-users] How to get metadata of a SHP file

Hi Jukka

In fact, I'm using ogrinfo, but I can't find the correct parameters.
Other tools, like Global Mapper, show this info, but I need a
command-line tool.

Thanks anyway :slight_smile:

Rahkonen Jukka escribió:

Hi,

Try ogrinfo, it comes for example with extremely useful FWTools package from fwtools.maptools.org.

-Jukka Rahkonen-

-----Alkuperäinen viesti-----
Lähettäjä: Jorge [mailto:jorge.arevalo@anonymised.com]
Lähetetty: ke 7.1.2009 18:05
Vastaanottaja: geoserver-users@lists.sourceforge.net
Aihe: [Geoserver-users] How to get metadata of a SHP file

Hello everybody

What command-line tool may I use to get the metadata (bound coords, area
covered...) of a SHP or a TAB file?

Thanks a lot in advance

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
"Afirmo con total convicción que la religión cristiana organizada como Iglesia ha sido y es aún la principal enemiga del progreso moral en el mundo"

"La religión se basa, pienso, principal y primariamente en el miedo. El miedo es el padre de la crueldad, y por tanto no es sorprendente que crueldad y religión han ido tomadas de la mano. La ciencia puede ayudarnos a superar este cobarde temor en que ha vivido la humanidad por tantas generaciones."

(Bertrand Russell)

Hi,

Thanks for the info! I forgot the name of the layer after the name of the shapefile. I feel stupid…

Long life to command line tools!

Regards
Jorge

Rahkonen Jukka escribió:

···
-- 
"Afirmo con total convicción que la religión cristiana organizada como Iglesia ha sido y es aún la principal enemiga del progreso moral en el mundo"

"La religión se basa, pienso, principal y primariamente en el miedo. El miedo es el padre de la crueldad, y por tanto no es sorprendente que crueldad y religión han ido tomadas de la mano. La ciencia puede ayudarnos a superar este cobarde temor en que ha vivido la humanidad por tantas generaciones." 

(Bertrand Russell)

hey,

have you tried ogrinfo that comes with FWTools / GDAL ?

-i

2009/1/7 Jorge <jorge.arevalo@anonymised.com>:

Hello everybody

What command-line tool may I use to get the metadata (bound coords, area
covered...) of a SHP or a TAB file?

Thanks a lot in advance

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

oops sorry. still getting used to gmail style email :confused:

2009/1/8 Ivan Price <gunn.point@anonymised.com>:

hey,

have you tried ogrinfo that comes with FWTools / GDAL ?

-i

2009/1/7 Jorge <jorge.arevalo@anonymised.com>:

Hello everybody

What command-line tool may I use to get the metadata (bound coords, area
covered...) of a SHP or a TAB file?

Thanks a lot in advance

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users