Advertisement
Guest User

Untitled

a guest
Sep 11th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. c:OSGeo4Wbinogr2ogr.exe -skipfailures -f PostgreSQL PG:"dbname='dbgis' host='localhost' port='5432' user='postgres' password='123456'" "be32d51207af4b1a8d0cf6163c282274.mif"
  2.  
  3. C:curlbincurl.exe -u admin:123456 -XPOST -H "Content-type: text/xml" -d "<featureType><name>be32d51207af4b1a8d0cf6163c282274</name></featureType>" http://localhost:8080/geoserver/rest/workspaces/a77x7/datastores/PostGis/featuretypes
  4.  
  5. C:curlbincurl.exe -u admin:123456 -XPUT -H "Content-type: application/xml" -d "<layer><enabled>true</enabled></layer>" http://localhost:8080/geoserver/rest/layers/be32d51207af4b1a8d0cf6163c282274
  6.  
  7. C:curlbincurl.exe -u admin:123456 -XPUT -H "Content-type: application/xml" -d @"...crs.xml" http://localhost:8080/geoserver/rest/workspaces/a77x7/datastores/PostGis/featuretypes/be32d51207af4b1a8d0cf6163c282274
  8.  
  9. <featureType><enabled>true</enabled><nativeCRS>
  10. PROJCS["unnamed",GEOGCS["unnamed",DATUM["Pulkovo_1942",SPHEROID["Krassovsky",6378245,298.3],TOWGS84[24,-123,-94,0.02,-0.25,-0.13,1.1]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",75],PARAMETER["scale_factor",1],PARAMETER["false_easting",13500000],PARAMETER["false_northing",0],UNIT["Meter",1.0]]
  11. </nativeCRS><srs>EPSG:4326</srs><projectionPolicy>NONE</projectionPolicy></featureType>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement